https://developer.tom.com” rel=“nofollow noretinger”>Tom Tom Maps AP 提供了一个反向的地理编码端点,使一名结构化的JSON成为可能。
You can try it with the API Explorer.
例如:
curl -X GET "https://api.tomtom.com/search/2/reverseGeocode/37.8328,-122.27669.json?key=*****" -H "accept: */*"
页: 1
{
"summary": {
"queryTime": 6,
"numResults": 1
},
"addresses": [
{
"address": {
"buildingNumber": "1001",
"streetNumber": "1001",
"routeNumbers": [],
"street": "42nd Street",
"streetName": "42nd Street",
"streetNameAndNumber": "1001 42nd Street",
"countryCode": "US",
"countrySubdivision": "CA",
"countrySecondarySubdivision": "Alameda",
"countryTertiarySubdivision": "Oakland",
"municipality": "Oakland, Emeryville",
"postalCode": "94608",
"municipalitySubdivision": "Oakland, Emeryville",
"country": "United States",
"countryCodeISO3": "USA",
"freeformAddress": "1001 42nd Street, Emeryville, CA 94608",
"boundingBox": {
"northEast": "37.832893,-122.276230",
"southWest": "37.832777,-122.277006",
"entity": "position"
},
"countrySubdivisionName": "California",
"localName": "Emeryville"
},
"position": "37.832844,-122.276688"
}
]
}
你可以免费获得APICKEY(不需要信用卡),并尝试我们的。
披露: 我受雇于Tom。