Geocoder API China - BETA Developer's Guide

Request Encoding

All query parameters in requests against Geocoder API China - BETA resources require encoding in UTF-8. To represent special characters, use the %FF hexadecimal representation.

For example, use searchtext %E5%8C%97%E4%BA%AC%E5%B8%82 to query for 北京市

White spaces can be replaced by the + sign or %20. In this guide, we use + for simplicity.

https://geocoder.hereapi.cn
  /6.2/geocode.xml
  ?app_id={YOUR_APP_ID}
  &app_code={YOUR_APP_CODE}
  &gen=9
  &searchtext=%E5%8C%97%E4%BA%AC%E5%B8%82

When using HTML forms to submit queries to the service, use the accept-charset attribute to specify UTF-8 encoding instead of relying on the browser settings for parameter encoding:

<form action="https://geocoder.hereapi.cn/6.2/
  geocode.xml" method="GET" accept-charset="UTF-8">
  <!—-  etc. -->
  </form>