• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Twitter REST API Method: GET geo ID

Page history last edited by Raffi Krikorian 14 years, 1 month ago

<< Back to Twitter API Documentation

 

Twitter REST API Method: geo/id/:id

Find out more details of a place that was returned from the geo/reverse_geocode method.

method status | report a bug 

 

URL:

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

 

Formats: 

json

 

HTTP Method(s):

GET

 

Requires Authentication (about authentication):

false

 

API rate limited (about rate limiting):

true

 

Parameters:

  • id.  Required.  The ID of the location to query about. 

 

Abbreviated Response (about return values):  

{

  "name":"SoMa",

  "full_name":"SoMa, San Francisco",

  "country_code":"US",

  "id":"7695dd2ec2f86f2b",

  "place_type":"neighborhood",

  "country":"United States",

  "url":"/1/geo/id/7695dd2ec2f86f2b.json",

  "bounding_box": {

    "type":"Polygon",

    "coordinates": [

      [ [-122.42284884, 37.76893497],

        [-122.3964, 37.76893497],

        [-122.3964, 37.78752897],

        [-122.42284884, 37.78752897] ]

    ]

  },

  "geometry": {

    "type":"Polygon",

    "coordinates": [

      [ [-122.3964, 37.78199199],

        [-122.398893, 37.78032096],

        [-122.40233496, 37.77783696],

        [-122.40584496, 37.77577596],

        [-122.40605916, 37.77545997],

        [-122.40659592, 37.77465402],

        [-122.406669, 37.77312303],

        [-122.40668412, 37.77269598],

        [-122.40618084, 37.77202899],

        [-122.40578088, 37.77092901],

        [-122.40516384, 37.76972103],

        [-122.40659016, 37.76940504],

        [-122.40839916, 37.76923296],

        [-122.41065708, 37.76893497],

        [-122.41091808, 37.76951898],

        [-122.41418184, 37.76962896],

        [-122.41478196, 37.76962896],

        [-122.41538208, 37.76972904],

        [-122.41658196, 37.76982903],

        [-122.41768212, 37.76982903],

        [-122.41838196, 37.76992902],

        [-122.42008188, 37.770129],

        [-122.4207, 37.77029397],

        [-122.421582, 37.77052896],

        [-122.42228184, 37.771029],

        [-122.42258208, 37.77162903],

        [-122.42275092, 37.77203196],

        [-122.42284884, 37.77226299],

        [-122.42198196, 37.772829],

        [-122.42148192, 37.77322896],

        [-122.42128212, 37.77352902],

        [-122.42004084, 37.77460002],

        [-122.41982592, 37.77478497],

        [-122.41958184, 37.77502896],

        [-122.41918188, 37.77522903],

        [-122.41868184, 37.77562899],

        [-122.41860084, 37.77569001],

        [-122.41748196, 37.77652899],

        [-122.416182, 37.77742899],

        [-122.41468188, 37.77862896],

        [-122.40997884, 37.78238799],

        [-122.40751392, 37.78439697],

        [-122.40438192, 37.78682904],

        [-122.40348192, 37.78752897],

        [-122.39972712, 37.78464303],

        [-122.39941392, 37.78413903],

        [-122.398641, 37.78378704],

        [-122.39709984, 37.78260003],

        [-122.39675208, 37.78209702],

        [-122.3964, 37.78199199]

      ]

    ]

  },

  "polylines": ["mhreFnp`jVlIpNnNnTzK|T~@j@`DjBpHLrA@dCcBzEoApF{B|@|Gb@hJz@bMuBr@UjS?vBSvBSnF?zESjCg@rI_@zBo@nDcBjCwBz@oA`@m@RqBmDoAcB{@g@uEwFc@i@q@q@g@oAoAcBKOgD_FsDcGoFkHoVk\\qKmNeNqRkCsD`QmVbB_AdAyClFsHbBeATeA"],

  "contained_within": [

    {

      "name":"San Francisco",

      "full_name":"San Francisco,  CA",

      "country_code":"US",

      "id":"6f165220310d115a",

      "place_type":"city",

      "country":"United States",

      "url":"/1/geo/id/6f165220310d115a.json",

      "bounding_box": {

        "type":"Polygon",

        "coordinates": [

          [ [-123.173825, 37.63983],

            [-122.28178, 37.63983],

            [-122.28178, 37.929824],

            [-123.173825, 37.929824]

          ]

        ]

      }

    }

  ]

}

 

Usage examples: 

cURL (about cURL):

curl http://api.twitter.com//1/geo/id/7695dd2ec2f86f2b.json

 

          Do you have an example to share in the language of your choice? Please share!

 

Comments (0)

You don't have permission to comment on this page.