Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 --- | |
| 2 layout: default | |
| 3 title: A Basic Geolocation Example | |
| 4 live_example_url: example/index.html | |
| 5 header: | |
| 6 css: ["/samples/samples.css"] | |
| 7 --- | |
| 8 | |
| 9 ## {{ page.title }} | |
| 10 | |
| 11 Read the | |
| 12 [source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/geoloca tion/trip_meter). | |
| 13 | |
| 14 The Geolocation API lets you track a user's location. The API is | |
| 15 device-agnostic; the underlying mechanism might be via GPS, | |
|
Kathy Walrath
2013/10/28 15:26:37
device-agnostic -> device agnostic
(No need for a
shailentuli
2013/10/28 17:07:54
Done.
| |
| 16 wifi, or simply asking the user to enter their location manually. Since | |
| 17 these lookups can take some time, the API is asynchronous, and you | |
| 18 pass it a callback method whenever you request a location. | |
| 19 | |
| 20 The Trip Meter example display's the user's initial location, and it | |
|
Kathy Walrath
2013/10/28 15:26:37
display's -> displays
shailentuli
2013/10/28 17:07:54
Done.
| |
| 21 tracks the distance the user has travelled since the page was loaded. | |
| 22 | |
| 23 You can open the example in Dart Editor and run it by clicking `index.html`. | |
| 24 | |
| 25 <iframe class="running-app-frame" | |
| 26 style="height:300px;width:100%;" | |
| 27 src="{{page.live_example_url}}"> | |
| 28 </iframe> | |
| 29 | |
| 30 See all [samples](/samples/). | |
| OLD | NEW |