Requesting the Right Map Version
- regularly updated maps
- different map versions for certain regions of the world to meet the legal requirements in specific countries
The response to an info request lists all the available map versions as elements named map
, grouped by the attribute region
. The response identifies the most recent map version in each region with the attribute id
set to the value "newest"
. The following excerpt shows an example of a map version list:
<map region="all" id="newest" />
<map region="all" newest="true" id="8.30.53.109" hash="be9b70fa2c" />
When requesting map tiles, use URL variables to indicate the most recent map or a specific map version:
-
newest
– to request the most recent map version available, for example:
A request to the Traffic base URL should always use newest for the map version, because traffic information is provided only for the latest map. For example:https://2.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/11/1202/843/256/png8 ?apiKey={YOUR_API_KEY}
https://2.traffic.maps.ls.hereapi.com/maptile/2.1/traffictile/newest/normal.traffic.day/11/1202/843/256/png8 ?apiKey={YOUR_API_KEY}
-
a hash value – to request a specific map version; the actual URL variable is the value of the attribute
hash
from the response to a metadata request (see the response excerpt above). For example, here is a map tile request that uses a hash value instead of/newest/
.Note that the hash values identifying map versions change as a result of software updates, even if the map ids remain the same. To get a valid response to the query, make a metadata request first, and substitute a current map hash value for
c376276c01
in the following URL:https://2.base.maps.ls.hereapi.com/maptile/2.1/maptile/c376276c01/normal.day/11/1202/843/256/png8 ?apiKey={YOUR_API_KEY}
hashcode
is guaranteed to be consistent with any other request using the same hashcode
. Therefore, the usage recommendation is to always use a hashcode
in all tile requests, except for traffic. To ensure that the used hashcode
is always up to date, query the info page at least every two hours and checking if the hashcode
has changed compared to the one previously used. Any particular map version (hashcode
) will always be supported for at least 24 hours to ensure a consistent map experience. Note that if the map or software is incorrect, its lifetime might be less than 24 hours to avoid any bad user experiences. satellite
, terrain
and hybrid
schemes, the Traffic base URL for all traffic
and flow
requests and the Map base URL for any other requests.