Skip to content
Last updated

✨ Autocomplete Geocoding API

The Autocomplete Geocoding service suggests postal addresses or places based on a partial textual input (free text).
It helps users type faster by offering relevant auto-complete suggestions.

ℹ️ For more details, see Wikipedia.


πŸ”— Endpoint

POST /bgis/service/geocoding/autocomplete/1.0
Content-Type: application/json


πŸ“¦ Sample Request Body

{
  "geoserver": "nominatim",
  "coordinate": {
    "lat": 48.8566,
    "lon": 2.3522
  },
  "place": "Paris"
}

πŸ“ All coordinates are defined in WGS84 (longitude, latitude). See the coordinate system glossary for more details.


πŸ”§ Parameters

⚠️ The geoserver parameter must be one of: nominatim, addok, herehlp. If not provided, the default geoserver will be used.

FieldOptionalDescription
placeNoTextual postal address or POI name to autocomplete. Type: string.
coordinateYesCenter of the search area. Some providers require this parameter. Type: Coordinate.
languageYesDefines the language of the lookup (ISO 639-1 code). "IC" allows case-insensitive search by ISO country codes. Type: string.
addressDetailsYesIf true, returns proposed addresses split into fields (country, city, street, etc.). Default: false. Type: boolean.
boundingBoxYesRestrict the autocomplete search to a defined rectangle. Type: BoundingBox.
countryCodeYesRestrict results to a specific country code. Type: string.
enCategoriesYesReturn a list of category IDs (with primary flagged). Type: boolean.
enChainsYesReturn metadata about place chains (e.g., franchises). Type: boolean.
enEntrancesYesReturn geo-coordinates of entrances when available. Type: boolean.
enFoodTypesYesReturn available food-type IDs (with primary flagged). Type: boolean.
enHighlightsYesReturn text slices matching the query, useful for highlighting results. Type: boolean.
enLocIdYesSpecific to herehlp: return Location ID if true. Type: boolean.
enReferencesYesReturn supplier-specific data source IDs when available. Type: boolean.
geoserverYesGeoserver name. Supported values:
- nominatim β†’ OpenStreetMap-based search
- addok β†’ French Base Adresse Nationale (BAN)
- herehlp β†’ HERE Hybrid Location Platform.
Type: string.
radiusYesSearch radius in meters. Type: long.

πŸ“ BoundingBox

FieldOptionalDescription
maxLatNoMaximum latitude (WGS84, decimal degrees). Type: double.
maxLonNoMaximum longitude (WGS84, decimal degrees). Type: double.
minLatNoMinimum latitude (WGS84, decimal degrees). Type: double.
minLonNoMinimum longitude (WGS84, decimal degrees). Type: double.

πŸ“ Coordinate

FieldOptionalDescription
latNoLatitude (WGS84, decimal degrees). Type: double.
lonNoLongitude (WGS84, decimal degrees). Type: double.

πŸ“€ Sample Response

{
  "results": [
    {
      "address": {
        "country": "France",
        "city": "Paris",
        "street": "Boulevard de SΓ©bastopol"
      },
      "highlight": "Boulevard de SΓ©bastopol, Paris",
      "location": {
        "lon": 2.3522,
        "lat": 48.859
      }
    },
    {
      "address": {
        "country": "France",
        "city": "Paris",
        "street": "Boulevard Saint-Germain"
      },
      "highlight": "Boulevard Saint-Germain, Paris",
      "location": {
        "lon": 2.3505,
        "lat": 48.853
      }
    }
  ]
}