To be able to use the API in your project, you first need to get the library for the HERE launchers API and add it into your project. You can find the library from the HERE Launchers API project; simply visit the project and download the files to your hard drive. The library for the launchers API is located under the libraries folder, and the source codes for the library are located under the DLL folder.
To include the library into your project, you need to do the following tasks:
After you have added the library into your project, you still need to add the namespace using into the project files in which you are going to use the API. To do this, add the following line into the C# file, right after the other using lines:
After this, you can simply add the task launchers code pieces into the section in which you would want to use them. For example, if you want to show London with the HERE Maps application, you could do it like this:
ExploremapsShowMapTask showMap = new ExploremapsShowMapTask(); showMap.Location = new GeoCoordinate(51.501249,-0.126271); showMap.Zoom = 10; showMap.Show();
After you have successfully added the snippet to your application and executed it, you should have something like this on the phone screen:
Figure 1. HERE Maps application employing the above GeoCoordinates and Zoom level
Last updated 4 June 2013