Commit 091c5cb3 authored by IOS Developer's avatar IOS Developer
Browse files

update map module

parent 3e8d03f2
......@@ -9,6 +9,7 @@
/* Begin PBXBuildFile section */
111477E82484DC6600C6D56B /* MapNavigationApiRequests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 111477E72484DC6600C6D56B /* MapNavigationApiRequests.swift */; };
111477EB2484DCCA00C6D56B /* MapBoxNavigationApiRequests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 111477EA2484DCCA00C6D56B /* MapBoxNavigationApiRequests.swift */; };
111477EF2485123100C6D56B /* GoogleMapNavigationApiRequests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 111477EE2485123100C6D56B /* GoogleMapNavigationApiRequests.swift */; };
1147C7FE2473D420001C9127 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1147C7FD2473D420001C9127 /* AppDelegate.swift */; };
1147C8002473D420001C9127 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1147C7FF2473D420001C9127 /* SceneDelegate.swift */; };
1147C8022473D420001C9127 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1147C8012473D420001C9127 /* ViewController.swift */; };
......@@ -74,6 +75,7 @@
/* Begin PBXFileReference section */
111477E72484DC6600C6D56B /* MapNavigationApiRequests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapNavigationApiRequests.swift; sourceTree = "<group>"; };
111477EA2484DCCA00C6D56B /* MapBoxNavigationApiRequests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapBoxNavigationApiRequests.swift; sourceTree = "<group>"; };
111477EE2485123100C6D56B /* GoogleMapNavigationApiRequests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoogleMapNavigationApiRequests.swift; sourceTree = "<group>"; };
1147C7FA2473D420001C9127 /* MapModule.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MapModule.app; sourceTree = BUILT_PRODUCTS_DIR; };
1147C7FD2473D420001C9127 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
1147C7FF2473D420001C9127 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
......@@ -198,6 +200,7 @@
children = (
111477E92484DCA200C6D56B /* Interface */,
111477EA2484DCCA00C6D56B /* MapBoxNavigationApiRequests.swift */,
111477EE2485123100C6D56B /* GoogleMapNavigationApiRequests.swift */,
);
path = ServerApi;
sourceTree = "<group>";
......@@ -268,13 +271,13 @@
1147C82D2473D587001C9127 /* MapModules */ = {
isa = PBXGroup;
children = (
1147C83A2473F6EF001C9127 /* Models */,
111477E62484DC3200C6D56B /* ServerApi */,
11FF6630247B2AB80041A9DE /* Extension */,
11FF6629247B22890041A9DE /* APIKeys */,
11FF6625247B1E990041A9DE /* BridgingHeader */,
1147C8372473F505001C9127 /* Delegate */,
11FF65F0247B14EC0041A9DE /* Interfaces */,
1147C83A2473F6EF001C9127 /* Models */,
11FF6637247B2FC40041A9DE /* ClusterModule */,
);
path = MapModules;
......@@ -859,6 +862,7 @@
11FF6628247B21250041A9DE /* GoogleMapMarker.swift in Sources */,
1147C8392473F51C001C9127 /* MapClusteringDelegate.swift in Sources */,
1147C8412474049D001C9127 /* MapBoxClusteringController.swift in Sources */,
111477EF2485123100C6D56B /* GoogleMapNavigationApiRequests.swift in Sources */,
11FF6633247B2ACE0041A9DE /* UIView+Extension.swift in Sources */,
1147C7FE2473D420001C9127 /* AppDelegate.swift in Sources */,
114D81882477EEC20066C4A6 /* CKClusterManager.m in Sources */,
......@@ -1056,7 +1060,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.triare.MapModule;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "/Users/alexander/ModulesForApp/MapModule/MapModule/MapModules/BridgingHeader/MapModule-Bridging-Header.h";
SWIFT_OBJC_BRIDGING_HEADER = "MapModule/MapModules/BridgingHeader/MapModule-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
......@@ -1076,7 +1080,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.triare.MapModule;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "/Users/alexander/ModulesForApp/MapModule/MapModule/MapModules/BridgingHeader/MapModule-Bridging-Header.h";
SWIFT_OBJC_BRIDGING_HEADER = "MapModule/MapModules/BridgingHeader/MapModule-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
......
......@@ -7,7 +7,7 @@
<key>MapModule.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>8</integer>
<integer>10</integer>
</dict>
</dict>
</dict>
......
......@@ -19,10 +19,19 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<color key="backgroundColor" systemColor="systemGreenColor" red="0.20392156859999999" green="0.78039215689999997" blue="0.34901960780000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="t30-uL-LAC">
<rect key="frame" x="137" y="411" width="46" height="30"/>
<state key="normal" title="Button"/>
<connections>
<action selector="routeAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="rWn-Jj-YT7"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="Sol-0j-GTR" secondAttribute="trailing" id="1x1-Qf-sYu"/>
<constraint firstItem="t30-uL-LAC" firstAttribute="centerY" secondItem="6Tk-OE-BBY" secondAttribute="centerY" multiplier="1.5" id="CqG-6e-pwu"/>
<constraint firstItem="t30-uL-LAC" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="LAt-fT-rqZ"/>
<constraint firstItem="Sol-0j-GTR" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="WEx-ui-xur"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="Sol-0j-GTR" secondAttribute="bottom" id="chg-km-ovx"/>
<constraint firstItem="Sol-0j-GTR" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="top" id="gCN-H0-ADZ"/>
......
......@@ -10,4 +10,5 @@ import Foundation
enum APIKeys {
static let googleMap = "AIzaSyBZqaVnSdIJP4ghK3Xq1j6NFfrAgE3I40s"
static let mapBox = "sk.eyJ1Ijoic2FzaGFrcnVnbHlhayIsImEiOiJja2Fkb2YxMXMxc2thMndxdzQ2c2ViMGRzIn0.RWSGYfA_YTpCqn9XSjyn0A"
}
......@@ -23,9 +23,13 @@ class GoogleMapClusteringController: NSObject, MapClusteringInterface {
GoogleMapMarker.init(coordinates: CLLocationCoordinate2D.init(latitude: 49.444431, longitude: 32.051769), placeShortDescription: "SomePlace", placeFullDescription: "FullPlaceDescription"),
GoogleMapMarker.init(coordinates: CLLocationCoordinate2D.init(latitude: 49.444431, longitude: 32.054769), placeShortDescription: "SomePlace", placeFullDescription: "FullPlaceDescription")]
private var polyline: GMSPolyline = GMSPolyline.init()
var mapView: GMSMapView!
var mapDelegate: MapClusteringDelegate?
var mapNavigationApiRequests: MapNavigationApiRequests? = GoogleMapNavigationApiRequests()
private var clusterManager: GMUClusterManager!
func setUpMap(in view: UIView, with delegate: MapClusteringDelegate) {
......@@ -59,9 +63,38 @@ class GoogleMapClusteringController: NSObject, MapClusteringInterface {
}
}
func drawNavigationRoute() {
guard let marker = mapView.selectedMarker,
let userLocation = mapView.myLocation else { return }
mapNavigationApiRequests?.getNavigationData(from: userLocation.coordinate, to: marker.position, with: .walker, completion: { (coordinates) in
guard let routes = coordinates as? Data else { return }
do {
let dictionatyData = try JSONSerialization.jsonObject(with: routes, options: []) as? [String : Any]
guard let routes = dictionatyData!["routes"] as? Array<[String: Any]> else { return }
self.polyline.map = nil
for route in routes {
guard let routeOverviewPolyline = route["overview_polyline"] as? [String: Any] else { return }
let points = routeOverviewPolyline["points"] as! String
let path = GMSPath.init(fromEncodedPath: points)
self.polyline = GMSPolyline.init(path: path)
self.polyline.strokeColor = UIColor.blue
self.polyline.strokeWidth = 2
self.polyline.map = self.mapView
}
} catch let error {
print(error.localizedDescription)
}
})
}
}
extension GoogleMapClusteringController: GMSMapViewDelegate {
func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool {
if let marker = marker.userData as? GoogleMapMarker {
mapDelegate?.didSelect(marker: marker)
......@@ -94,3 +127,4 @@ extension GoogleMapClusteringController: GMUClusterManagerDelegate {
return true
}
}
......@@ -26,17 +26,33 @@ class MapBoxClusteringController: NSObject, MapClusteringInterface {
var mapView: MGLMapView!
var mapDelegate: MapClusteringDelegate?
var mapNavigationApiRequests: MapNavigationApiRequests? = MapBoxNavigationApiRequests()
func setUpMap(in view: UIView, with delegate: MapClusteringDelegate) {
mapView = MGLMapView(frame: view.bounds, styleURL: MGLStyle.outdoorsStyleURL)
mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
mapView.delegate = self
mapView.showsUserLocation = true
mapView.setCenter(CLLocationCoordinate2D.init(latitude: 49.444431, longitude: 32.059769), zoomLevel: 5, animated: false)
mapView.showsUserHeadingIndicator = true
mapView.setCenter(CLLocationCoordinate2D.init(latitude: 49.444431, longitude: 32.059769), zoomLevel: 12, animated: false)
view.addSubview(mapView)
mapDelegate = delegate
}
func drawNavigationRoute() {
guard let userLocation = mapView.userLocation,
let selectedAnnotation = mapView.selectedAnnotations.first else { return }
mapNavigationApiRequests?.getNavigationData(from: userLocation.coordinate, to: selectedAnnotation.coordinate, with: .walker, completion: { (coordinates) in
guard let coordinates = coordinates as? [CLLocationCoordinate2D] else {return}
let routeLine = MGLPolyline(coordinates: coordinates, count: UInt(coordinates.count))
self.mapView.addAnnotation(routeLine)
self.mapView.setVisibleCoordinates(coordinates, count: UInt(coordinates.count), edgePadding: .zero, animated: true)
})
}
}
......
......@@ -13,6 +13,8 @@ protocol MapClusteringInterface {
var places: [MapMarkerModelInterface]! { get set }
var mapDelegate: MapClusteringDelegate? { get set }
var mapNavigationApiRequests: MapNavigationApiRequests? { get set }
func setUpMap(in view: UIView, with delegate: MapClusteringDelegate)
func drawNavigationRoute()
}
//
// GoogleMapNavigationApiRequests.swift
// MapModule
//
// Created by Alexander on 01.06.2020.
// Copyright © 2020 triare. All rights reserved.
//
import Foundation
import Alamofire
class GoogleMapNavigationApiRequests: MapNavigationApiRequests {
func getNavigationData(from: CLLocationCoordinate2D, to: CLLocationCoordinate2D, with routeType: DrawRouteType, completion: @escaping(Any) -> ()) {
let url = "https://maps.googleapis.com/maps/api/directions/json?origin=\(from.latitude),\(from.longitude)&destination=\(to.latitude),\(to.longitude)&mode=walking&key=\(APIKeys.googleMap)"
AF.request(url).responseData { (response) in
guard let data = response.value else { return }
completion(data as Any)
}
}
}
......@@ -9,5 +9,5 @@
import Foundation
protocol MapNavigationApiRequests {
func getNavigationData(from: CLLocationCoordinate2D, to: CLLocationCoordinate2D)
func getNavigationData(from: CLLocationCoordinate2D, to: CLLocationCoordinate2D, with routeType: DrawRouteType, completion: @escaping(Any) -> ())
}
......@@ -8,15 +8,30 @@
import Foundation
import Alamofire
import MapboxDirections
class MapBoxNavigationApiRequests: MapNavigationApiRequests {
func getNavigationData(from: CLLocationCoordinate2D, to: CLLocationCoordinate2D) {
let url = "https://api.mapbox.com/directions/v5/mapbox/walking?access_token=sk.eyJ1Ijoic2FzaGFrcnVnbHlhayIsImEiOiJja2Fkb2YxMXMxc2thMndxdzQ2c2ViMGRzIn0.RWSGYfA_YTpCqn9XSjyn0A"
let parameter: [String : Any] = ["coordinates" : "\(from.longitude), \(from.latitude); \(to.longitude), \(to.latitude)"]
let headers: HTTPHeaders = ["Content-Type" : "application/x-www-form-urlencoded"]
AF.request(url, method: .post, parameters: parameter, headers: headers).validate().responseJSON { (response) in
print(response)
func getNavigationData(from: CLLocationCoordinate2D, to: CLLocationCoordinate2D, with routeType: DrawRouteType, completion: @escaping(Any) -> ()) {
let directions: Directions = Directions(accessToken: APIKeys.mapBox)
let waypoints = [
Waypoint(coordinate: from, name: "User Location"),
Waypoint(coordinate: to, name: "Destination"),
]
let options = RouteOptions(waypoints: waypoints, profileIdentifier: .walking)
let task = directions.calculate(options) { (waypoints, routes, error) in
guard error == nil else {
print("Error calculating directions: \(error!)")
return
}
if let routes = routes?.first, let coordinates = routes.coordinates {
completion(coordinates)
}
}
}
}
......@@ -21,13 +21,15 @@ class ViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
mapController = MapBoxClusteringController()
mapController = GoogleMapClusteringController()
mapController?.setUpMap(in: viewForMap, with: self)
let req = MapBoxNavigationApiRequests.init()
req.getNavigationData(from: CLLocationCoordinate2D.init(latitude: 49.444431, longitude: 32.054769), to: CLLocationCoordinate2D.init(latitude: 49.454431, longitude: 31.054769))
mapController?.drawNavigationRoute()
}
@IBAction func routeAction(_ sender: Any) {
mapController?.drawNavigationRoute()
}
}
extension ViewController: MapClusteringDelegate {
......
......@@ -9,6 +9,7 @@ target 'MapModule' do
pod 'Mapbox-iOS-SDK'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'MapboxDirections.swift', '~> 0.9'
pod 'Alamofire'
target 'MapModuleTests' do
......
......@@ -9,13 +9,17 @@ PODS:
- GoogleMaps/Base (= 3.8.2)
- Mapbox-iOS-SDK (5.9.0):
- MapboxMobileEvents (= 0.10.2)
- MapboxDirections.swift (0.30.0):
- Polyline (~> 4.2)
- MapboxMobileEvents (0.10.2)
- Polyline (4.2.1)
DEPENDENCIES:
- Alamofire
- GoogleMaps
- GooglePlaces
- Mapbox-iOS-SDK
- MapboxDirections.swift (~> 0.9)
SPEC REPOS:
trunk:
......@@ -23,15 +27,19 @@ SPEC REPOS:
- GoogleMaps
- GooglePlaces
- Mapbox-iOS-SDK
- MapboxDirections.swift
- MapboxMobileEvents
- Polyline
SPEC CHECKSUMS:
Alamofire: c1ca147559e730bfb2182c8c7aafbdd90a867987
GoogleMaps: ae0efe10e9c40bcd9decd0c9fd53d947af7801a3
GooglePlaces: 8baf0c60e318431ca3c1b022f2745a23b104caca
Mapbox-iOS-SDK: a5915700ec84bc1a7f8b3e746d474789e35b7956
MapboxDirections.swift: 6be6f756176b2c16f308093cc4724fa82ce33b12
MapboxMobileEvents: 2bc0ca2eedb627b73cf403258dce2b2fa98074a6
Polyline: 0e9890790292741c8186201a536b6bb6a78d02dd
PODFILE CHECKSUM: 12d39142ef447534f7a20f27ea70429a50df4dd6
PODFILE CHECKSUM: 424224f2a035654a9c2c53b1449b79d1eb14d406
COCOAPODS: 1.8.4
......@@ -9,13 +9,17 @@ PODS:
- GoogleMaps/Base (= 3.8.2)
- Mapbox-iOS-SDK (5.9.0):
- MapboxMobileEvents (= 0.10.2)
- MapboxDirections.swift (0.30.0):
- Polyline (~> 4.2)
- MapboxMobileEvents (0.10.2)
- Polyline (4.2.1)
DEPENDENCIES:
- Alamofire
- GoogleMaps
- GooglePlaces
- Mapbox-iOS-SDK
- MapboxDirections.swift (~> 0.9)
SPEC REPOS:
trunk:
......@@ -23,15 +27,19 @@ SPEC REPOS:
- GoogleMaps
- GooglePlaces
- Mapbox-iOS-SDK
- MapboxDirections.swift
- MapboxMobileEvents
- Polyline
SPEC CHECKSUMS:
Alamofire: c1ca147559e730bfb2182c8c7aafbdd90a867987
GoogleMaps: ae0efe10e9c40bcd9decd0c9fd53d947af7801a3
GooglePlaces: 8baf0c60e318431ca3c1b022f2745a23b104caca
Mapbox-iOS-SDK: a5915700ec84bc1a7f8b3e746d474789e35b7956
MapboxDirections.swift: 6be6f756176b2c16f308093cc4724fa82ce33b12
MapboxMobileEvents: 2bc0ca2eedb627b73cf403258dce2b2fa98074a6
Polyline: 0e9890790292741c8186201a536b6bb6a78d02dd
PODFILE CHECKSUM: 12d39142ef447534f7a20f27ea70429a50df4dd6
PODFILE CHECKSUM: 424224f2a035654a9c2c53b1449b79d1eb14d406
COCOAPODS: 1.8.4
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -32,33 +32,47 @@
<key>orderHint</key>
<integer>3</integer>
</dict>
<key>MapboxMobileEvents.xcscheme</key>
<key>MapboxDirections.swift.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>4</integer>
</dict>
<key>MapboxMobileEvents.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>5</integer>
</dict>
<key>Pods-MapModule-MapModuleUITests.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>6</integer>
<integer>7</integer>
</dict>
<key>Pods-MapModule.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>5</integer>
<integer>6</integer>
</dict>
<key>Pods-MapModuleTests.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>7</integer>
<integer>8</integer>
</dict>
<key>Polyline.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>9</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
......
......@@ -914,6 +914,23 @@ Mapbox GL uses portions of software listed in [platform/android/LICENSE.md](http
Mapbox GL uses portions of software listed in [platform/ios/vendor/mapbox-events-ios/LICENSE.md](https://github.com/mapbox/mobile-events-ios/blob/master/LICENSE.md).
## MapboxDirections.swift
Copyright © 2014–2019, Mapbox
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
## MapboxMobileEvents
......@@ -1016,4 +1033,28 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
## Polyline
The MIT License (MIT)
Copyright (c) 2015 Raphaël Mor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Generated by CocoaPods - https://cocoapods.org
......@@ -949,6 +949,29 @@ Mapbox GL uses portions of software listed in [platform/ios/vendor/mapbox-events
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>Copyright © 2014–2019, Mapbox
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
</string>
<key>License</key>
<string>ISC</string>
<key>Title</key>
<string>MapboxDirections.swift</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>
......@@ -1058,6 +1081,36 @@ THE SOFTWARE.
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>The MIT License (MIT)
Copyright (c) 2015 Raphaël Mor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.</string>
<key>License</key>
<string>MIT</string>
<key>Title</key>
<string>Polyline</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>