Reputation: 929
We are creating a website for motorbike tours and would like our visitors to be able to enter a start and end location and have this update an embedded Google map on our own website, basically highlighting the best route. We'd like it to work exactly as the "Directions" feature on Google Maps works.
Is this possible? If so, how best to acheive this?
Also, we'd like to restrict the businesses and places of interest that appear on the map as some of them simply won't be relevant to our motorcycle audience. Is it possible to filter out businesses and places of interest and only display what we would like to display?
Really appreciate any advice that could be offered. Thank you.
Regards Nath.
Upvotes: 3
Views: 19361
Reputation: 2583
Surely you can.
Take a look here and here (the first is for javascript functionality, the second for server-side functionality through web services).
With these API you can show map, show pinned point on that and, using the direction API, you can also calculate the best route among other things.
About the businesses and places you want to show, you can use the places API. though I never used this one, so I can only suggest to have a look at the documetation.
Upvotes: 1
Reputation: 3035
Yes you can there is already a post with a HTML example. There are limitations on how many requests can be performed in 1 day for free usage. Check the licensing information on the google site.
google maps plot route between two points
Upvotes: 2