Auto-complete Suggest addresses as the user types
BeMap name: Auto-complete
/geocoding/autocomplete/1.0Address suggestions while the user is still typing, for a search box.
The whole description
In BeMap's words
From a textual address perform a geographical research to suggest some textual postal address (free text).
From a textual address perform a geographical research to suggest some textual postal address (free text).
400 with Access Denied.Request body
JSON, Content-Type: application/json. Schema AutocompleteGeocodingRequest.
placestringrequiredTextual postal address or POI name. Mandatory.
coordinateCoordinaterequiredTo define the center of research area. Most providers use the parameter as optional, but some others require it to work. You can try a request without it, if the server returns an error message about this required parameter, add it and retry the same request.
geoserverstringGeoserver name.
swidxinteger (int32)deprecatedSwitch index.
languagestringDefine the language that will be used to perform the address lookup. Objects for which defined language code is not available, default language will be used. Values language Code - An US-ASCII string that defines an ISO 639-1 (2-letter) language code. The specials 'IC' (no sensitive case) language code allows you to search for a country depending on its ISO-3166 Alpha-3 or Alpha-2 country code.
boundingboxBoundingBoxDefine a bounding box to limit the auto-complete search area.
radiusinteger (int64)Define the radius of research in meters.
countryCodestringOptional filtering research on country code.
addressDetailsbooleanSet to true to receive the proposed postal addresses in separate fields (country, city, street, etc). false by default.
enLocIdbooleanUsed by HERE HLP geo-server; if set to true the Location ID will be returned.
enEntrancesbooleanEnable the generation list of geo-coordinate of the access to the result (for instance the entrance).
enHighlightsbooleanEnable the generation of text slices matching the query. These slices can be used to highlight the related matching fields.
enCategoriesbooleanEnable the generation list of category ids. The primary category has its flag primary set to true.
enFoodTypesbooleanEnable the generation list of food-type ids if available The primary category has its flag primary set to true.
enChainsbooleanEnable place chains metadata to allow customers to choose a chain icon.
enReferencesbooleanEnable the data source ids, when the place result has a contribution from specific suppliers.
Response
200, schema AutocompleteGeocodingResponse.
Response fields
itemsAutocompleteElem[]List of proposal items.
AutocompleteElem fields
elemTypestringrequiredType of element result. Auto-complete is able to return items of several types: categoryQuery, chainQuery, place, locality, etc.
placestringrequiredProposed place.
coordinateCoordinateFullNamerequiredCoordinate of proposed place.
CoordinateFullName fields
longitudenumber (double)requiredLongitude in degrees decimal (WGS84) (double).
latitudenumber (double)requiredLatitude in degrees decimal (WGS84) (double).
altitudenumber (double)Altitude in meters.
addressLabelstringThe full address in one text string of the entity result item.
addressAddressComplete postal address of proposed place.
Address fields
countryCodestringISO code of country.
countrystringCountry name.
statestringState name.
countystringCounty name.
citystringCity name.
districtstringDistrict name of city.
postalCodestringPostal code.
roadNumberstringRoad number.
streetstringStreet name.
streetNumberstringHouse number.
oppositeStreetNumberstringdeprecatedOpposite street number.
countryCodestringCountry Code.
entrancesCoordinate[]List of coordinate of the access to the result (for instance the entrance).
distanceinteger (int32)The distance in a straight line in meters from the position specified in the query
coordinateparameter.locationIdstringLocation Id.
languagestringLanguage.
scorenumber (double)Score.
placeHighlightAutocompleteElemHighlight[]The text slices matching the query. These slices can be used to highlight the related matching place field.
AutocompleteElemHighlight fields
startinteger (int32)endinteger (int32)
addressLabelHighlightAutocompleteElemHighlight[]The text slices matching the query. These slices can be used to highlight the related matching address label field.
AutocompleteElemHighlight fields
startinteger (int32)endinteger (int32)
categoriesAutocompleteElemReference[]A list of category ids. The primary category has its flag primary set to true.
AutocompleteElemReference fields
supplierIdstringidstringnamestringprimaryboolean
foodTypesAutocompleteElemReference[]A list of food-type ids if available The primary category has its flag primary set to true.
AutocompleteElemReference fields
supplierIdstringidstringnamestringprimaryboolean
chainsAutocompleteElemReference[]Place chains metadata to allow customers to choose a chain icon.
AutocompleteElemReference fields
supplierIdstringidstringnamestringprimaryboolean
referencesAutocompleteElemReference[]Data source ids, when the place result has a contribution from specific suppliers:
AutocompleteElemReference fields
supplierIdstringidstringnamestringprimaryboolean
Errors
- 400 Bad Request,
ErrorResponse - 302 No credentials were sent. Do not follow the redirect.
- 401 The account or the API key is wrong.
How to read each one: Errors.
Tutorials
- Autocomplete Geocoding API: Parameters Overview
- Tutorial for the first trip in electrical vehicle · 1.0
- Tutorial for the first trip in electrical vehicle · 2.0