Created
December 12, 2012 16:23
-
-
Save stdavis/4269226 to your computer and use it in GitHub Desktop.
AGRC Geocoder Snippet
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
| // dojoScript is dojo/io/script (dojo 1.7) | |
| var params = { | |
| url: "//mapserv.utah.gov/wsut/Geocode.svc/hello/street(" + this.milepostTxt.value + | |
| ")zone(" + this.routeTxt.value + ")", | |
| handleAs: 'json', | |
| timeout: this.timeout, | |
| preventCache: true, | |
| callbackParamName: 'callback' | |
| }; | |
| var that = this; | |
| dojoScript.get(params).then(function (response) { | |
| that._onXHRSuccess(response); | |
| }, function (er) { | |
| that._onXHRFailure(er); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment