Geo coordinates give incorrect "geo-place-name" link


#1

Sorry to come back to this longstanding issue but there seems to be no improvement.

We like to add geo coordinates to Tweets, however the logic that determines in which geopolitical entity a pair of coordinates lies does not work correctly for many non-US locations.

There seems to be a bounding-box approach that just doesn’t work for countries that are not rectangular…

The “geo-embedded-map” linked below is a recent example, showing Aleppo, Syria but boldly stating that it comes from Turkey.

https://maps.googleapis.com/maps/api/staticmap?center=36.017049%2C36.942279&sensor=false&size=320x140&zoom=4&markers=icon%3Ahttp%3A%2F%2Fa0.twimg.com%2Ft1%2Fimg%2Fgeopin.png|shadow%3Afalse|37.495716%2C36.942279&markers=icon%3Ahttp%3A%2F%2Fa0.twimg.com%2Fprofile_images%2F389355737%2Frice1_mini.jpg|shadow%3Afalse|37.42595113%2C36.942279&path=fillcolor%3A0xFF000033|color%3A0xFF000055|weight%3A1|enc%3AkrryEgns{Ca_le%40%3F%3F_~|sB`_le%40%3F%3F~}|sB&client=gmetrial-twitter&signature=ZDL7aLRMr6Sga1Xux-XSEOnAUp4=

Geonames gets it right:

http://api.geonames.org/countrySubdivisionJSON?lat=36.01704919&lng=36.94227934&username=demo

Why can’t Twitter?


#2

It looks like the Google static map can’t be displayed when not referred by a Tweet.

Here is the Google map link that is labled, “from Turkey”.

https://maps.google.com/maps?q=36.01704919%2C36.94227934&z=15


#3

Geonames response (for those who encounter a ‘limit exceeded’ error:

{“distance”:0,“adminCode1”:“09”,“countryName”:“Syria”,“countryCode”:“SY”,“codes”:[{“code”:“09”,“type”:“FIPS10-4”},{“code”:“HL”,“type”:“ISO3166-2”}],“adminName1”:“Aleppo”}