What is the HERE iOS SDK?
The HereMap iOS SDK provides a set of programming interfaces that enable developers to build immersive, geographically-aware iOS applications by leveraging a powerful and flexible mapping platform. Through this SDK, developers can add rich location features such as routing, interactive maps, and global place search to their applications. The powerful client-side HereMap iOS SDK also includes a sophisticated engine for rendering map data and calculated routes.
Feature ListsThe main features offered by the HereMap iOS SDK are listed below.
Mapping:
In addition to the applicable terms and conditions under which you have licensed the SDK, the following shall apply: AppId and AppCode – You may see on Authenticating Applications .
System Requirements1. Acquire HereMap SDK Credentials
Before working with with HERE SDK, you need to acquire a set of credentials by registering your application on http://developer.here.com. Each application requires a unique set of credentials.
2. Create an NMAMapView
Select Main.storyboard in the navigator. Add the import statement to the top of this file:@import NMAKit; Name the outlet mapView, keep the other default options and then select Connect.
3. Now an outlet to NMAMapView is set. The modified file should be as follows:
#import "HelloMapViewController.h" @import NMAKit; @interface HelloMapViewController () @property (weak, nonatomic) IBOutlet NMAMapView *mapView; @end@implementation HelloMapViewController
(void)viewDidLoad
{
[super viewDidLoad];
}
(void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
@end
4. Implement NMAMapView setup and lifecycle code by modifying the viewDidLoad method as shown:-
(void)viewDidLoad
{
[super viewDidLoad];
//set geo center
NMAGeoCoordinates *geoCoordCenter =
[[NMAGeoCoordinates alloc] initWithLatitude:49.260327 longitude:-123.115025];
[self.mapView setGeoCenter:geoCoordCenter withAnimation:NMAMapAnimationNone];
self.mapView.copyrightLogoPosition = NMALayoutPositionBottomCenter;
//set zoom level
self.mapView.zoomLevel = 13.2;
}
5. Add your HERE application credentials.
Conclusion
Hope this article would help you understand the HereMap SDK integration in depth. There are various methods provided by the SDK to use its mapping and location changing properties. You can take help from the documentation provided by the platform itself, below are some references for its documentation.
References
Further Reading
How to build a website quickly using Platform over Custom development?
How Easy To Implement DZVideoPlayer in iOS App