Constructing a Request
A request to the Places (Search) API China - BETA includes the basic elements shown in the following table and, in addition, may contain resource-specific parameters.
Element | Value/Example | Description |
---|---|---|
Base URL | https://opensearch.hereapi.cn | Production environment |
Path | /places/v1/ | |
Resource | discover/search | Find places using a text query. |
Application Id | ?app_id={YOUR_APP_ID} | Substitute with your own unique app_id |
Application Code | &app_code={YOUR_APP_CODE} | Substitute with your own unique app_code |
Here is an example of a search request, which uses the HTTP GET method:
https://opensearch.hereapi.cn/places/v1/discover/search
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&at=52.531,13.3843
&q=Brandenburg+Gate