Skip to content

Instantly share code, notes, and snippets.

@stdavis
Created August 9, 2017 20:43
Show Gist options
  • Select an option

  • Save stdavis/1860d36f533c739f13578be6bd2a7b5a to your computer and use it in GitHub Desktop.

Select an option

Save stdavis/1860d36f533c739f13578be6bd2a7b5a to your computer and use it in GitHub Desktop.
WebAPI.js Geocode Example
require(['agrc/modules/WebAPI'], function (WebAPI) {
var webAPI = new WebAPI({apiKey: 'yourapikey'});
webAPI.geocode('123 S Main St', 84117).then(function (result) {
console.log(result);
}, function (errMsg) {
console.error(errMsg);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment