Document Web Service Guides Places

Places API

The service enables structured and fuzzy queries through text strings to retrieve location data with geographic context adaptation. Users may input free-form search patterns (e.g., "pizza in New York", "shoe stores near Ottawa", or "123 Main Street") and receive ranked results based on both textual relevance and configured geospatial preferences‌

Prompt

The international Search API shares the same interface as the domestic Search API. For international functions, all coordinates (both parameters and return values) default to the WGS84 GPS coordinate system. The international Web Service API is categorized as a premium service. To request access, please submit a business consultation through the official support ticket system.

Application

  • Keyword Search: Retrieve detailed information about a set of locations based on a specific search term and a defined geographical area.
  • Nearby Search:Find locations within a specified region, with the option to filter results by place type.
  • Polygon Search: Search for relevant location information within a custom-defined polygonal area using specific search keywords.
  • ID Search: Obtain location information based on Point of Interest (POI) IDs.

Usage Instructions

1
Step 1
Apply for a 【Web Service API】Key
2
Step 2
Enable overseas permissions for the applied Key by submitting a ticket to request overseas permissions
3
Step 3
Construct the HTTP request URL, including the Key obtained in Step 1 as a required parameter
4
Step 4
Receive and parse the data returned from the HTTP request (in JSON or XML format)
Unless otherwise specified, all input parameters and output data are encoded in UTF-8

Keyword search

Keyword search API Service URL

URL

Request Method 

https://sg-restapi.opnavi.com/v3/place/text?parameters

GET

The parameters represent both required and optional parameters. All parameters are separated by the ampersand character (&). The list below enumerates these parameters and their usage rules.

Request Parameters

Parameter Name

Description 

Specification

Mandatory

Default

key

Service Authorization Token

Applying for a Web Service API Key and Submitting a Work Order for Overseas Permissions on Amap Map Official Website

Mandatory

None

keywords

Search Keywords

Input Search Keywords

At least one of keywords and types must be selected.

None

types

Search POI Type

Enhance your POI (Point of Interest) search by inputting relevant keywords. You have the flexibility to use either classification codes or Chinese characters (refer to the attached document for Chinese character options). Multiple keywords should be separated by a vertical bar (|).

The classification code consists of six digits, divided into three parts: the first two digits represent the major category; the middle two digits represent the medium category; the last two digits represent the minor category.

If a major category is specified, all medium and minor categories under it will be included.

For example, 010000 represents automobile services (major category)

         010100 represents gas stations (medium category)

         010101 represents Sinopec (minor category)

          010900 represents car rental (medium category)

          010901 represents car return locations for rental (minor category)

When specifying 010000, medium categories like 010100 and minor categories like 010101 will be included. When specifying 010900, minor categories like 010901 will be included.

Note: The returned results may include medium and minor category POIs, but not all. For more precise information, it is recommended to input minor categories or narrow down the search scope. POI classification codes

At least one of keywords and types must be selected.

None

city

Search City and Administrative Division

For overseas searches, the "city" field is mandatory and can be populated using either the city code or administrative division code (adcode).

To obtain the adcode:

Obtain adcode table by country

Note:

If there is no corresponding administrative division adcode, use the country's adcode instead. For example, the USA: 840000000

If there is no corresponding adcode for the country, enter "000000000"

Obtain via reverse geocoding interface

Optional for domestic, required for overseas

None(Search within the entire territory of China)

page

Current page number

Optional

1

offset

Records Per Page

Customize the number of records per page from 0 to 50. The default setting is 20 records.

Optional

20

langCode

Return result language

Default is zh(Chinese),

optional: 

  • zh(Chinese)
  • en(English)
  • es(Spanish)
  • pt(Portuguese)
  • fr(French)
  • de(German)
  • th(Thai)
  • ja(Japanese)
  • ko(Korean)
  • ar(Arabic)
  • tr(Turkish)
  • he(Hebrew)
  • it(Italian)
  • ru(Russian)
  • ms(Malay)
  • id(Indonesian)
  • vi(Vietnamese)
  • pl(Polish)
  • cs(Czech)
  • uk(Ukrainian)
  • az(Azerbaijani)

Optional

None

extensions

Result Control

By default, only basic address information is returned. For a comprehensive output including nearby POIs, roads, and road intersections, set this parameter to "all".

Optional

base

sig

Digital Signature

Methods for Obtaining and Using Digital Signatures

Optional

None

callback

Callback Function

The callback value is a function name defined by the user.

Optional

None

Examples

https://sg-restapi.opnavi.com/v3/place/text?keywords=food&city=840380000&offset=20&types=Museum&key=<your key>

Response Parameters Description

Name

Description

Specification

status

Result Status Value, Value is 0 or 1

0‌: Request failed; ‌1‌: Request succeeded

info

Return Status Description

When status is 0, specific error reasons will be returned in info. Otherwise, "OK" will be returned. For details, refer to theinfo status table.

infocode

Return Status Code

Refer to the info status table for details.

count

Number of Returned Results

The number of returned results

pois

Search POI Information List

pois

POI Information

id

Unique ID

Overseas POI IDs start with 'P'. 'PO' represents ordinary POIs, while 'PS'/'PV' represent public transit POIs. Example: P0JAK55X50

name

Name

 

type

POI Type

Categorized into 1~5 levels, for example: food; Latin American Restaurant; South American Restaurant; Brazilian Restaurant; Acai House

typecode

POI Type Code

biz_type

 Industry Type

 

address

Address

 

location

Latitude and Longitude

Longitude, Latitude

tel

Phone Number of the POI

pcode

Province Code of the POI

 Returned when extensions=all

pname

Province Name of the POI

Note: Due to differences in administrative divisions between overseas and domestic areas, it is currently not possible to strictly follow province, city, and district divisions.

citycode

City Code of the POI

 Returned when extensions=all

cityname

City Name of the POI

Note: Due to differences in administrative divisions between overseas and domestic areas, it is currently not possible to strictly follow province, city, and district divisions.

adcode

District Code

 Returned when extensions=all

adname

District Name

 Note: Due to differences in administrative divisions between overseas and domestic areas, it is currently not possible to strictly follow province, city, and district divisions.

gridcode

Geographic Grid ID

Returned when extensions=all

distance

Distance from Center Point

Unit: meters; this value is only returned during nearby search.

Nearby search

Nearby search API Service URL

URL

Request Method 

https://sg-restapi.opnavi.com/v3/place/around?parameters

GET

The parameters represent both required and optional parameters. All parameters are separated by the ampersand character (&). The list below enumerates these parameters and their usage rules.

Request Parameters

Parameter Name 

Description

Specification

Mandatory

Default

key

Service Authorization Token

Applying for a Web Service API Key and Submitting a Work Order for Overseas Permissions on Amap Map Official Website

Mandatory

None

location

Center Point Coordinates

Rule: Longitude and latitude are separated by ",", with longitude first and latitude second. The decimal places for both should not exceed 6 digits.

Note: Enter the longitude and latitude for overseas locations.

Mandatory

None

keywords

Search Keywords

Input Search Keywords

At least one of keywords and types must be selected.

None

types

Search POI Type

Enhance your POI (Point of Interest) search by inputting relevant keywords. You have the flexibility to use either classification codes or Chinese characters (refer to the attached document for Chinese character options). Multiple keywords should be separated by a vertical bar (|).

The classification code consists of six digits, divided into three parts: the first two digits represent the major category; the middle two digits represent the medium category; the last two digits represent the minor category.

If a major category is specified, all medium and minor categories under it will be included.

For example, 010000 represents automobile services (major category)

         010100 represents gas stations (medium category)

         010101 represents Sinopec (minor category)

          010900 represents car rental (medium category)

          010901 represents car return locations for rental (minor category)

When specifying 010000, medium categories like 010100 and minor categories like 010101 will be included. When specifying 010900, minor categories like 010901 will be included.

Note: The returned results may include medium and minor category POIs, but not all. For more precise information, it is recommended to input minor categories or narrow down the search scope. POI classification codes

At least one of keywords and types must be selected.

None

radius

Search Radius

Value Range: 0-50000, unit: meters

Optional

3000

page

Current page number

Optional

1

offset

Records Per Page

Customize the number of records per page from 0 to 50. The default setting is 20 records.

Optional

20

langCode

Return result language

Default is zh(Chinese),

optional: 

  • zh(Chinese)
  • en(English)
  • es(Spanish)
  • pt(Portuguese)
  • fr(French)
  • de(German)
  • th(Thai)
  • ja(Japanese)
  • ko(Korean)
  • ar(Arabic)
  • tr(Turkish)
  • he(Hebrew)
  • it(Italian)
  • ru(Russian)
  • ms(Malay)
  • id(Indonesian)
  • vi(Vietnamese)
  • pl(Polish)
  • cs(Czech)
  • uk(Ukrainian)
  • az(Azerbaijani)

Optional

None

extensions

Result Control

By default, only basic address information is returned. For a comprehensive output including nearby POIs, roads, and road intersections, set this parameter to "all".

Optional

base

sig

Digital Signature

Methods for Obtaining and Using Digital Signatures

Optional

None

callback

Callback Function

The callback value is a function name defined by the user.

Optional

None

Examples

https://sg-restapi.opnavi.com/v3/place/around?key=<your key>&keywords=food&location=103.861974,1.304754&offset=20&page=1

Response Parameters Description

The return results for Nearby searches are consistent with those of  Keyword search

Polygon search

Polygon search API Service URL

URL

Request Method 

https://sg-restapi.opnavi.com/v3/place/polygon?parameters

GET

The parameters represent both required and optional parameters. All parameters are separated by the ampersand character (&). The list below enumerates these parameters and their usage rules.

Request Parameters

Parameter Name

Description

Specification

Mandatory

Default 

key

Service Authorization Token

Applying for a Web Service API Key and Submitting a Work Order for Overseas Permissions on Amap Map Official Website

Mandatory

None

polygon

Latitude and Longitude Coordinate Pairs

Rule: Longitude and latitude are separated by ",", with longitude first and latitude second. Coordinate pairs are separated by "|". The decimal places for both should not exceed 6 digits.

Note:

1、For rectangular polygons, you can input the coordinates of the top-left and bottom-right vertices. In other cases, the first and last coordinate pairs must be the same.

2、If any one of the latitude and longitude coordinate pairs is within China, domestic POI data will be returned.

Mandatory

None

keywords

Search Keywords

Input Search Keywords

At least one of keywords and types must be selected.

None

types

Search POI Type

Enhance your POI (Point of Interest) search by inputting relevant keywords. You have the flexibility to use either classification codes or Chinese characters (refer to the attached document for Chinese character options). Multiple keywords should be separated by a vertical bar (|).

The classification code consists of six digits, divided into three parts: the first two digits represent the major category; the middle two digits represent the medium category; the last two digits represent the minor category.

If a major category is specified, all medium and minor categories under it will be included.

For example, 010000 represents automobile services (major category)

         010100 represents gas stations (medium category)

         010101 represents Sinopec (minor category)

          010900 represents car rental (medium category)

          010901 represents car return locations for rental (minor category)

When specifying 010000, medium categories like 010100 and minor categories like 010101 will be included. When specifying 010900, minor categories like 010901 will be included.

Note: The returned results may include medium and minor category POIs, but not all. For more precise information, it is recommended to input minor categories or narrow down the search scope. POI classification codes

At least one of keywords and types must be selected.

None

page

Current page number

Optional

1

offset

Records Per Page

Customize the number of records per page from 0 to 50. The default setting is 20 records.

Optional

20

langCode

Return result language

Default is zh(Chinese),

optional: 

  • zh(Chinese)
  • en(English)
  • es(Spanish)
  • pt(Portuguese)
  • fr(French)
  • de(German)
  • th(Thai)
  • ja(Japanese)
  • ko(Korean)
  • ar(Arabic)
  • tr(Turkish)
  • he(Hebrew)
  • it(Italian)
  • ru(Russian)
  • ms(Malay)
  • id(Indonesian)
  • vi(Vietnamese)
  • pl(Polish)
  • cs(Czech)
  • uk(Ukrainian)
  • az(Azerbaijani)

Optional

None

extensions

Result Control

By default, only basic address information is returned. For a comprehensive output including nearby POIs, roads, and road intersections, set this parameter to "all".

Optional

base

sig

Digital Signature

Methods for Obtaining and Using Digital Signatures

Optional

None

callback

Callback Function

The callback value is a function name defined by the user.

Optional

None

Examples

https://sg-restapi.opnavi.com/v3/place/polygon?polygon=-73.509092,40.793609|-73.487738,40.769018|-73.446643,40.768289|-73.424987,40.793844&keywords=food&key=<your key>

Response Parameters Description

The return results for Polygon search are consistent with those of  Keyword search

ID search

ID search API Service URL

URL

Request Method 

https://sg-restapi.opnavi.com/v3/place/detail?parameters 

GET

The parameters represent both required and optional parameters. All parameters are separated by the ampersand character (&). The list below enumerates these parameters and their usage rules.

Request Parameters

Parameter Name

Description

Specification

Mandatory

Default

key

Service Authorization Token

Applying for a Web Service API Key and Submitting a Work Order for Overseas Permissions on Amap Map Official Website

Mandatory

None

id

POI ID

Unique Identifier ID for the POI

Note: Overseas POI IDs start with 'P'. 'PO' represents ordinary POIs, while 'PS'/'PV' represent public transit POIs. Example: P0JAK55X50

Mandatory

None

langCode

Return result language

Default is zh(Chinese),

optional: 

  • zh(Chinese)
  • en(English)
  • es(Spanish)
  • pt(Portuguese)
  • fr(French)
  • de(German)
  • th(Thai)
  • ja(Japanese)
  • ko(Korean)
  • ar(Arabic)
  • tr(Turkish)
  • he(Hebrew)
  • it(Italian)
  • ru(Russian)
  • ms(Malay)
  • id(Indonesian)
  • vi(Vietnamese)
  • pl(Polish)
  • cs(Czech)
  • uk(Ukrainian)
  • az(Azerbaijani)

Optional

None

sig

Digital Signature

Methods for Obtaining and Using Digital Signatures

Optional

None

callback

Callback Function

The callback value is a function name defined by the user.

Optional

None

Examples

https://sg-restapi.opnavi.com/v3/place/detail?id=P0JAK55X50&key=<your key>

Response Parameters Description

The return results for ID search are consistent with those of  Keyword search