Hi,
I'm having a strange problem.  I'm calling the geo search API using
this URL:

http://api.twitter.com/1/geo/search.json?lat=51.52364784612407&long=-0.04422773387148005&accuracy=50m&granularity=poi

And the the full_name of the poi's contains 'Londra' rather than
'London'.  The lower details report 'London'.  Has a new parameter
been added to the API for language that I should present?  The JSON is
as follows:

{"result":{"places":[{"contained_within":[{"url":"http:\/\/
api.twitter.com\/1\/geo\/id\/da8d935566371bcc.json","name":"Tower
Hamlets","country_code":"GB","id":"da8d935566371bcc","country":"Regno
Unito","place_type":"city","bounding_box":
{"type":"Polygon","coordinates":[[[-0.080028,51.484326],
[0.009989,51.484326],[0.009989,51.545341],
[-0.080028,51.545341]]]},"full_name":"Tower Hamlets,
Londra","attributes":{}}],"url":"http:\/\/api.twitter.com\/1\/geo\/id\/
8c483c0da2087d2f.json","name":"Perfect Fried
Chicken","country_code":"GB","id":"8c483c0da2087d2f","country":"United
Kingdom","place_type":"poi","bounding_box":
{"type":"Polygon","coordinates":[[[-0.044465,51.522233],
[-0.044465,51.522233],[-0.044465,51.522233],
[-0.044465,51.522233]]]},"full_name":"Perfect Fried Chicken, Tower
Hamlets","attributes":{"street_address":"239 Mile End Road"}},
{"contained_within":[{"url":"http:\/\/api.twitter.com\/1\/geo\/id\/
da8d935566371bcc.json","name":"Tower
Hamlets","country_code":"GB","id":"da8d935566371bcc","country":"Regno
Unito","place_type":"city","bounding_box":
{"type":"Polygon","coordinates":[[[-0.080028,51.484326],
[0.009989,51.484326],[0.009989,51.545341],
[-0.080028,51.545341]]]},"full_name":"Tower Hamlets,
Londra","attributes":{}}],"url":"http:\/\/api.twitter.com\/1\/geo\/id\/
20c79d0a740039a8.json","name":"The Half
Moon","country_code":"GB","id":"20c79d0a740039a8","country":"United
Kingdom","place_type":"poi","bounding_box":
{"type":"Polygon","coordinates":[[[-0.045457,51.522058],
[-0.045457,51.522058],[-0.045457,51.522058],
[-0.045457,51.522058]]]},"full_name":"The Half Moon, Tower
Hamlets","attributes":{"street_address":"211 Mile End Road"}},
{"contained_within":[{"url":"http:\/\/api.twitter.com\/1\/geo\/id\/
da8d935566371bcc.json","name":"Tower
Hamlets","country_code":"GB","country":"United
Kingdom","id":"da8d935566371bcc","bounding_box":
{"type":"Polygon","coordinates":[[[-0.080028,51.484326],
[0.009989,51.484326],[0.009989,51.545341],
[-0.080028,51.545341]]]},"place_type":"city","full_name":"Tower
Hamlets, London","attributes":{}}],"url":"http:\/\/api.twitter.com\/1\/
geo\/id\/4f20952d81149acf.json","name":"Mile End
Hospital","country_code":"GB","id":"4f20952d81149acf","country":"United
Kingdom","place_type":"poi","bounding_box":
{"type":"Polygon","coordinates":[[[-0.045424,51.526221],
[-0.045424,51.526221],[-0.045424,51.526221],
[-0.045424,51.526221]]]},"full_name":"Mile End Hospital, Tower
Hamlets","attributes":{"street_address":"274 Bancroft Road"}},
{"contained_within":[{"url":"http:\/\/api.twitter.com\/1\/geo\/id\/
6416b8512febefc9.json","name":"United
Kingdom","country_code":"GB","country":"United
Kingdom","id":"6416b8512febefc9","bounding_box":
{"type":"Polygon","coordinates":[[[-8.662663,49.1626564],
[1.768926,49.1626564],[1.768926,60.86165],
[-8.662663,60.86165]]]},"place_type":"country","full_name":"United
Kingdom","attributes":{}}],"url":"http:\/\/api.twitter.com\/1\/geo\/id
\/
8ef32ff56ef11c22.json","name":"England","country_code":"GB","id":"8ef32ff56ef11c22","country":"United
Kingdom","place_type":"admin","bounding_box":
{"type":"Polygon","coordinates":[[[-6.3651943,49.8825312],
[1.768926,49.8825312],[1.768926,55.8116485],
[-6.3651943,55.8116485]]]},"full_name":"England, United
Kingdom","attributes":{}},{"contained_within":[{"url":"http:\/\/
api.twitter.com\/1\/geo\/id\/
8ef32ff56ef11c22.json","name":"England","country_code":"GB","country":"United
Kingdom","id":"8ef32ff56ef11c22","bounding_box":
{"type":"Polygon","coordinates":[[[-6.3651943,49.8825312],
[1.768926,49.8825312],[1.768926,55.8116485],
[-6.3651943,55.8116485]]]},"place_type":"admin","full_name":"England,
United Kingdom","attributes":{}}],"url":"http:\/\/api.twitter.com\/1\/
geo\/id\/
5d838f7a011f4a2d.json","name":"London","country_code":"GB","id":"5d838f7a011f4a2d","country":"United
Kingdom","place_type":"admin","bounding_box":
{"type":"Polygon","coordinates":[[[-0.5093057,51.286606],
[0.334433,51.286606],[0.334433,51.691672],
[-0.5093057,51.691672]]]},"full_name":"London, England","attributes":
{}}]},"query":{"url":"http:\/\/api.twitter.com\/1\/geo\/search.json?
granularity=poi&accuracy=50.0&long=-0.04422773387148005&query=&lat=51.52364784612407&autocomplete=false&trim_place=false","params":
{"granularity":"poi","accuracy":50.0,"query":"","coordinates":
{"type":"Point","coordinates":
[-0.04422773387148005,51.52364784612407]},"trim_place":false,"autocomplete":false},"type":"search"}}


Thanks,
S.

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk

Reply via email to