MapHelperKit provides an elegant way to show locations or directions in Google Maps or Apple Maps.
- Easiest way to show locations or directions in map.
- MapHelperKit opens Apple Maps automatically, if Google Map is not installed on the device.
- Default mode asks user to show address in Google Map or Apple Map.
- Show directions with different direction mode.
- iOS 9.0+
- Xcode 8.3+
- Swift 4.0
pod'MapHelperKit'orpod'MapHelperKit','~> 1.2'Note: - To open Google Maps from iOS App please include following in your info.plist
<key>LSApplicationQueriesSchemes</key><array><string>comgooglemaps</string></array>letaddress="One Infinite Loop Cupertino, CA"letmapHelper=MapHelper(placeName: address)
mapHelper.openInMap()- Provide MapViewMode
mapHelper.mapViewMode =.satellite // Default is StandardView- Provide Zoom Level
mapHelper.zoomLevel =10 // Default is 14- Provide Map Type
mapHelper.mapType =.googleMap // Default is '.default', let's ask user to select map to open- Show directions from Current Location
letaddress="One Infinite Loop Cupertino, CA"letdirectionHelper=DirectionHelper(destination: address)
directionHelper.showDirection()- Show Direction from Source to Destination
letaddress1="One Infinite Loop Cupertino, CA"letaddress2="Apple Fitness Center, 10627 Bandley Dr, Cupertino, CA"letdirectionHelper=DirectionHelper(source: address1, destination: address2)
directionHelper.showDirection()- Provide Direction Mode
directionHelper.directionMode =.walking // Default is 'Driving'See Example for more details.
MapHelperKit is released under the MIT license. See LICENSE for details.


