Add Google Maps Public Transport directions to Your Event/Website

Here’s the three steps to add Google Maps Public Transport directions to your website.

1. Check if Google Maps has Public Transport directions for your location

Click on the following link to find out if Google Maps has public transport information for your event’s location:

https://maps.google.com/landing/transit/cities/ 

If Google has public transport for your event’s location.. Great!!  Then go to the Example (step 2) below.

If they don’t have public transport for your event’s location. It might be because your public transport provider has not yet provided Google the data in the correct format.  We suggest you contact your public transport provider and suggest they get their data on Google Maps.  If they don’t know how or need help, tell them about AddTransit or send them a link (https://addtransit.com) and we can help get their public transport (ferries, buses, trams and trains) onto Maps.

2. An Example: Public Transport Directions Using Google Maps

Here’s an example of it could look. We’ve used “Times Square, New York” as the event destination.

Try entering Boston, MA as the starting address…..

 

3. Add this code

Here’s the code that you will need to add to your website.  You’ll need to modify the “Times Square, New York, USA” to be the address of your event.

<form action=”https://maps.google.com/maps” method=”get” target=”_blank”>
<label for =”saddr”>Enter your starting address: </label>
<input type=”text” name=”saddr” />
<input type=”hidden” name=”daddr” value=”Times Square, New York, USA” />
<input type=”hidden” name=”dirflg” value=”r” />
<input type=”submit” value=”Show Journey” />
</form>

Publish the updated webpage and that’s it!  Done!

Hope that helps and let us know if you have any questions.

Have a great day!

Leave a Reply

Your email address will not be published.