GET geo/id/:place_id

Updated on Wed, 2012-04-18 11:22

Returns all the information about a known place.

Resource URL

http://api.twitter.com/1/geo/id/:place_id.json

Parameters

place_id required

A place in the world. These IDs can be retrieved from geo/reverse_geocode.

Example Values: df51dec6f4ee2b2c

Example Request

GET

https://api.twitter.com/1/geo/id/df51dec6f4ee2b2c.json

  1. {
  2.   "name": "Presidio",
  3.   "polylines": [
  4.     "cfteFb|qjVubA{_@{q@gKzSabAvOcXkOqdBzLdE~qAkJb^z{CsBdoAmEiGsShN"
  5.   ],
  6.   "country": "United States",
  7.   "country_code": "US",
  8.   "attributes": {
  9.     "162834:id": "2202"
  10.   },
  11.   "url": "http://api.twitter.com/1/geo/id/df51dec6f4ee2b2c.json",
  12.   "contained_within": [
  13.     {
  14.       "name": "San Francisco",
  15.       "country": "United States",
  16.       "country_code": "US",
  17.       "attributes": {
  18.  
  19.       },
  20.       "url": "http://api.twitter.com/1/geo/id/5a110d312052166f.json",
  21.       "id": "5a110d312052166f",
  22.       "bounding_box": {
  23.         "coordinates": [
  24.           [
  25.             [
  26.               -122.51368188,
  27.               37.70813196
  28.             ],
  29.             [
  30.               -122.35845384,
  31.               37.70813196
  32.             ],
  33.             [
  34.               -122.35845384,
  35.               37.83245301
  36.             ],
  37.             [
  38.               -122.51368188,
  39.               37.83245301
  40.             ]
  41.           ]
  42.         ],
  43.         "type": "Polygon"
  44.       },
  45.       "full_name": "San Francisco, CA",
  46.       "place_type": "city"
  47.     }
  48.   ],
  49.   "id": "df51dec6f4ee2b2c",
  50.   "bounding_box": {
  51.     "coordinates": [
  52.       [
  53.         [
  54.           -122.48530488,
  55.           37.78695297
  56.         ],
  57.         [
  58.           -122.44625208,
  59.           37.78695297
  60.         ],
  61.         [
  62.           -122.44625208,
  63.           37.81102797
  64.         ],
  65.         [
  66.           -122.48530488,
  67.           37.81102797
  68.         ]
  69.       ]
  70.     ],
  71.     "type": "Polygon"
  72.   },
  73.   "full_name": "Presidio, San Francisco",
  74.   "geometry": {
  75.     "coordinates": [
  76.       [
  77.         [
  78.           -122.48530488,
  79.           37.79186004
  80.         ],
  81.         [
  82.           -122.48004096,
  83.           37.80269298
  84.         ],
  85.         [
  86.           -122.47973604,
  87.           37.80413496
  88.         ],
  89.         [
  90.           -122.47935408,
  91.           37.80579798
  92.         ],
  93.         [
  94.           -122.47920216,
  95.           37.80731601
  96.         ],
  97.         [
  98.           -122.47846884,
  99.           37.80908604
  100.         ],
  101.         [
  102.           -122.47808292,
  103.           37.81082799
  104.         ],
  105.         [
  106.           -122.47738308,
  107.           37.81102797
  108.         ],
  109.         [
  110.           -122.476383,
  111.           37.81082799
  112.         ],
  113.         [
  114.           -122.47598304,
  115.           37.80972801
  116.         ],
  117.         [
  118.           -122.46734592,
  119.           37.80748701
  120.         ],
  121.         [
  122.           -122.46333192,
  123.           37.80480897
  124.         ],
  125.         [
  126.           -122.44708188,
  127.           37.80742797
  128.         ],
  129.         [
  130.           -122.44807116,
  131.           37.805211
  132.         ],
  133.         [
  134.           -122.44798296,
  135.           37.804311
  136.         ],
  137.         [
  138.           -122.44625208,
  139.           37.79193096
  140.         ],
  141.         [
  142.           -122.44748184,
  143.           37.791729
  144.         ],
  145.         [
  146.           -122.45088204,
  147.           37.79132904
  148.         ],
  149.         [
  150.           -122.458482,
  151.           37.79002899
  152.         ],
  153.         [
  154.           -122.47134804,
  155.           37.78695297
  156.         ],
  157.         [
  158.           -122.48418312,
  159.           37.78752897
  160.         ],
  161.         [
  162.           -122.482854,
  163.           37.78855596
  164.         ],
  165.         [
  166.           -122.48530488,
  167.           37.79186004
  168.         ]
  169.       ]
  170.     ],
  171.     "type": "Polygon"
  172.   },
  173.   "place_type": "neighborhood"
  174. }