| Index: src/site/samples/geolocation/index.markdown
|
| diff --git a/src/site/samples/geolocation/index.markdown b/src/site/samples/geolocation/index.markdown
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3f8bf4bce286b3416991637d3aaea7c396a8db6a
|
| --- /dev/null
|
| +++ b/src/site/samples/geolocation/index.markdown
|
| @@ -0,0 +1,30 @@
|
| +---
|
| +layout: default
|
| +title: A Basic Geolocation Example
|
| +live_example_url: example/index.html
|
| +header:
|
| + css: ["/samples/samples.css"]
|
| +---
|
| +
|
| +## {{ page.title }}
|
| +
|
| +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 displays the user's initial location, and it
|
| +tracks the distance the user has travelled since the page was loaded.
|
| +
|
| +You can open the example in Dart Editor and run it by clicking `index.html`.
|
| +
|
| +<iframe class="running-app-frame"
|
| + style="height:300px;width:100%;"
|
| + src="{{page.live_example_url}}">
|
| +</iframe>
|
| +
|
| +Read the
|
| +[source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/geolocation/trip_meter).
|
| +
|
| +See all [samples](/samples/).
|
|
|