I am using Google map autocomplete in my applications. I want to sort the 
results by airport. Suppose if somebody type dfw then *Dallas/Fort Worth 
International Airport* will come first. That means if there exists any 
airport it will appear first. My code is here:

var autocomplete = new 
google.maps.places.Autocomplete(document.getElementById('PickupAdd')
        );

        autocomplete.bindTo('bounds', map);
        var infowindow = new google.maps.InfoWindow();
        var marker = new google.maps.Marker({
            map: map,
            anchorPoint: new google.maps.Point(0, -29)
        });


<https://lh3.googleusercontent.com/-A_r-DM-LD18/WASwBMiLplI/AAAAAAAACGc/kl3RVK1xE3opA0ihzNrKqp-ixHNFJH0IwCLcB/s1600/Capture.PNG>
A sample expected output is given bellow.


I want to follow exactly this <https://www.mydriver.com/> web site.

Can anybody help me?

NB: I am using JavaScript API

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.

Reply via email to