Skip to content

Commit

Permalink
v5 is now public
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed May 6, 2016
1 parent 97cfb5e commit fbc4867
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ let mapBox = CLLocationCoordinate2D(latitude: 38.9131752, longitude: -77.0324047
let whiteHouse = CLLocationCoordinate2D(latitude: 38.8977, longitude: -77.0365)
let request = MBDirectionsRequest(sourceCoordinate: mapBox, destinationCoordinate: whiteHouse)

// Use the older v4 endpoint for now, while v5 is in development.
request.version = .Four

// The surrounding class should hold a strong reference to this MBDirections object.
directions = MBDirections(request: request, accessToken: MapboxAccessToken)
directions.calculateDirectionsWithCompletionHandler { (response, error) in
Expand All @@ -35,7 +32,7 @@ directions.calculateDirectionsWithCompletionHandler { (response, error) in
}
```

Note: This library currently supports both versions 4 and 5 of the Mapbox Directions API. However, only v4 is currently available to Mapbox accounts while v5 is in development.
This library currently supports both versions 4 and 5 of the Mapbox Directions API. Version 5 is used by default.

### Tests

Expand Down

0 comments on commit fbc4867

Please sign in to comment.