Learn how to sign up for a free or trial account on developer.here.com which you will use to obtain an image of a map of a location.
- [Instructor] There are many ways to obtain a map, especially for web developers. They can get maps embedded in their web applications and of course you can call those APIs directly from your application whether it's a mobile application, desktop application and so forth. I'm going to use here.com. You can sign up for a free account and once you've signed up you can go to your personal details and then Projects. You will find one project name for each of the keys that you requested.
Once you click on the project, it will take you to the Project Details page and within that Project Details page you can see the App ID and App Code specific to that project. These you will need when you call the actual API. Which API? We're interested in the map image API. On the Products and REST API we find the details for the map image API. Click for the documentation and here we can see the map image API is really simple to call but it does require and app ID and an app code.
So that app ID and app code is what we just found that we copy and pasted from the project page. For each application I build, I would have an app ID and app code that I used to authenticate when I call these APIs. And of course, we can go make it more interesting. From the API Reference we are going to use the Mapview and you can see here we can build a URI with all sorts of interesting information, a bounding box, a coordinate, this is the location we're interested in and if you scroll all the way down our problem asked us to provide a very specific overlay, a visual indication of the accuracy of the location obtained.
So when we scroll all the way down there's a parameter called u and so this is the uncertainty radius. The radius of uncertain area around the requested position. We will pass in to the REST API the parameter that is our location, the coordinate, as well as a parameter u for the uncertainty and so we will be given an uncertainty by the API we call to determine our location and then we will provide that uncertainty to Mapview which will generate an image for us. This is really simple to call.
You can just construct the GetRequest and put it in your browser directly. In our case we are going to construct the request as a download request from within dotnet.
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.