GuidesAPI Reference
Guides

Migrate from Map Image API v1 to Map Image API v3

📘

Note

To enable access to the HERE Map Image API v3 for an existing HERE platform account, create a support ticket in the HERE Support Portal.

Access pre-rendered map images, optimized for both desktop and mobile devices, through the HERE Map Image API v3. This upgraded API supersedes the HERE Map Image API v1. This guide assists you in seamlessly transitioning from the previous version to the HERE Map Image API v3, ensuring the continued operation of your location-based applications.

Changes overview

The following steps provide a high-level overview of the actions that you must perform to successfully complete the migration.

  1. Confirm that you are using API keys associated with your HERE platform account.
  2. Adjust or switch the authentication method as needed.
  3. Revise request parameters to align with the HERE Map Image API v3.
  4. Remove any parameters that are no longer supported.

Before you begin

Obtain a HERE platform account. Previously used HERE developer accounts do not work for the HERE Map Image API v3. The subsequent sections of this guide, provide comprehensive details and instructions for each step.

Request URL format

The HERE Map Image API v3 features an updated request format. The following table provides a comparison of two API versions, including the URL structure, resource, or path specifications:

VersionURLResource/PathParameters
V1https://image.maps.ls.hereapi.com/mia/1.6{resource}?apiKey={YOUR_API_KEY}
&parameter=value
V3https://image.maps.hereapi.com/mia/v3/{resource}/{projection}/{view}/{width}x{height}/{format}?apiKey={YOUR_API_KEY}
&parameter=value

Examples

The following snippets provide a comparison between sample V1 and V3 requests to facilitate the understanding of the fundamental differences between the API versions:

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/mapview
    ?apiKey={YOUR_API_KEY}
    &lat=52.53086
    &lon=13.38662
    &z=12
    &w=256
    &h=256
  • Response (V1):

    Basic request - V1

  • Request (V3):

    https://image.maps.hereapi.com/mia/v3/base/mc/center:52.53086,13.38662;zoom=12/256x256/png
    ?apiKey={YOUR_API_KEY}
  • Response (V3):

    Basic request - V3

    📘

    Note

    Consider the following V3 design features:

    • In the HERE Map Image API v3, you must specify a parameter that sets the camera position, for example, center with zoom/radius, overlay, bbox, bounds, and so on.
    • The value for the projection parameter must always be mc for Mercator Projection.

Authentication method

The HERE Map Image API v3 supports the API key authentication method only. For information on how to obtain an API key, see the Get started article in the HERE Map Image API v3 Developer Guide.

Image properties

As opposed to HERE Map Image API v1, in HERE Map Image API v3, you specify such parameters as the image format and size as part of the API path. The following table provides a breakdown of supported image properties for each API version:

V1 parameterDescriptionIs supportedAdditional information
fFile typeIn V3, the file type is part of the API path.
Available values include:
- png
- jpeg
- png8
qImage compressionNot supported.
hImage heightPart of the API path.
wImage widthPart of the API path.
📘

Note

Consider the following design features and restriction that changed between the API versions:

  • The maximum image width or height in both API versions is 2048 pixels. The minimum image width and height in the HERE Map Image API v1 is 0 pixels, while in V3, it is 64 pixels. This means that in V3, you cannot obtain an image smaller than 64x64 pixels.
  • When you don't specify the image size, the HERE Map Image API v1 defaults to 240x300 pixels. However, in the HERE Map Image API v1, you must provide an image size in the API path for the request to succeed.

Examples

The following requests show corresponding V1 and V3 request URL for obtaining a 380x460 pixel image in the PNG format:

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/mapview
    ?apiKey={YOUR_API_KEY}
    &lat=52.53086
    &lon=13.38662
    &z=12
    &w=380
    &h=480
    &f=0

    In the preceding example:

    • w=360 is image width in pixels
    • h=480 is image height in pixels
    • f=0 is the format parameter value for the PNG format
  • Request (V3)

    https://image.maps.hereapi.com/mia/v3/base/mc/center:52.53086,13.38662;zoom=12/380x460/png
    ?apiKey={YOUR_API_KEY}

    In the preceding example:

    • 380x460 is {width_value}x{height_value} in pixels
    • png is the image format

For more information on image properties, see Image dimensions and file type in the HERE Map Image API v3 Developer Guide.

