Skip to content

Instantly share code, notes, and snippets.

@stdavis
Created December 12, 2012 16:23
Show Gist options
  • Select an option

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

Select an option

Save stdavis/4269226 to your computer and use it in GitHub Desktop.
AGRC Geocoder Snippet
// 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