Geocode is a collection of geocode related endpoints.
This includes endpoints that allow to normalise and geocode addresses to get highly accurate results that are also validated and improved by real drivers every day.
The level of quality of geocoding is defined by the accuracy level returned to the accuracy.level
field.
The following are the different accuracy levels currently supported:
Accuracy Level | Score | Description |
---|---|---|
ADDRESS_POINT | 100 | Address is accurate to the house door or rooftop |
MANUAL_GEOCODING | 95 | The address was manually geocoded by a Bettermile employee using multiple sources of information. |
STREET_COORDINATES | 90 | The address was translated to street coordinates derived from the geocoder result. |
INTERPOLATED_POINT | 80 | Location was calculated using interpolation between two known points. |
STREET_CENTROID | 50 | Location was geocoded to the center of the street. |
POSTAL_CENTROID | 30 | Location was geocoded to the center of the postal code. |
LOCALITY_CENTROID | 10 | Location was geocoded to the center of the locality. |
The Geocode endpoint returns information regarding an address. This broadly includes coordinates, formatted address, accuracy information and much more.
OK
Bad Request
Unauthorized
Not Found
Too Many Requests
Internal Server Error
Gateway Timeout Error - All third party geocoders are unreachable. Try again later
{- "timeframe": {
- "earliest": "09:00:00",
- "latest": "10:00:00",
- "zoneId": "Europe/Berlin"
}, - "address": {
- "street": "Otto-Weidt-Platz",
- "number": 9,
- "postalCode": 10557,
- "locality": null,
- "province": null,
- "countryCode": "DE",
- "w3w": null
}
}
{- "rawAddressId": 12345,
- "timeframe": {
- "earliest": "09:00:00",
- "latest": "10:00:00",
- "zoneId": "Europe/Berlin"
}, - "coordinates": {
- "lat": 52.53294,
- "lng": 13.36718
}, - "streetCoordinates": {
- "lat": 51.1234,
- "lng": 12.7478
}, - "entranceCoordinates": {
- "points": [ ]
}, - "parkingCoordinates": {
- "points": [ ]
}, - "formatted": "Otto-Weidt-Platz 8, 10557 Berlin, Germany",
- "street": "Otto-Weidt-Platz",
- "number": 8,
- "postalCode": 10557,
- "locality": "Berlin",
- "countryCode": "DE",
- "accuracy": {
- "houseNumberFallback": null,
- "houseNumberChanged": false,
- "postalCodeChanged": false,
- "postalCodeChangeValid": null,
- "score": 100,
- "level": "ADDRESS_POINT"
}, - "zoneId": "Europe/Berlin"
}