Created
December 23, 2017 18:53
-
-
Save dbabbs/802951088ae3146f80497aa7a195df22 to your computer and use it in GitHub Desktop.
This file contains 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
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