function geocode(platform) {
		var geocoder = platform.getSearchService(),
			geocodingParameters = {
				q: $('#userAddress').val(),
			};
		geocoder.geocode(geocodingParameters, onSuccess, onError);
	}
// Function to geocode user's entered address
Function to geocode user's entered address
Function to geocode user ' s entered address
function geocode(platform) {
		var geocoder = platform.getSearchService(),
			geocodingParameters = {
				q: $('#userAddress').val(),
			};
		geocoder.geocode(geocodingParameters, onSuccess, onError);
	}
function geocode ( platform ) { var geocoder = platform . getSearchService ( ) , geocodingParameters = { q : $ ( '#userAddress' ) . val ( ) , } ; geocoder . geocode ( geocodingParameters , onSuccess , onError ) ; }
Function to geocode user's entered address
Function to geocode user ' s entered address