Created
August 9, 2017 20:43
-
-
Save stdavis/1860d36f533c739f13578be6bd2a7b5a to your computer and use it in GitHub Desktop.
WebAPI.js Geocode Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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