Class: NominatimService service:ngeoNominatimService

ngeo.routing.NominatimService

new NominatimService($http, $injector, ngeoDebounce)

Service to provide access to Nominatim, which allows to search for OSM data by name and address.

Parameters:
Name Type Description
$http angular.$http

Angular http service.

$injector angular.$injector

Main injector.

ngeoDebounce ngeox.miscDebounce

ngeo Debounce service.

See:

Members

(static, non-null) module: angular.Module

typeaheadSourceDebounced: function

Methods

reverse(coordinate, params)

Reverse Geocoding

Parameters:
Name Type Description
coordinate ol.Coordinate

Search coordinate in LonLat projection

params (Object|undefined)

Optional parameters

See:
Returns:
!angular.$http.HttpPromise

promise of the Nominatim API request

Search by name

Parameters:
Name Type Description
query string

Search query

params ?Object

Optional parameters

See:
Returns:
!angular.$http.HttpPromise

promise of the Nominatim API request