Class: NominatimGeocoder

NominatimGeocoder()

Provides a gazetteer that uses Open Street Map Nominatim geocoder at Mapquest.

Constructor

new NominatimGeocoder()

Constructs a Nominatim geocoder.
Source:

Members

service :String

The URL of the geocoder service.
Type:
  • String
Default Value:
  • http://open.mapquestapi.com/nominatim/v1/search/
Source:

Methods

lookup(queryString, callback, accessKey)

Queries the geocoder service with a specified query string.
Parameters:
Name Type Description
queryString String The query string.
callback function The function to call when the service returns the query results. This function is passed two arguments: this geocoder and an array containing the query results. See [the OpenStreetMap Nominatim Wiki] http://wiki.openstreetmap.org/wiki/Nominatim for a description of the results. The result passed to the callback is parsed JSON.
accessKey String The MapQuest API access key to use for the request. See https://developer.mapquest.com/plan_purchase/free/business_edition/business_edition_free to obtain a key.
Source: