function bindAddress(){

    	// retrieve the address value
    	var address=$("#address").val();

    	// perform ajax call to nominatim
        	$.ajax({
        		type: "GET",
        		url: "https://nominatim.openstreetmap.org/search",
        		data: { q: address, format: "json", polygon : "1" , addressdetails :"1" }
    		})
    		.done(function( data ) { // if address found

    		// takes the first geolocated data
    		// and record current_marker variable
    		current_marker = data[0];
    		// draws a marker from geolocated point
    		setMarker();

        	});

    }
// Perform search in nominatim address method
Perform search in nominatim address method
Perform search in nominatim address method
function bindAddress(){
    	var address=$("#address").val();
        	$.ajax({
        		type: "GET",
        		url: "https://nominatim.openstreetmap.org/search",
        		data: { q: address, format: "json", polygon : "1" , addressdetails :"1" }
    		})
    		.done(function( data ) { 
    		current_marker = data[0];
    		setMarker();
        	});
    }
function bindAddress ( ) { var address = $ ( "#address" ) . val ( ) ; $ . ajax ( { type : "GET" , url : "https://nominatim.openstreetmap.org/search" , data : { q : address , format : "json" , polygon : "1" , addressdetails : "1" } } ) . done ( function ( data ) { current_marker = data [ 0 ] ; setMarker ( ) ; } ) ; }
Perform search in nominatim address method
Perform search in nominatim address method
// retrieve the address value // perform ajax call to nominatim // if address found // takes the first geolocated data // and record current_marker variable // draws a marker from geolocated point