Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
More LOST -> Lost renaming for 2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ecgreb committed Sep 26, 2016
1 parent 408fb0f commit f17be57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Getting Started

When using LOST, [`GoogleApiClient`](https://developer.android.com/reference/com/google/android/gms/common/api/GoogleApiClient.html) is replaced by [`LostApiClient`](https://github.com/mapzen/LOST/blob/master/lost/src/main/java/com/mapzen/android/lost/api/LostApiClient.java).
When using Lost, [`GoogleApiClient`](https://developer.android.com/reference/com/google/android/gms/common/api/GoogleApiClient.html) is replaced by [`LostApiClient`](https://github.com/mapzen/lost/blob/master/lost/src/main/java/com/mapzen/android/lost/api/LostApiClient.java).

## Create and connect a LostApiClient

Expand All @@ -16,4 +16,3 @@ lostApiClient.connect();

}
```

2 changes: 1 addition & 1 deletion docs/location-updates.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Requesting Location Updates

LOST provides the ability to request ongoing location updates. You can specify the update interval, minimum displacement, and priority. The priority determines which location providers will be activated.
Lost provides the ability to request ongoing location updates. You can specify the update interval, minimum displacement, and priority. The priority determines which location providers will be activated.

```java
LocationRequest request = LocationRequest.create().setInterval(5000).setSmallestDisplacement(10).setPriority(LocationRequest.PRIORITY_LOW_POWER);
Expand Down
6 changes: 3 additions & 3 deletions docs/mock-locations-routes.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#Mock Locations

With LOST you can mock not just individual locations but also entire routes. By loading a [GPX trace file](http://www.topografix.com/gpx.asp) onto the device you can configure LOST to replay locations from the trace file including latitude, longitude, speed, and bearing.
With Lost you can mock not just individual locations but also entire routes. By loading a [GPX trace file](http://www.topografix.com/gpx.asp) onto the device you can configure Lost to replay locations from the trace file including latitude, longitude, speed, and bearing.

**Mocking a single location**
To mock a single location with LOST you must first enable mock mode. Then you simply create a mock location object and pass it to the API.
To mock a single location with Lost you must first enable mock mode. Then you simply create a mock location object and pass it to the API.

```java
Location mockLocation = new Location("mock");
Expand All @@ -17,7 +17,7 @@ LocationServices.FusedLocationApi.setMockLocation(mockLocation);
The mock location object you set will be immediately returned to all registered listeners and will be returned the next time `getLastLocation()` is called.

**Mocking an entire route**
To mock an entire route you must first transfer a [GPX trace file](http://www.topografix.com/gpx.asp) to the device using [adb](http://developer.android.com/tools/help/adb.html). Sample GPX traces can be found on the [public GPS traces page](http://www.openstreetmap.org/traces) for OpenStreetMap. Once the trace file is loaded on the device you can tell LOST to replay the locations in the trace at the requested update interval.
To mock an entire route you must first transfer a [GPX trace file](http://www.topografix.com/gpx.asp) to the device using [adb](http://developer.android.com/tools/help/adb.html). Sample GPX traces can be found on the [public GPS traces page](http://www.openstreetmap.org/traces) for OpenStreetMap. Once the trace file is loaded on the device you can tell Lost to replay the locations in the trace at the requested update interval.

```java
File file = new File(Environment.getExternalStorageDirectory(), "mock_track.gpx");
Expand Down

0 comments on commit f17be57

Please sign in to comment.