https://bugzilla.wikimedia.org/show_bug.cgi?id=39476
Maarten Dammers <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Maarten Dammers <[email protected]> 2012-08-21 19:32:09 UTC --- In the database we have very few records with lat=lon=0: mysql> SELECT COUNT(*) FROM monuments_all WHERE lat=0 AND lon=0; +----------+ | COUNT(*) | +----------+ | 136 | +----------+ 1 row in set (37.19 sec) We do have a lot of records where it is unknown, see for example Russia: http://toolserver.org/~erfgoed/api/api.php?action=search&format=json&srcountry=ru&srlang=ru If I look up the first is in the database: mysql> SELECT lat,lon FROM monuments_all WHERE lang='ru' AND country='ru' AND id=7800000000; +------+------+ | lat | lon | +------+------+ | NULL | NULL | +------+------+ 1 row in set (0.03 sec) So the JSON incorrectly outputs this as 0 instead of NULL. Api bug should be filed to fix this. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
