This repository distributes a package rather than defining the complete product contract. Pair it with the owning SDK or product guide.
What this surface enables
A versioned iOS distribution package used to integrate maps, routes navigation, tracking telematics, widgets deep links, capture feedback, identity platform into an application.
No durable provider record or application workflow contract was established from the source identity or bounded document evidence; view, camera, callback, and authentication sessions alone do not make a source stateful.
Authority: Conservative Default · No durable-state signal promoted from incidental vocabularyiOS
MapsRoutes NavigationTracking TelematicsWidgets Deep LinksCapture FeedbackIdentity Platform
SwiftText
No explicit authentication signal detected
Prepare the integration
- An iOS project with Xcode and the package manager required by the source release
- The corresponding product entitlement enabled for the developer application
Setup and usage examples
These examples were extracted from the canonical public source document and sanitized for credential-like values. Check the source branch and package version before copying into a production application.
var drivingRangePlugin = MapplsDrivingRange(mapView: self.mapView)
self.drivingRangePlugin.delegate = self // optionalTopics documented by the source
01Introduction
The MapplsDrivingRangePlugin allows you to plot driving range area to drive based on time or distance on Mappls's vector map component.
The plugin offers the following basic functionalities:
• Get and Plot driving range as polygon on map.
• Update driving range on map.
• Clear already plotted driving range on map.
This can be done by following simple steps.
02Installation
To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL. See Adding Package Dependencies to Your App.
03Dependencies
This library requires the following dependencies:
• MapplsAPICore - MapplsAPIKit - MapplsMap
Please ensure these packages are added to your project.
04Dependencies
This library depends upon several Mappls's own libraries. All dependent libraries will be automatically installed using CocoaPods.
Below are list of dependcies which are required to run this SDK:
• MapplsAPIKit - MapplsMap
05MapplsAPICore
It is required to set Mappls keys to use any MAPPL's SDK. Please refer the documenatation here.
06MapplsDrivingRangePlugin
MapplsDrivingRange is the main class which is need to initialize to use different functionality of plugin. It requires an instance of MapplsMapView.
It allows you to plot driving range area to drive based on time or distance.
07Get And Plot Driving Range
A function getAndPlotDrivingRange of instance of MapplsDrivingRange will be used to get driving range and plot on map. This function will accept an instance of MapplsDrivingRangeOptions as request to get driving range.
Below is code for reference:
08Clear Driving Range
Plotted driving range on Map can be removed by calling function clearDrivingRangeFromMap.
Below is line of code to use it:
09Update Driving Range
Plotted driving range on map can be upated by calling function getAndPlotDrivingRange again with new request object (instance of MapplsDrivingRangeOptions).
Below is some code for reference:
10MapplsDrivingRangeDelegate
It is a protocol class which provides different callbacks of events of MapplsDrivingRange.
Below are different callback functions avaialble:
11drivingRange(:didFailToGetAndPlotDrivingRange:))
Called when the plugin fails to get and plot driving range.
• plugin:- The plugin that has calculated a driving range.
• error:- An error raised during the process of obtaining a new route.
12drivingRangeDidSuccessToGetAndPlotDrivingRange(:))
Called when the plugin succeed to get and plot driving range on map.
• plugin:- The plugin that has calculated a driving range.
13Our many happy customers:
For any queries and support, please contact:
Email us at apisupport@mappls.com
Support Need support? contact us!
[](https://about.mappls.com/blog/)[](https://github.com/mappls-api)
[](https://twitter.com/mappls)[](https://www.linkedin.com/company/mappls/)[](https://www.youtube.com/channel/UCAWvWsh-dZLLeUU7J9HiOA)
@ Copyright 2022 CE Info Systems Pvt. Ltd. All Rights Reserved.
Service references found
URLs are sanitized during ingestion and may include documentation or legacy hosts. Use them to trace the source, not as a substitute for the current API contract.
https://www.mapmyindia.com/apihttps://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app).https://github.com/mappls-api/mappls-api-core-ios-distribution.githttps://github.com/mappls-api/mappls-api-kit-ios-distribution-base.githttps://github.com/mappls-api/mappls-map-ios-distribution-base.githttps://www.mapmyindia.com/api/img/logos1/PhonePe.png)[](https://about.mappls.com/blog/)[](https://github.com/mappls-api)[https://www.npmjs.com/org/mapmyindiahttps://www.facebook.com/Mapplsofficial)[](https://twitter.com/mappls)[](https://www.linkedin.com/company/mappls/)[](https://www.youtube.com/channel/UCAWvWsh-dZLLeUU7_J9HiOAhttps://about.mappls.com/api/terms-&-conditionshttps://www.mappls.com/about/privacy-policyhttps://www.mappls.com/pdf/mappls-sustainability-policy-healt-labour-rules-supplir-sustainability.pdfhttps://www.mappls.com/pdf/Health-Safety-Management.pdfhttps://www.mappls.com/pdf/Environment-Sustainability-Policy-CSR-Report.pdf