Map display

The HERE Map Image API v3 features a number of updates related to such properties as the map language, available styles, and so on.

Language

Both API versions enable specifying the primary map language as well as the secondary language for dual labelling. In the HERE Map Image API v3, the supported language code value is updated from the MARC three-letter format to the BCP47 two-letter format.

V1 parameterDescriptionIs supportedAdditional information
mlPrimary languageIn V3, use the lang parameter.
ml2Secondary languageIn V3, use the lang2 parameter.

Examples

The following example requests show how language customization for map images differs between the API versions.

  • Request (V1):

    The following request renders a map image with dual labels, where the primary language is Welsh and the secondary language is English:

    https://image.maps.ls.hereapi.com/mia/1.6/mapview
    ?apiKey={YOUR_API_KEY}
    &t=5
    &lat=52.067881
    &lon=-3.172245
    &z=5
    &w=256
    &h=256
    &f=0
    &nodot
    &ml=wel
    &ml2=eng
  • Response (V1):

    Language customization - V1

  • Request (V3):

    The following example shows the corresponding V3 request:

    https://image.maps.hereapi.com/mia/v3/base/mc/center:52.067881,-3.172245;zoom=5/256x256/png
    ?apiKey={YOUR_API_KEY}
    &lang=cy
    &lang2=en
  • Response (V3):

    Language customization - V3

    📘

    Note

    If you don't specify a map language, the primary labels for images rendered with the HERE Map Image API v3 default to the local language.

    Hint

    To get the list of languages available in the HERE Map Image API v3, make a request to the /languages endpoint.

For more information, see Language customization in the HERE Map Image API v3 Developer Guide.

Pixel density

In contrast to the HERE Map Image API v1, the HERE Map Image API v3 supports 100 and 400 values for the pixel per inch (ppi) parameter. The following table provides instructions on how to adjust the ppi parameter when migrating to the v3 version of the API:

V1 PPI valueIs supportedAdditional information
72⚠️In V3, use 100.
250Use 400.
320Use 400.
500Use 400.

Geopolitical view

The HERE Map Image API v3 supports the display of maps adjusted according to a specific geopolitical view by using the pview parameter. The supported pview parameter value format changes from the ISO 3166-1 alpha-3 country code to the ISO 3166-1 alpha-2 country code.

Examples

The following examples demonstrate how to request a specific political view in both versions of the API:

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/mapview
    ?apiKey={YOUR_API_KEY}
    &lat=32.632350
    &lon=74.407587
    &z=5
    &w=256
    &h=256
    &nodot
    &pview=PAK

    In the preceding example, pview=PAK applies the Pakistani geopolitical view to the map image.

  • Response (V1):

    Geopolitical views - V1

  • Request (V3):

    The corresponding V3 example applies the same geopolitical view:

    https://image.maps.hereapi.com/mia/v3/base/mc/center:32.632350,74.407587;zoom=5/256x256/png
    ?apiKey={YOUR_API_KEY}
    &pview=PK
  • Response (V3):

    Geopolitical views - V3

    📘

    Hint

    To get the list of the available geopolitical views in the HERE Map Image API v3, make a request to the /politicalViews endpoint.

For more information, see Geopolitical views in the HERE Map Image API v3 Developer Guide.

Map style, scheme, and view

In the HERE Map Image API v3, you define the map style (style in the HERE Map Image API v1), the map scheme (t in V1), and map view (vt in V1) by using the style parameter. The style parameter is an optional parameter, with the default value set to explore.day.

Example - map view

The following examples show how to render an image with a hybrid satellite view that highlights streets in the day mode.

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/mapview
    ?apiKey={YOUR_API_KEY}
    &lat=53.218849
    &lon=-4.195021
    &z=15
    &w=256
    &h=256
    &nodot
    &t=3

    The preceding V1 example uses t=3 parameter value to render the map image by using the hybrid.day scheme.

  • Response (V1):

    Map style - V1

  • Request (V3):

    https://image.maps.hereapi.com/mia/v3/base/mc/center:53.218849,-4.195021;zoom=15/256x256/png
    ?apiKey={YOUR_API_KEY}
    &style=explore.satellite.day

    The preceding example uses the style=explore.satellite.day parameter value to obtain the hybrid map style.

  • Response (V3):

    Map style - V3

    📘

    Hint

    To get the list of the available styles in the HERE Map Image API v3, make a request to the /info endpoint.

For more information, see Styles in the HERE Map Image API v3 Developer Guide.

Example - truck map view

You can render the truck map view without public transportation (vt=2 in V1) information in the HERE Map Image API v3 by using the vehicle_restrictions:active_and_inactive parameter value, as demonstrated in the following comparison:

📘

Note

You can use the vehicle_restrictions:permanent_only parameter value as an alternative to the vehicle_restrictions:active_and_inactive parameter value to hide any time-based vehicle restrictions, including the ones that are currently active. Although this behavior may not show the full extent of the currently active restrictions in a particular area, it is closer to the behavior of the HERE Map Image API v1.

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/mapview
    ?apiKey={YOUR_API_KEY}
    &lat=52.370874
    &lon=4.894419
    &z=17
    &w=256
    &h=256
    &f=0
    &nodot
    &vt=2
  • Response (V1):

    Vehicle restrictions - V1

  • Request (V3):

    https://image.maps.hereapi.com/mia/v3/base/mc/center:52.370874,4.894419;zoom=17/256x256/png
    ?apiKey={YOUR_API_KEY}
    &features=vehicle_restrictions:active_and_inactive
  • Response (V3):

    Vehicle restrictions - V3

Camera position

The following table provides an overview of the HERE Map Image API v1 parameters for map image positioning and their direct counterparts in the HERE Map Image API v3:

V1 parameterDescriptionIs supportedAdditional information
ctrSets the image center with latitude and longitude.In V3, use the following format center:{latitude},{longitude};zoom={zoom}.
You can use radius instead of zoom.
ectrThe same as ctr but with encoded coordinates.-
eThe same as c but with encoded coordinates.-
latLatitudeSpecify the latitude coordinate as part of the center parameter, in the following format: center:{latitude},{longitude};zoom={zoom}.
You can use radius instead of zoom.
laLatitudeSpecify the latitude coordinate as part of the center parameter, in the following format: center:{latitude},{longitude};zoom={zoom}.
You can use radius instead of zoom.
lonLongitudeSpecify the longitude coordinate as part of the center parameter, in the following format: center:{latitude},{longitude};zoom={zoom}.
You can use radius instead of zoom.
loLongitudeSpecify the longitude coordinate as part of the center parameter, in the following format: center:{latitude},{longitude};zoom={zoom}.
You can use radius instead of zoom.
bboxPositions the view so that entire bounding box is visible.In V3, use the bbox parameter to define the southwest (bottom-left) and northeast (top-right) corners of the map image in the following format: bbox:{west_longitude},{south_latitude},{east_longitude},{north_latitude}.
To position the view so that all the coordinates given in the list are visible, use the bounds parameter in the following format: bounds:{latitude1},{longitude1},{latitude2},{longitude2}, ... {latitudeN},{longitudeN}.

For more information, see Map view positioning in the HERE Map Image API v3 Developer Guide.

Geocoding

When using the HERE Map Image API v3, you must perform geocoding (also referred to as address look-up) before requesting a map image by following this process:

  1. Make a request to the /geocode endpoint of the HERE Geocoding & Search API v7.
  2. Extract any of the following parameter values from the response, depending on your use case:
    • mapView - You can use the value of this property to request a V3 bounding box.
    • position or one of the access coordinates - You can use one of these values to determine the map center or place a marker on the map. In this case, you must specify the zoom or radius parameters manually.
  3. Convert the extracted values into V3 parameters and make an image request.
📘

Hint

For a practical application example of this process, see Obtain a map image through address look-up in the HERE Map Image API v3 Developer Guide.

As a consequence, the HERE Map Image API v3 removes support for the following V1 parameters:

V1 parameterDescription
ciCity name
coCountry name
sStreet name
nHouse number
ziZip code
maxhitsMaximum number of search results
iDisplay address in the box above the map

Orientation

The HERE Map Image API v3 doesn't support the HERE Map Image API v1 ra parameter for specifying the map rotation angle.

Zoom

The HERE Map Image API v3 supports the following parameters to specify the map zoom, as compared with the HERE Map Image API v1:

V1 parameterDescriptionIs supportedAdditional information
zZoom levelIn V3, specify the map zoom in the following format: zoom={value} in the range from 1 to 20. The zoom parameter must always accompany the center parameter, for example, center:{latitude},{longitude};zoom={zoom}
rad,rad0,rad1,...
r
Radius from the map center to the edge.In V3, specify the radius in the following format: radius={value_in_meters}. The radius parameter must always accompany the center parameter, for example, center:{latitude},{longitude};radius={value}

Camera tilt

The HERE Map Image API v3 doesn't support the camera tilt and the following parameter:

ParameterDescription
taTilt angle ranging from 0 to 60

Custom labels

In the HERE Map Image API v1, you define custom labels through a series of dedicated parameters. In the HERE Map Image API v3, you define custom labels for map images as part of the custom overlay, either through GeoJSON objects or through the corresponding custom style encoding. Both formats are interchangeable, with GeoJSON being the standard choice.

However, GeoJSON tends to be more verbose and may exceed the maximum URL length quickly. On the other hand, custom encoding offers a more compact size. The following table provides information on the support of various V1 parameters in the V3 custom overlay definition:

V1 parameterDescriptionIs supportedV3 overlay equivalent
tx,tx0,tx1,...Adds text labels to geographic spaces or locations. Allows you to specify where the label should be placed, what text it should contain, and optionally, you can specify the fill color, outline color, and font size to control the label's appearance on a map or within a geographic context.Define as the label property value in Point geometries.
tx.xy,tx.xy0,tx.xy1,...Adds text labels on a map image. You can specify where in the image to place the label, what text it should contain, and optionally, customize its appearance by specifying fill color, outline color, and font size.-
txc, txsc, txsDefine the label text color, text outline color, and the text size, respectively.Defined as part of text-color, text-outline-color, and size properties of Point geometries of the marker style.

Examples

The following examples show how rendering custom labels changes from V1 to V3:

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/mapview
    ?apiKey={YOUR_API_KEY}
    &lat=53.218849
    &lon=-4.195021
    &z=12
    &w=256
    &h=256
    &f=0
    &nodot
    &tx=53.223122,-4.189936;Your Label
    &txc=red
    &txs=17
  • Response (V1):

    Custom labels - V1

  • Request (V3) - GeoJSON:

    https://image.maps.hereapi.com/mia/v3/base/mc/center:53.218849,-4.195021;zoom=12/256x256/png8
    ?apikey={YOUR_API_KEY}
    &geojson={
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          "properties": {
            "icon": "",
            "label": "Your Label",
            "text-color":"%23FF4747",
            "text-outline-color":"%23FFF",
            "outline-width":2,
            "size":"large"
          },
          "geometry": {
            "coordinates": [
              -4.189936,
              53.223122
            ],
            "type": "Point"
          }
        }
      ]
    }
  • Request (V3) - compact style encoding

    https://image.maps.hereapi.com/mia/v3/base/mc/center:53.218849,-4.195021;zoom=12/256x256/png8
    ?apikey={YOUR_API_KEY}
    &overlay=point:53.223122,-4.189936;icon=;label=Your Label;text-color=%23FF4747;text-outline-color=%23FFF;outline-width=2;size=large
  • Response (V3):

    Custom labels - V3

For more information, see the following articles in the HERE Map Image API v3 Developer Guide:

Points of interest (POIs) and markers

In the HERE Map Image API v3, you define custom POIs by overlaying Point geometries on a map image through GeoJSON or compact style encoding.

The following table provides information on the support of various V1 POI-related parameters in the V3 custom overlay:

V1 parameterDescriptionIs supportedV3 overlay equivalent
poiMarker coordinatesPoint geometry coordinates.
poifcIcon fill colorThe color property.
poilblLabel type:
- numeric (1,2,3...)
- alphabetic (A,B,C...)
The label property with either of the following values:
- $num
- $alpha
poithmIcon theme⚠️Available marker icon types include:
- pin (default)
-diamond
- cp (dot)
poitxcLabel colorThe text-color property.
poitxsLabel font size⚠️The size property. Available label sizes include:
- small
- medium (default)
- large
poix0,poix1,...POI-specific propertiesDefined as geometry-specific properties.
nomrkFlag to draw no markersNot needed because you must define markers explicitly.

Examples

The following examples show practical examples for custom POI rendering in V1 and V3:

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/mapview
    ?apiKey={YOUR_API_KEY}
    &w=256
    &h=256
    &f=0
    &poi=47.531301,19.052621,47.518418,19.042362
    &poilbl=1
    &poithm=1
    &poifc=red
    &poitxs=14
  • Response (V1):

    Custom POIs - V1

  • Request (V3):

    https://image.maps.hereapi.com/mia/v3/base/mc/overlay:padding=40/256x256/png8
    ?apikey={YOUR_API_KEY}
    &geojson={
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          "properties": {
            "label": "$alpha",
            "color": "%23F00",
            "size": "large"
          },
          "geometry": {
            "type": "MultiPoint",
            "coordinates": [
              [
                19.052621,
                47.531301
              ],
              [
                19.042362,
                47.518418
              ]
            ]
          }
        }
      ]
    }
  • Response (V3):

    Custom POIs - V3

Default labels

The following sections outline the changes to such default API labels and overlays as the copyright information, scale bar, proximity circle, and so on.

Copyright label

The HERE Map Image API v3 provides the required copyright information by default. The information also includes any additional service owner-specific copyright, if applicable. The following table provides the details:

ParameterDescriptionIs supportedAdditional information
nocpFlag to hide the copyrightIn V3, use the copyright=false flag.
scpID of the additional copyright provider.⚠️In V3, this information is incorporated within the copyright, and it can be shown or hidden alongside it.

Scale bar

The HERE Map Image API v3 supports the scale bar overlay, as part of the scaleBar parameter. The following table provides an breakdown of changes between the API versions:

V1 sb=V3 scaleBar=Description
kkmkilometers only
mmimiles only
kmkmMikilometers and miles (km on top)
mkmiKmmiles and kilometers (mi on top)

Proximity circle

The HERE Map Image API v1 uses the u parameter to display a proximity circle around specific coordinates. In the HERE Map Image API v3, you use GeoJSON geometries to achieve the same output with some additional options available, such as setting the position marker size, proximity circle color, various types of available measurement units to define the proximity circle radius, or the label to display above the marker.

Examples

The following examples illustrate the evolution in drawing proximity circles between different API versions, showcasing the changes in approach.

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/mapview?apiKey={YOUR_API_KEY}
    &lat=-12.064789
    &lon=-77.038820
    &z=18
    &w=256
    &h=256
    &f=0
    &u=25
  • Response (V1):

    Proximity circle - V1

  • Request (V3):

    The following GeoJSON creates two objects - a dot marker showing the most likely position and a circle showing the extent of the proximity circle:

    {
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          "properties": {
            "icon":"cp",
            "size":"large",
          },
          "geometry": {
            "coordinates": [
              -77.038820,
              -12.064789
            ],
            "type": "Point"
          }
        },
        {
          "type": "Feature",
          "properties": {
            "style":"circle",
            "width":"25m",
            "color":"%231B9D2C60"
          },
          "geometry": {
            "coordinates": [
              -77.038820,
              -12.064789
            ],
            "type": "Point"
          }
        }
      ]
    }

    Example usage in a HERE Map Image API v3 request:

    https://image.maps.hereapi.com/mia/v3/base/mc/overlay:radius=45/256x256/png8
    ?apikey={YOUR_API_KEY}
    &features=pois:disabled
    &geojson={"type":"FeatureCollection","features":[{"type":"Feature","properties":{"icon":"cp","size":"large","color":"%231B9D2C60"},"geometry":{"coordinates":[-77.03882,-12.064789],"type":"Point"}},{"type":"Feature","properties":{"style":"circle","width":"25m","color":"%231B9D2C60"},"geometry":{"coordinates":[-77.03882,-12.064789],"type":"Point"}}]}
    📘

    Hint

    The following snippet provides the same request, in the compact style encoding:

    https://image.maps.hereapi.com/mia/v3/base/mc/overlay:radius=45/256x256/png8
    ?apikey={YOUR_API_KEY}
    &overlay=point:-12.064789,-77.03882;icon=cp;size=large|-12.064789,-77.03882;style=circle;width=25m;color=%231B9D2C60
  • Response (V3):

    Proximity circle - V3

Label behavior

The following table provides details on the support for other label-related parameters in the HERE Map Image API v3:

V1 parameterDescriptionIs supportedV3 equivalent
nocropFlag to hide cropped labels.Use the cropLabels=false parameter.
nocmpFlag to hide the compass in the rotated view.V3 doesn't support map rotation or compass.
nodotHide the default position marker.⚠️V3 doesn't draw a position marker by default.
pipDisplay a Picture-in-Picture map.Not supported.

Custom lines

In the HERE Map Image API v3, you define custom lines (for example, for displaying routes) by overlaying Line geometries on a map image through GeoJSON or compact style encoding. The following table provides information on the support of various V1 line-related parameters in the V3 custom overlay:

V1 parameterDescriptionIs supportedV3 overlay equivalent
lc,lc0,lc1,...Line colorThe color property of the Line geometry.
lw,lw0,lw1,...Line widthThe width property.
sc,sc0,sc1...Outline colorThe outline-color property.
r,r0,r1...Route waypoint coordinatesThe Line geometry coordinates.

Examples

The following sample requests showcase the change in the approach for drawing lines between the API versions.

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/route
    ?apiKey={YOUR_API_KEY}
    &w=256
    &h=256
    &f=0
    &r=-22.972936,-43.185419,-22.97199,-43.18453,-22.97179,-43.18431,-22.97108,-43.18357,-22.97094,-43.18341,-22.97081,-43.18324,-22.97019,-43.1824,-22.96958,-43.18149,-22.969,-43.18059,-22.96881,-43.18077,-22.96943,-43.18174,-22.968435,-43.182594
    &lc=F00
    &lw=6
    &sc=0D0
  • Response (V1): Lines - V1

  • Request (V3):

    https://image.maps.hereapi.com/mia/v3/base/mc/overlay:padding=16/256x256/png
    ?apiKey={YOUR_API_KEY}
    &overlay=line:-22.972936,-43.185419,-22.97199,-43.18453,-22.97179,-43.18431,-22.97108,-43.18357,-22.97094,-43.18341,-22.97081,-43.18324,-22.97019,-43.1824,-22.96958,-43.18149,-22.969,-43.18059,-22.96881,-43.18077,-22.96943,-43.18174,-22.968435,-43.182594;color=%23F00;outline-color=%230D0;width=6
    📘

    Hint

    To reduce the request size in V3 when using compact style encoding, you can represent the Line geometry from the preceding example as a flexible polyline, as shown in the following snippet:

    overlay=line:BGvgl6rB1w6ryCk7By3BwM4NssBouB4IgKkI0K4mBw0BkmB84BokBo4B8LnL3mBz8Bm-Br1B

  • Response (V3):

    Lines - V3

Route markers

Correspondingly to custom POIs, in V3 you define route markers through the Point geometry type and the associated properties. The following table provides information on the support of various V1 marker-related parameters in the V3 custom overlay:

V1 parameterDescriptionIs supportedV3 overlay equivalent
m,m0,m1,...Marker coordinatesPoint geometry coordinates.
mfc,mfcmfc1,...Fill colorThe color property.
mlblMarker label⚠️The label property. V3 only displays label text inside the marker icon for numerical ($num) or alphabetic ($alpha) automatic labels.
mthmIcon style⚠️The icon property with the following styles available:
- pin (default)
- diamond
- cp (dot)
mtxc,mtxc0,mtxc1,...Label colorThe text-color property.
mtxs,mtxs0,mtxs1,...Font sizeThe size property. Available values:
- small
- medium (default)
- large
noiconFlag to hide the marker iconSet the icon value as empty.

Examples

The following examples show how drawing route markers changes between the API versions.

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/route
    ?apiKey={YOUR_API_KEY}
    &w=256
    &h=256
    &r=55.95229,-3.19995,55.952366,-3.199479,55.952242,-3.200226
    &f=0
    &m=55.952366,-3.199479,55.952242,-3.200226
    &mlbl=0
    &mthm=2
    &mfc=EC93CE
    &lc=EC93CE
    &mtxs=16
  • Response (V1):

    Route markers - V1

  • Request (V3):

    https://image.maps.hereapi.com/mia/v3/base/mc/overlay:padding=40/256x256/png
    ?apiKey={YOUR_API_KEY}
    &overlay=multiPoint:55.9523662,-3.199479,55.952242,-3.2002259;label=$num;color=%23EC93CE;size=large
    &overlay=line:55.952366,-3.199479,55.952242,-3.200226,55.95229,-3.19995;color=%23EC93CE
  • Response (V3):

    Route markers - V3

Route calculation

The HERE Map Image API v3 does not support the waypoint0,waypoint1... parameters. Therefore, you must obtain the routing coordinates before making an API request by following this high-level process:

  1. Make a request to the /routes endpoint of the HERE Routing API v8 with the following parameters:
    • The origin coordinates. Based on these coordinates, the HERE Routing API v8 provides the departure point coordinates for the route.
    • The destination coordinates. Based on these coordinates, the HERE Routing API v8 provides the arrival point coordinates for the route.
    • The return parameter set to polyline. This parameters ensures that the route that the API returns is represented as a flexible polyline, which is the format accepted by the compact style encoding of GeoJSON features in the HERE Map Image API v3.
    • The transportationMode parameter set to the mode of transportation for your route, such as car, pedestrian, and so on.
  2. Build a HERE Map Image API v3 request by using the parameter values that you obtained:
    • Use the departure and arrival coordinates to place markers on the map image.

    • Use polyline value to overlay the route on the map image.

      📘

      Hint

      For a practical application example of this process, see Display routing information on a map image in the HERE Map Image API v3 Developer Guide.

Region

In the HERE Map Image API v3, you highlight regions or areas by overlaying Polygon geometries on a map image through GeoJSON or compact style encoding. The following table provides information on the support of various V1 region-related parameters in the V3 custom overlay:

V1 parameterDescriptionIs supportedV3 overlay equivalent
a,a0,a1,,...Area or region coordinatesPolygon geometry coordinates.
fc,fc0,fc1...Fill colorThe color property.

Examples

The following examples show how overlaying regions or areas on map images changes between the API versions.

  • Request (V1):

    https://image.maps.ls.hereapi.com/mia/1.6/region?
    apiKey={YOUR_API_KEY}
    &w=256
    &h=256
    &f=0
    &t=3
    &a=52.519799,13.413835,52.52083,13.415358,52.519289,13.417075,52.518062,13.417976,52.517331,13.415809,52.518976,13.414929,52.519799,13.413835
    &fc=00E8
  • Response (V1):

    Area/Region - V1

  • Request (V3):

    https://image.maps.hereapi.com/mia/v3/base/mc/overlay:padding=15/256x256/png
    ?apiKey={YOUR_API_KEY}
    &style=explore.satellite.day
    &overlay=polygon:52.519799,13.413835,52.52083,13.415358,52.519289,13.417075,52.518062,13.417976,52.517331,13.415809,52.518976,13.414929,52.519799,13.413835;color=%2300E8
  • Response (V3):

    Area/Region - V3

Road shield icons

To obtain road shield icons in the HERE Map Image API v3, use the /icons endpoint, as described in the Retrieve road shield icons article in the HERE Map Image API v3 Developer Guide.

V1 parameterDescriptionIs supportedV3 Equivalent
categoryRoad sign category.Use the {iconType} parameter in the request path.
labelRoad sign label.Use the label parameter.
regionRegion MARC three-letter language code.⚠️Use the stateCode parameter.
route_levelThe priority setting for the route.Use the routeLevel parameter.

Unsupported parameters

The following sections list unsupported parameters in the HERE Map Image API v3. Modify your code to remove the unsupported parameters from your API requests.

Statistics

V1 parameterDescription
o,o0,o1...Statistical objects with coordinates, value, fill color, and an outline.
ofcDefault fill color.
oscDefault border color.
olpAnchor (with center, or bottom-center).
otShape (circle or bar).
shdFlag to remove shadow for the shape.

Heat map properties

V1 parameterDescription
lHeat value/level from 1 to 4.
noblurFlag to turn off blur.
opOpacity setting for the heat layer.
pltColor palette.
tpTransparency setting for the heat layer.

Company logos

V1 parameterDescription
logoidInternal ID for the company logo request.

Strict mode

V1 parameterDescription
strictFlag for validating the request in the strict mode (In V3, the strict mode is enabled by default).

Next steps

For more information on the HERE Map Image API v3, see the following resources: