Class: GeocoderHelper

bin/helpers/api/geocoder-helper~GeocoderHelper(configopt)

new GeocoderHelper(configopt)

Create an CloudinaryHelper.
Parameters:
Name Type Attributes Description
config Object <optional>
The configuration settings for the cloudinary API.
Properties
Name Type Attributes Description
provider string <optional>
The provider of Node Geocoder API.
httpAdapter string <optional>
The HTTP adapter of the Node Geocoder API.
apiKey string <optional>
The API key of the Google google geocoder API.
formatter string <optional>
The formatting of the Node geocoder response.
Source:

Members

(static) defaultConfig

Returns the default node geocoder configurations.
Source:

Methods

(async) geocodeData()

Geocodes the address specified in the query of the GeocoderHelper.
Source:

setLocData(req, index)

Sets the latitude, longitude, and address of a provided object (req).
Parameters:
Name Type Default Description
req Object The object, the location data of which, will be set.
index number 0 The index the node geocoder API response that will be used to set the location data of the object.
Source: