Geocoder API China - BETA Developer's Guide

Geocode Request

To find the corresponding geocoordinates based on free-form input, send the following GET request.
https://geocoder.hereapi.cn/6.2/geocode.json
  ?app_id={YOUR_APP_ID}
  &app_code={YOUR_APP_CODE}
  &searchtext=beijing

The response to the above request delivers the following high-level elements:

  • Metadata about the request
  • Results that match the request; the number of results depends on the completeness of the address provided
{
  "Response": {
  "MetaInfo": {
    "Timestamp": "2018-12-05T17:31:46.408+0000"
  },
  "View": [
    {
    "_type": "SearchResultsViewType",
    "ViewId": 0,
    "Result": [
      {
      "Relevance": 1,
      "MatchLevel": "city",
      "MatchQuality": {
        "City": 1
      },
      "Location": {
        "LocationId": "NT_0SerNZ6JgwT5if2NnQI2-B",
        "LocationType": "point",
        "DisplayPosition": {
        "Latitude": 39.90469,
        "Longitude": 116.40708
        },
        "NavigationPosition": [
        {
          "Latitude": 39.90469,
          "Longitude": 116.40708
        }
        ],
        "MapView": {
        "TopLeft": {
          "Latitude": 40.10389,
          "Longitude": 116.14689
        },
        "BottomRight": {
          "Latitude": 39.70318,
          "Longitude": 116.58911
        }
        },
        "Address": {
        "Label": "中国北京市",
        "Country": "CHN",
        "State": "北京市",
        "City": "北京市",
        "AdditionalData": [
          {
          "value": "中国",
          "key": "CountryName"
          },
          {
          "value": "北京市",
          "key": "StateName"
          }
        ]
  ...
}