Places
Returns the data associated with a given place.
URL
www.historypin.org/en/api/places/get.json{?parameters}
Parameters
- places (string, required) - A value representing the country slug or country/area slug pair.
Example Country JSON
http://www.historypin.org/en/api/places/get.json?places=bulgaria
{
"id" : 293,
"level" : "0",
"title" : "Bulgaria",
"slug" : "bulgaria",
"country_code_iso" : "BG",
"path" : "bulgaria",
"bounds": {
"sw":{ "lat": 41.238374, "lng": 22.358378 },
"ne":{ "lat": 44.215692, "lng": 28.605693 }
},
"stats": {
"pins_count" : 179,
"tours_count" : 13,
"collections_count" : 43,
"collections_owners_count" : 37
}
}
Example Country/Area JSON
https://www.historypin.org/en/api/places/get.json?places=afghanistan%2Fbadakhshan
{
"id" : 351,
"level" : "1",
"title" : "Badakhshan",
"slug" : "badakhshan",
"country_code_iso" : "AF",
"path" : "afghanistan/badakhshan",
"parent": {
"id" : 110,
"title" : "Afghanistan",
"slug" : "afghanistan",
"path" : "afghanistan"
},
"bounds": {
"sw":{ "lat": 35.442411, "lng": 69.998549 },
"ne":{ "lat": 38.473673, "lng": 74.892307 }
},
"stats": {
"pins_count" : 0,
"tours_count" : 0,
"collections_count" : 0,
"collections_owners_count" : 0
}
}