Search code examples
here-api

Getting the VEHICLE_TYPES description in the HERE MAP REST API


I use HERE MAP REST API to get the speed limit.

E.g.

In response, I can see JSON key: value-VEHICLE_TYPES:1023

What does 1023 mean? How can I know it is a track, sedan, etc?


Solution

  • You can check this by this request-

    http://pde.cit.api.here.com/1/doc/layer.html?region=APAC&release=19146&layer=LINK_ATTRIBUTE_FC1&app_id=xxx&app_code=yyy
    

    It is a bitmask (sum of values), e.g. 1 = cars, 32 = trucks, 33 = 32 + 1 = cars and trucks