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.
Integrating the Navigation SDK into your project
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).
To create NavigationRouteOptions
let origin = Waypoint(coordinate: origin, coordinateAccuracy: -1, name: "Start") let destination = Waypoint(coordinate: destination, coordinateAccuracy: -1, name: "Finish") // Specify that the route is intended for automobiles avoiding traffic let routeOptions = NavigationRouteOptions(waypoints: [origin, destination], profileIdentifier: .automobileAvoidingTraffic)
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.
Start Navigation
To start the navigation process make sure the route and routeOptions aren’t nil.
guard let route = route, let routeOptions = routeOptions else { return } let navigationViewController = NavigationViewController(for: route, routeOptions: routeOptions) navigationViewController.modalPresentationStyle = .fullScreen self.present(navigationViewController, animated: true, completion: nil)
Find out how Jungleworks' products can help you set up & manage your online business
Have our business experts on the phone to understand your company's operations and guide you through a demo customized to your business industry.
We are trusted by the best in the world
Request a Free Demo
Our experts will contact you shortly
Step 1 of 3.
Explore our platform and launch your business with Yelo
Take a comprehensive walkthrough of the features and functionalities that Yelo provides, and learn how you can launch and grow your hyperlocal business.
We are trusted by the best in the world
Launch your Hyperlocal Business
Get started with Yelo Today
Your Theme has been SelectedIf you wish to proceed with this, the selected theme will be applied to your live account.
If that's okay, kindly Proceed Ahead.
Else you can Try the Theme Later as required from the theme section.
Try Later
Sign up for 14 days free trial.
Learn more about Yelo and its features during Yelo's 14 days free trial. You can set up your online hyperlocal store without coding and explore the platform on your own. Upgrade your plan only when you're ready.
Make the best of this opportunity, explore the platform before you pay.
Sign up for 14 days free trial.
Learn more about Yelo and its features during Yelo's 14 days free trial. You can set up your online hyperlocal store without coding and explore the platform on your own. Upgrade your plan only when you're ready.
Make the best of this opportunity, explore the platform before you pay.
Find out how Panther can help you expand your consultation business.
Build a community of doctors, lawyers, astrologers, fitness experts and many more with Panther. Connect with our business experts & get a demo customized to your business requirements.
We are trusted by the best in the world
Launch Your Consultation Business
Our experts will contact you shortly
Sign up for 14 days free trial
Learn more about Panther and its features during Panther's 14 days free trial. You can set up your online consultation platform without coding and explore it on your own. Upgrade your plan only when you're ready.
Setup your online consultation businessCreate an online presence for your business500+ Integrations100+ Payment Gateways
Start your 14 days free trial.
Make the best of this opportunity, explore the platform before you pay.
Find out how Yelo can help you expand your business.
Have our business experts on the phone to understand your brand's operations and guide you through a demo customized to your business industry.
We are trusted by the best in the world
Launch your Hyperlocal Business
Our experts will contact you shortly
Find out how Tookan can help you set up and grow your online delivery & logistics business
Connect with our product specialists to understand how the world's fastest-growing companies use Tookan to optimize deliveries.
We are trusted by the best in the world
Get in Touch
Our business experts will contact you shortly
Explore the Tookan platform for your business and get started today
Take a comprehensive walkthrough of the features and functionalities that Tookan provides, and learn how you can start managing your dispatch and delivery operations in a smoother manner.
We are trusted by the best in the world
Get Started for Free
Your online delivery platform is just one step away
Sign up for 14 days free trial
Learn more about Tookan and its features during the 14 days free trial. You can start managing your operations with Tookan without coding. White-label your platform or upgrade your plan only when you're ready.
Automate your delivery & logistics operationsOptimize routes saving time and cost45+ Free POS integrationsCustomized CSV support for bulk order creation
Start your 14 days free trial.
Make the best of this opportunity, explore the platform before you pay.
Thank you!
Our team will get in touch with you for the next steps, For questions or rush request please email contact@jungleworks.co
Our Product Specialist will get in touch with you for the next steps. Click on the button below to see how your website will look like.