This project has moved. For the latest updates, please go here.

Getting Details on a Place

With a place ID, returned by a Reverse Geocode lookup, you can get more details on the place.

Entity: Geo
Type: GeoType.ID
Parameters/Filters:
Name Purpose Type Required
PlaceID ID retrieved from reverse geocode string yes

Example:
            var geoResponse =
                await
                (from g in twitterCtx.Geo
                 where g.Type == GeoType.ID &&
                       g.ID == "5a110d312052166f"
                 select g)
                .SingleOrDefaultAsync();

            if (geoResponse != null && geoResponse.Places != null)
            {
                Place place = geoResponse.Places.First();

                Console.WriteLine(
                    "Name: {0}, Country: {1}, Type: {2}",
                    place.Name, place.Country, place.PlaceType);
            }

Twitter API: geo id place_id

Last edited Nov 29, 2013 at 2:49 AM by JoeMayo, version 9