Map Image API Developer's Guide

Outline Regions

This article shows how to make a request to show regions outlined in USA.

User Story

The user wants to obtain a map view base displaying regions outlined in the map.

Request

This example shows regions outlined over a USA map. The parameters aN define the polygons and the parameters txN define the texts used.
https://image.maps.ls.hereapi.com/mia/1.6/region
?apiKey={YOUR_API_KEY}
&a0=44.995883,-111.005859,45.011419,-104.0625,41.004775,
-104.051514,41.046217,-111.049805
&a1=41.983994,-114.016113,42.000325,-111.049805,41.046217,-111.071777,
40.996484,-109.072266,37.002553,-109.050293,37.03764,-114.060059
&fc1=80FF0000
&a2=40.996484,-109.072266,41.013066,
-102.041016,37.020098,-102.041016,37.002553,-109.050293
&fc2=80FFFF00
&tx0=44.103365,-107.486289;Wyoming;FFFF0000;FFFFFFFF;15
&tx1=38.393339,-111.796875;Utah;FF0000FF;FFFFFFFF;15
&tx2=37.978845,-105.46875;Colorado;FFFFFF00;FF000000;15
&sb=mk
&t=2
&z=4
&w=600
&h=350
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see Authentication Guide. For examples of how to use the other authentication options with the Map Image API, see Authentication Examples.

Response

The response to the request delivers the following map image:

Figure 1. Regions outlined in USA Region image