|
|
Pushpin Location REST API Documentation (Beta) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Home Pushpin API Blog Getting Started URI Structure Output Formats Geographic Types Supported Place Attributes Contact us |
The Location REST API is a fast, convenient way to retrieve location and statistical information about places. This early version of the API focuses only on
places that are administratively-defined within the USA (states, counties, cities, zip codes and census tracts). The API makes a variety of information available about each of these places, inluding its geographic coordinates, its relationship to other geographies, and various statistical and physical attributes about a location including population, elevation, household income, unemployment rates, and its campaign contributions. Getting StartedHere are some examples of how to retrieve information about a location:http://rest.beta.pushpin.com/states/WI/ Returns information on Wisconsin in an HTML-formatted page. HTML is the default output format. http://rest.beta.pushpin.com/states/CA/counties/alameda.js Returns information on Alameda county in GeoJSON format. http://rest.beta.pushpin.com/states/OH/cities/ Returns a list of all the cities in Ohio. http://rest.beta.pushpin.com/zipcodes/94010.kml Returns information on 94010 in KML format. http://rest.beta.pushpin.com/states/CA/counties/alameda/tracts/451101 Returns information on census tract 451101 in Alameda county. http://rest.beta.pushpin.com/FL/counties/broward/i9608690,i9598273,label,vertices.js Retrieves the vertices, median household income, and percent subprime loan attributes for Broward County, FL. URI StructureURI's should be designed to alternate between geographic types (such as 'cities', 'states', or 'zipcodes') and geographic identifiers (commonly known names such as "Chicago") or their equivalent FIPS codes.URI's that end with a geographic identifier that resolve successfully will return information about an individual geography, for example http://rest.beta.pushpin.com/IL/cities/chicago. URI's that end with a geographic type will return a list of such types, for example a list of cities in Louisiana: http://rest.beta.pushpin.com/states/LA/cities/. Output FormatsThe API currently supports HTML, GeoJSON and KML formats.Geographic Types SupportedCurrently the API is limited to geographies in the USA. International support is on the roadmap. The following geographic types are supported:
Place Attributes (retreiving data)Any of the following attributes may be retrieved for a location by adding the?attr= parameter.
For example,
The following attributes are supported by the API. Currently only the JSON output format supports all attributes, support
will be added to other formats soon.The commercial version of this API makes over 10,000 variables available, including current year data.
This service and the documentation is in beta. We would love to have your feedback on it! |