Returns an {Error} object with response and status
(any)
(any)
Builds the query params including key and proxy URL
(any)
geocode address and reverse geocode coordinates using OpenCage API requesting the json format.
(Object)
the input query parameter as JSON object,
the attribute
q
is required, the
key
can be omitted when using
a
proxyURL
, and when using node with a dedicated environment variable
(OPENCAGE_API_KEY).
Others optional paameters can be found at Opencage Data API
documentation
Promise:
a promise resolved by the json format API payload