The example output for this API method includes geometry for the place.
https://dev.twitter.com/docs/api/1.1/get/geo/id/%3Aplace_id
However, when I actually get the response for a real request, “geometry” is always null. The documentation states the only parameter for this method is place_id. Is there something I’m missing here?
Output:
{
"id": "5a110d312052166f",
"url": "https:\/\/api.twitter.com\/1.1\/geo\/id\/5a110d312052166f.json",
"place_type": "city",
"name": "San Francisco",
"full_name": "San Francisco, CA",
"country_code": "US",
"country": "United States",
"contained_within": [{
"id": "fbd6d2f5a4e4a15e",
"url": "https:\/\/api.twitter.com\/1.1\/geo\/id\/fbd6d2f5a4e4a15e.json",
"place_type": "admin",
"name": "California",
"full_name": "California, USA",
"country_code": "US",
"country": "United States",
"bounding_box": {
"type": "Polygon",
"coordinates": [[[-124.482003,
32.528832],
[-124.482003,
42.009519],
[-114.131212,
42.009519],
[-114.131212,
32.528832],
[-124.482003,
32.528832]]]
},
"attributes": {
}
}],
"geometry": null,
"polylines": [],
"bounding_box": {
"type": "Polygon",
"coordinates": [[[-122.514926,
37.708075],
[-122.514926,
37.833238],
[-122.328001,
37.833238],
[-122.328001,
37.708075],
[-122.514926,
37.708075]]]
},
"attributes": {
"162772:pop100": "776733",
"189390:id": "san-francisco-ca",
"162772:place_id": "0667000"
}
}