Map Tile API Developer's Guide

Public Transit Geolocation

The user wants to obtain the geolocation about a Public Transit Stop.

Request

In this request, the metadata parameter specifies that the response is to contain the available metadata withing the specified area.

https://2.base.maps.hereapi.cn/maptile/2.1/maptile/newest/normal.day/19/431697/198661/256/png8
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&metadata=metaonly
&mgen=2

Response

The response contains the following properties required to obtain the desired geolocation:

  • position: contains the geocoordinates
  • latitude: contains the latitude of the public transit stop
  • longitude: contains the longitude of the public transit stop

  {
  "metadata": {
    "street labels": [],
    "labels": [],
    "city center labels": [],
    "buildings": [...],
    "transit stops": [{
      "name": "八王坟客运站配载点",
      "bounding boxes": [{
        "box 1": [233, 168, 14, 14]
      }, {
        "box 2": [158, 157, 74, 25]
      }],
      "info": [{
        "position": {
          "latitude": 39.906743,
          "longitude": 116.423450
        },
        "official name": "八王坟客运站配载点",
        "operating hours": {
          "Monday": [
            ["0:0:0", "24:0:0"]
          ],
          ...,
          "Holiday": [
            ["0:0:0", "24:0:0"]
          ]
        },
        "parking hours": {
          "Monday": [
            ["0:0:0", "24:0:0"]
          ],
          ...,
          "Holiday": [
            ["0:0:0", "24:0:0"]
          ]
        }
      }]
    }],
    "POIs": []
  }
}
Note: Parts of the response are modified as described in the introduction to Examples.
If the request does not use the metadata parameter, the response is as follows:
Figure 1. Public Transit Map Tile