Instagram Get information about a location


The GetLocation lets you request information about a given location based on the ID of the location.

// Request information about a specific location (in this case our offices at
InstagramLocationResponse response = service.Locations.GetLocation(241201111);

// Get the location from the response
InstagramLocation location = response.Body.Data;

// Write the properties to the console
Console.WriteLine("ID:        " + location.Id);
Console.WriteLine("Name:      " + location.Name);
Console.WriteLine("Latitude:  " + location.Latitude);
Console.WriteLine("Longitude: " + location.Longitude);

A location consists of basic information, so you will only be able to get the ID and name as well as the latitude and longitude of the location.