Google maps JS Geolocation example

I’ve been developing a galway bus service web app using javascript.

The app shows a users current position on a map, and provides a list of bus routes to choose from. When a bus route is chosen, the stops are marked on the map and directions are displayed to the nearest stop.

You can check out the web app below (..in development, so be patient):
Galway Bus Routes Website

Below is an example of how to get a users current position using google maps javascript API:
**the geolocation calls will not work from an insecure source.

DarraghGoogle maps JS Geolocation example