Flightmap Navigation gives you all the tools you need to add turn-by-turn navigation to your iOS application. Get up and running in a few minutes with our drop-in turn-by-turn navigation NavigationViewController, or build a completely custom turn-by-turn navigation app with our core components for routing and navigation.
To integrate Flightmap Navigation SDK into your project you’ll need a set of dependency frameworks click here to download. In order to initialize the NavigationMapView you need fm_token along with a style URL. If you already have a fm_token you can set it using MGLAccountManagaer.accessToken = your_fm_token otherwise you can register at our website (https://app.flightmap.io/v2/) and generate your fm_token. Once the access token is set you can initialize the NavigationMapView via the initializer NavigationMapView(frame: CGRect, styleURL: String). Initially you may provide the default (https://maps.flightmap.io/styles/default.json) style URL. In order to generate route details, you’ll need origin and destination coordinates. The route object is generated via the function Directions.shared.calculate(_ routeOptions: NavigationRouteOptions).
Once the routeOptions are generated, you can pass them to the calculate Directions.shared.calculate(routeOptions) method and draw the route on the basis of response.
To start the navigation process make sure the route and routeOptions aren’t nil.
Hurry up! This offer is only available till 31st October!