Skip to content

Commit 039bf04

Browse files
authored
Update Example to MapboxNavigation 2.5 (#176)
1 parent 4e085fa commit 039bf04

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

Navigation-Examples/Examples/Upcoming-Intersection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class ElectronicHorizonEventsViewController: UIViewController {
145145
var edge: RoadGraph.Edge? = edge
146146
totalDistance = 0.0
147147

148-
// Update the route line shape and total distance of the most propable path.
148+
// Update the route line shape and total distance of the most probable path.
149149
while let currentEdge = edge {
150150
if let shape = roadGraph.edgeShape(edgeIdentifier: currentEdge.identifier) {
151151
coordinates.append(contentsOf: shape.coordinates.dropFirst(coordinates.isEmpty ? 0 : 1))
@@ -167,8 +167,8 @@ class ElectronicHorizonEventsViewController: UIViewController {
167167
private func updateMostProbablePathLayer(fractionFromStart: Double,
168168
roadGraph: RoadGraph,
169169
currentEdge: RoadGraph.Edge.Identifier) {
170-
// Based on the length of current edge and the total distance of the most propable path (MPP),
171-
// calculate the fraction of the point traveled distance to the whole most propable path (MPP).
170+
// Based on the length of current edge and the total distance of the most probable path (MPP),
171+
// calculate the fraction of the point traveled distance to the whole most probable path (MPP).
172172
if totalDistance > 0.0,
173173
let currentLength = roadGraph.edgeMetadata(edgeIdentifier: currentEdge)?.length {
174174
let fraction = fractionFromStart * currentLength / totalDistance

Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ install! 'cocoapods', :warn_for_unused_master_specs_repo => false
33
platform :ios, '11.0'
44
use_frameworks!
55

6-
pod 'MapboxCoreNavigation', '~> 2.0'
7-
pod 'MapboxNavigation', '~> 2.0'
6+
pod 'MapboxCoreNavigation', '~> 2.5.0'
7+
pod 'MapboxNavigation', '~> 2.5.0'
88

99
target 'Navigation-Examples' do
1010
end

Podfile.lock

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
PODS:
2-
- MapboxCommon (21.2.1)
3-
- MapboxCoreMaps (10.4.2):
4-
- MapboxCommon (~> 21.2)
5-
- MapboxCoreNavigation (2.4.1):
6-
- MapboxDirections (~> 2.4)
2+
- MapboxCommon (21.3.0)
3+
- MapboxCoreMaps (10.5.1):
4+
- MapboxCommon (~> 21.3)
5+
- MapboxCoreNavigation (2.5.0):
6+
- MapboxDirections (~> 2.5.0)
77
- MapboxMobileEvents (~> 1.0)
8-
- MapboxNavigationNative (< 95.0.0, >= 94.0.3)
9-
- MapboxDirections (2.4.0):
8+
- MapboxNavigationNative (~> 101.0)
9+
- MapboxDirections (2.5.0):
1010
- Polyline (~> 5.0)
1111
- Turf (~> 2.0)
12-
- MapboxMaps (10.4.3):
13-
- MapboxCommon (= 21.2.1)
14-
- MapboxCoreMaps (= 10.4.2)
12+
- MapboxMaps (10.5.0):
13+
- MapboxCommon (= 21.3.0)
14+
- MapboxCoreMaps (= 10.5.1)
1515
- MapboxMobileEvents (= 1.0.7)
1616
- Turf (~> 2.0)
1717
- MapboxMobileEvents (1.0.7)
18-
- MapboxNavigation (2.4.1):
19-
- MapboxCoreNavigation (= 2.4.1)
20-
- MapboxMaps (< 11.0.0, >= 10.4.3)
18+
- MapboxNavigation (2.5.0):
19+
- MapboxCoreNavigation (= 2.5.0)
20+
- MapboxMaps (~> 10.5)
2121
- MapboxMobileEvents (~> 1.0)
2222
- MapboxSpeech (~> 2.0)
2323
- Solar-dev (~> 3.0)
24-
- MapboxNavigationNative (94.0.3):
25-
- MapboxCommon (~> 21.2)
24+
- MapboxNavigationNative (101.0.0):
25+
- MapboxCommon (~> 21.3)
2626
- MapboxSpeech (2.0.0)
2727
- Polyline (5.0.2)
2828
- Solar-dev (3.0.1)
2929
- Turf (2.4.0)
3030

3131
DEPENDENCIES:
32-
- MapboxCoreNavigation (~> 2.0)
33-
- MapboxNavigation (~> 2.0)
32+
- MapboxCoreNavigation (~> 2.5.0)
33+
- MapboxNavigation (~> 2.5.0)
3434

3535
SPEC REPOS:
3636
trunk:
@@ -48,19 +48,19 @@ SPEC REPOS:
4848
- Turf
4949

5050
SPEC CHECKSUMS:
51-
MapboxCommon: e518bf4e496722343c77177943cf3c11efe3fc9e
52-
MapboxCoreMaps: 227b33943eb5b257fdebc56474007e214981f43d
53-
MapboxCoreNavigation: 8add6f6c30c2415b7d95c32f3f1eef33bb38d00d
54-
MapboxDirections: c3fd015787ff85b6bcfba7b12156d75fa74121b1
55-
MapboxMaps: d692e7a2ddce3f59eb2b881733c1a8ca18d1d2eb
51+
MapboxCommon: a336e40b53e3fda5c419fe093c9c40aff4f4dd2b
52+
MapboxCoreMaps: f0c995b043323571ec46d7d9e496390982f6509d
53+
MapboxCoreNavigation: 5714160c82d691003513012012f9fb380a7b0d82
54+
MapboxDirections: a5ca101fe80e5f39dfe38e4d5131572890d797c4
55+
MapboxMaps: e85375aa3d6bea94bf9c0221aa59f35ee0b29f29
5656
MapboxMobileEvents: f7f3e8daeb4b83688ae62a4172dce79169a97233
57-
MapboxNavigation: 8669fe8aa67d5da1b84afc21a120812b4d8f3f21
58-
MapboxNavigationNative: 145551b74e5dab196b6b11adc366d9dce529c5d3
57+
MapboxNavigation: 49619e04350a460bc8b54874e52e3a4abc417d7c
58+
MapboxNavigationNative: 2616c3107613454b3bedf1e54798e42e318d875c
5959
MapboxSpeech: e4ed02984444b6373374c72c369edaf045cc490c
6060
Polyline: fce41d72e1146c41c6d081f7656827226f643dff
6161
Solar-dev: 4612dc9878b9fed2667d23b327f1d4e54e16e8d0
6262
Turf: 60b93cfdc62758526bc7bf1ef191a829aeb9694d
6363

64-
PODFILE CHECKSUM: ade747cd70b06f12dd4076e55177eb029b4813b0
64+
PODFILE CHECKSUM: 9c788579cac8b5b8c8533651cb073a6c4f442049
6565

6666
COCOAPODS: 1.11.3

0 commit comments

Comments
 (0)