[Google Maps API v3] How to sort Google autocomplete results by airport

2016-10-17 Thread Rashedul Alam
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)
});



A sample expected output is given bellow.


I want to follow exactly this  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.


[Google Maps API v3] How to find the Tolls in Google Map API?

2016-01-17 Thread Rashedul Alam


I am using Google Map API 3.0 to calculate the distance of two places. I 
can calculate it easily.

But now I need to find out every bridge or ferry service tolls (if any).


For example if I try to get the route direction of [*DFW Airport, 
Grapevine, TX, USA*] to [*McKinney, TX, USA*] in Google Map I get “*This 
route has tolls*”.


But using Google Map API I can’t find it. How can I figure out this?


Thanks in advance.

 

 

 

 

 

 

-- 
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.