Location:

Geo/Reverse Geocoding

Geographic Coding

Service Introduction

Get the location latitude and longitude information based on the address information or the landmark point name.

Interface address

https://lbs.navinfo.com/open-api/geocoder/v1/geo

Request method

GET or POST

Request parameters

Parameter Type Meaning Required Default Remarks

ak

string

Developer Key

Yes

Please apply for a key

guid

string

device id

No

addr

string

Structured Address

Yes

Rules follow: country, province, city, district, town, town, street, house number , housing estates, buildings. Such as: Beijing Dongzhimen South Street 10

city

string

City Name

No

110000

Search for the adcode/name of the administrative area.

outGb

string

Return Result Coordinate System

No

g02

Default :g02,
g02: National Survey Bureau (gcj02) coordinates
gbd: Baidu coordinates

Response data

Return Value Type Meaning Remarks

status

int

Return status

See status code table for details.

msg

string

return status Description

See status code table for details.

data

object

return results

geo

object

Geographically encoded information

lonlat

string

Coordinate points

socre

double

Geographic Code Matching Threshold

Threshold: [0.00,1.00]

Service example

Parameter Value Type Meaning Required Remarks

ak

Users Ak

string

developer key

Yes

Click to apply

guid

string

device id

No

addr

string

Structured Address

Yes

city

string

City Name

No

adcode/name of administrative area

outGb

string

Back to the result coordinate system

No


                        

Reverse Geocoding

Service Introduction

Query the corresponding structured address, administrative division data, and distribution of surrounding high-weight landmarks based on latitude and longitude.

Interface address

https://lbs.navinfo.com/open-api/geocoder/v1/regeo

Request method

GET or POST

Request parameters

Parameter Type Meaning Required Default Remarks

ak

string

Developer Key

Yes

Please apply for a key

guid

string

device id

No

lonlats

string

Enter latitude and longitude coordinates

Yes

Longitude and latitude are separated by ";", and multiple sets of coordinates are separated by ";" , Maximum support for 10 sets of coordinates, the excess is not processed

inGb

string

Type of input coordinate system

No

g02

Default: g02,
g02: National Survey Office (gcj02) coordinates
g84: coordinates acquired by GPS device
gbd: Baidu coordinates

outGb

string

The type of coordinate system returned

No

g02

Default: g02,
g02: National Survey Office (gcj02) coordinates
gbd: Baidu coordinates

poi

string

Remove nearby poi information

No

false

Default: false,
false: do not recall
true: recall (maximum return of 5 data)

road

string

Recalling nearby road information

No

false

Default: false,
false: no recall
true: recall (only return roads with path names, and Returns up to 5 pieces of data)

language

string

Language Type

No

ch

Value range: default ch,
ch: 中文
en: English

Response data

Return Value Type Meaning Remarks

status

int

Return status

See status code table for details.

msg

string

return status Description

See status code table for details.

data

array

Reverse geocoding returned

Maximum length is 10

lonlat

string

coordinate points

faddr

string

Structured Address: county +province +city +district

For example, China Beijing Beijing Xicheng;

ad

object

administrative zoning information

nation

string

Country

prov

string

Province Name

city

string

City Name

dist

string

District name

adcode

string

Regional Code

6-digit national standard codes

ctcode

string

The city code is a six digit national standard code ;

For example, 130700;
ctcode is empty when the city name is empty;

roads

object

Road Information List

rnm

string

Road Name

dis

int

Distance

The closest distance from the road to the requested coordinates, in meters

dir

string

direction

the input point and the relative orientation of the path

rlonlat

string

coordinate point

The closest point to the road

grade

string

Road grade;

1. Other roads / urban other roads local / terminal Road
2. Township Village Road / urban ordinary road
3.county road / urban general trunk road
4. provincial road / urban primary trunk road
5. national highway etc
6. inner Highway
7. highway highway highway

pois

object

poi information list

pid

string

poi's id

nm

string

Poi's name

tp

string

poi type

dis

int

distance

The closest distance from the POI to the request coordinates. Unit: m

dir

string

Direction

is the orientation of the input point relative to the building

addr

string

poi address information

lonlat

string

coordinate points

Service example

Parameter Value Type Meaning Required Remarks

ak

Users Ak

string

developer key

Yes

Click to apply

guid

string

device id

No

lonlats

string

latitude and longitude coordinates

Yes

The format is "xxx,xxx;xxx,xxx;xxx,xxx"

inGb

string

Type of coordinate system entered

No

outGb

string

The type of coordinate system returned

No

road

string

Recalling nearby road information

No

poi

string

Remove nearby poi information

No

language

string

Language Type

No


                        
TOP