MapQuest-GL.js

mqgl.Service(key, options)

The service object that interacts with MapQuest APIs.

Syntax

var services = new mqgl.Service('KEY');

services.geocode.address({location: 'Denver, CO', ignoreLatLngInput: true})
  .then(response => displayResults(response));

Parameters

  • key required string

    The API Key, which is needed to access MapQuest services.

  • options object

    An object containing any of the options described on the Options page.

Return Value

A new Service object with the properties defined in the options.

Example

Loading...