Class: NominatimAPI

NominatimAPI

Create osmNominatim service instance. This service create nominatim query.

new NominatimAPI($http, options)

Parameters:
Name Type Description
$http Object angular $http service
options Object set by the provider to set the url
Source:

Methods


lookup(query)

http://nominatim.openstreetmap.org/lookup?osm_ids=R146656,W104393803,N240109189
Parameters:
Name Type Description
query Object/String http://wiki.openstreetmap.org/wiki/Nominatim
Source:
Returns:
$http.get
Type
Promise

reverse(query)

Parameters:
Name Type Description
query Object/String http://wiki.openstreetmap.org/wiki/Nominatim
Source:
Returns:
$http.get
Type
Promise

Parameters:
Name Type Description
query Object/String http://wiki.openstreetmap.org/wiki/Nominatim
Source:
Returns:
$http.get
Type
Promise