Requires
- module:WPGMZA.Geocoder
Classes
- OLGeocoder
- OpenLayers geocoder - uses Nominatim by default
Methods
-
<protected, inner> cacheResponse(address, response)
Caches a response on the server, usually after it's been returned from Nominatim
-
Parameters:
Name Type Description addressstring The street address responseobject | array The response to cache Returns:
- Type
- void
-
<protected, inner> getResponseFromCache(address, callback)
Tries to retrieve cached coordinates from server cache
-
Parameters:
Name Type Description addressstring The street address to geocode callbackfunction Where to send the results, as an array Returns:
- Type
- void
-
<protected, inner> getResponseFromNominatim(options, callback)
Queries Nominatim on the specified address
-
Parameters:
Name Type Description optionsobject An object containing the options for geocoding, address is a mandatory field callbackfunction The function to send the results to, as an array