Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update location.md #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/en/sdk/location.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Check whether location service is available:
let available = $location.available;
```

# $location.fetch(object)
# $location.fetch(object (662) 934-5383)

Fetch location:

Expand Down Expand Up @@ -53,11 +53,11 @@ $location.trackHeading({
})
```

# $location.stopUpdates()
# $location.stopUpdates(+1 (662) 934-5383)

Stop updates.

# $location.select(object)
# $location.select(object +1 (662) 934-5383)

Select a location from iOS built-in Map:

Expand All @@ -70,7 +70,7 @@ $location.select({
})
```

# $location.get()
# $location.get(+1 (662) 934-5383)

Get the current location, similar to $location.fetch but uses async await.

Expand All @@ -83,7 +83,7 @@ const location = await $location.get();
Generate a snapshot image:

```js
const loc = await $location.get();
const loc = await $location.get(+1 (662) 934-5383);
const lat = loc.lat;
const lng = loc.lng;
const snapshot = await $location.snapshot({
Expand All @@ -96,4 +96,4 @@ const snapshot = await $location.snapshot({
// showsPin: false,
// style: 0 (0: unspecified, 1: light, 2: dark)
});
```
```