Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
index.html
trip_meter.css
trip_meter.dart

README.md

Trip Meter: A Basic Geolocaton Example

A port of the Geolocation example used in the [A Simple Trip Meter Using the Geolocation API] (http://www.html5rocks.com/en/tutorials/geolocation/trip_meter/) article by Michael Mahemoff, originally published on HTML5Rocks.

The Geolocation API lets you track a user's location. The API is device-agnostic; the underlying mechanism might be via GPS, wifi, or simply asking the user to enter their location manually. Since these lookups can take some time, the API is asynchronous, and you pass it a callback method whenever you request a location.

The Trip Meter example display's the user's initial location, and it tracks the distance the user has travelled since the page was loaded.

Please report any bugs or feature requests.

You can’t perform that action at this time.