Members
# inner constant countryCodes
OSM Nominatim can be restricted to certain countries to improve search speed: Africa + France, Belgium, Switzerland, Germany, Netherlands
Methods
# static autocompleteFetchPlaceDetails(placeIdOrPlaceItem, options)
Parameters:
| Name | Type | Description |
|---|---|---|
placeIdOrPlaceItem |
||
options |
*
|
i.g {provider:"simpliciti_v3"} https://nominatim.org/release-docs/latest/api/Overview/ options.provider="simpliciti_v3" will use OSM proxied though our servers |
# static autocompleteFetchPlaces(query, options)
Parameters:
| Name | Type | Description |
|---|---|---|
query |
*
|
i.g 129 Rue Andy Warhol |
options |
*
|
i.g {provider:"simpliciti_v3"} https://nominatim.org/release-docs/latest/api/Overview/ options.provider="simpliciti_v3" will use OSM proxied though our servers |
# static forwardGeocoding(basemapId, options)
API for locate address (form/free mode)
Parameters:
| Name | Type | Description |
|---|---|---|
basemapId |
*
|
|
options |
*
|
# static reverseGeocoding(basemapId, options)
API for locate address by gps coords *Les coordonnées (longitude, latitude) au format WGS84
Parameters:
| Name | Type | Description |
|---|---|---|
basemapId |
*
|
|
options |
*
|
# static routingGeocoding(basemapId, options)
API for routing feature (Calcul iti) *Les coordonnées (longitude, latitude) au format WGS84
Parameters:
| Name | Type | Description |
|---|---|---|
basemapId |
*
|
|
options |
*
|
# inner getBasemapIdParam(basemapId)
If basemapId is empty (e.g use case for custom base maps such as OSM), do not send basemapId parameter to server (This will avoid API 500 error)
Parameters:
| Name | Type | Description |
|---|---|---|
basemapId |
*
|