The geocode object for retrieving forward, batch, and reverse geocoding.
Geocode an address. Refer to the Geocoding Address API page for more information.
var services = new mqgl.Service('KEY');
services.geocode.address({location: 'Denver, CO'})
.then(response => console.log(response));
Refer to the options from the Geocoding API for detailed information.
A Promise, containing the geocoding response object.
Loading...
Geocode a batch of locations. Refer to the Batch Geocoding API page for more information.
var services = new mqgl.Service('KEY');
services.geocode.batch({locations: ['Denver, CO', 'Boulder, CO']})
.then(response => console.log(response));
Refer to the options from the Geocoding API for detailed information.
A Promise, containing the batch geocoding response object.
Loading...
Converts a pair of geocodes into an address. Refer to the Revese Geocoding API page for more information.
var services = new mqgl.Service('KEY');
services.geocode.reverse([-105.122870, 39.666076])
.then(response => console.log(response));
A single geocode to be reverse geocoded.
[-105.122870, 39.666076]
A Promise, containing the reverse geocoding response object.
Loading...