mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
add geocoding example
This commit is contained in:
49
geocoding/examples.json
Normal file
49
geocoding/examples.json
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
{
|
||||
"lookup": [{
|
||||
"title": "Geocode an address",
|
||||
"description": "Lookup returns a normalized address and gps location",
|
||||
"request": {
|
||||
"address": "10 russell st",
|
||||
"postcode": "wc2b",
|
||||
"city": "london",
|
||||
"country": "uk"
|
||||
},
|
||||
"response": {
|
||||
{
|
||||
"address": {
|
||||
"line_one": "10 Russell Street",
|
||||
"city": "London",
|
||||
"country": "United Kingdom",
|
||||
"postcode": "WC2B 5HZ"
|
||||
},
|
||||
"location": {
|
||||
"latitude": 51.5123064,
|
||||
"longitude": -0.1216235
|
||||
}
|
||||
}
|
||||
}
|
||||
}],
|
||||
"reverse": [{
|
||||
"title": "Reverse geocode location",
|
||||
"description": "Reverse geocode a gps location to an address",
|
||||
"request": {
|
||||
"latitude": 51.5123064,
|
||||
"longitude": -0.1216235
|
||||
},
|
||||
"response": {
|
||||
{
|
||||
"address": {
|
||||
"line_one": "10 Russell Street",
|
||||
"city": "London",
|
||||
"country": "United Kingdom",
|
||||
"postcode": "WC2B 5HZ"
|
||||
},
|
||||
"location": {
|
||||
"latitude": 51.5123064,
|
||||
"longitude": -0.1216235
|
||||
}
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user