Class: OpenStreetMapGeocoder

OpenStreetMapGeocoder()

OpenStreetMapGeocoder

Members

(static) TPL_FORWARD_GEOCODING_URL :string

Url template used for OpenStreetMapGeocoder.forward() method
Type:
  • string
Source:
See:
  • OpenStreetMapGeocoder.forward()

(static) TPL_REVERSE_GEOCODING_URL :string

Url template used for OpenStreetMapGeocoder.reverse() method
Type:
  • string
Source:
See:
  • OpenStreetMapGeocoder.reverse()

Methods

(protected) _handleForwardJSONP(response, callback)

Handles the server response of a successfull address forward
Parameters:
Name Type Description
response Object Server response
callback function Callback that will be executed on success
Source:

(protected) _handleReverseJSONP(response, callback)

Handles the server response of a successfull location reverse
Parameters:
Name Type Description
response Object Server response
callback function Callback that will be executed on success
Source:

forward(query, callback)

Transforms a given address into valid latitude and longitude
Parameters:
Name Type Description
query string Address to be transformed into latitude and longitude
callback function Callback that will be executed on success
Source:

reverse(location, callback)

Transforms a given location object (lat, lng) into a valid address
Parameters:
Name Type Description
location string Location information to be sent to the server
callback function Callback that will be executed on success
Source: