Skip to content

Instantly share code, notes, and snippets.

@dbabbs
Created December 23, 2017 18:53
Show Gist options
  • Save dbabbs/802951088ae3146f80497aa7a195df22 to your computer and use it in GitHub Desktop.
Save dbabbs/802951088ae3146f80497aa7a195df22 to your computer and use it in GitHub Desktop.
var geocodingParamOne = {
searchText: '200 S Mathilda Ave, Sunnyvale, CA'
};
var geocodingParamTwo = {
searchText: '700 S Mathilda Ave, Sunnyvale, CA'
};
var geocoder = platform.getGeocodingService();
geocoder.geocode(geocodingParamOne, function(result) {
var resultOne = result.Response.View[0].Result;
console.log(resultOne)
geocoder.geocode(geocodingParamTwo, function(result) {
var resultTwo = result.Response.View[0].Result;
console.log(resultTwo)
}, function(e) {
alert(e);
});
}, function(e) {
alert(e);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment