Static Images

This endpoint will return custom street images according to the size, resolution and style settings indicated.

SettingResolutionsNight Support?Transparent Support?
global-decartamdpi, hdpi, xhdpi, xxhdpiYesYes
global-tomtommdpi, hdpi, xhdpi, xxhdpiYesYes

Request

Format

get
URL request example
<http|https>://<baseURL>/map/<versionNumber>/staticImage/<top_left>/<bottom_right>.<ext>?key=<apiKey>[&height=<height>][&width=<width>][&settings=<settings>][&res=<res>][&night=<night>][&transparent=<transparent>]

Communication through both HTTP and HTTPS is supported.

Parameters

The table below describes all of the parameters that can be used in a request. Required parameters _ must_ be used or the call will fail. Optional parameters, which are highlighted with [square brackets], may be used. If there is a default value that will be assumed when an optional parameter is not used, it is shown in the table. The order of request parameters is not important.

ParameterDescriptionReq'd?Type / ValuesDefault valueMax value
baseURLBase URL for calling the API.Yesapi.tomtom.com
versionNumberService version number. The current value is 0.Yes0
apiKeyYour TomTom API Key.YesString
top_left

Top left position of the bounding box. This is specified as a comma separated string composed by lat., lon. (e.g.: 37.553,-122.453).

YesPosition
bottom_right

Bottom right position of the bounding box. This is specified as a comma separated string composed by lat., lon. (e.g.: 37.553,-122.453).

YesPosition
extValid response formats are PNG, GIF, JPG.YesString
[height]The height in pixels.NoInteger2561024
[width]The width in pixels.NoInteger2561024
[settings]

String specifying the deCarta configuration file to use for the rendering.

NoStringglobal-decarta
[res]

String specifying the resolution to be used.
Please refer to the table at the top of the page for supported resolutions.


Resolutions:

 mdpi [1X / 160dpi], hdpi [1.5X / 240dpi], xhdpi [2X / 320dpi], xxhdpi [3X / 480dpi].

NoStringmdpi
[night]

Whether or not to use the night setting. Please double check that your settings support the night configuration. This is mutually exclusive with the transparent configuration.

NoBoolean
[transparent]

Returns transparent tiles when it is set to true. Please double check that your settings support the transparent configuration. This is mutually exclusive with the night configuration.

NoBoolean

Response

Format

The response will be an raster image in the format / size specified in the request.