Document Maps JavaScript API Reference Manual Location GeolocationResult

GeolocationResult

Positioning result from browser, the process and failure information of positioning can be obtained from the message field(Type: Object

Parameter

Attribute

Type

Description

position

LngLat

Latitude and longitude position obtained from positioning

accuracy

number

Positioning accuracy, meters

location_type

number

Type of positioning, ip/h5/sdk/ipcity

message

number

Information about the positioning process, used to troubleshoot positioning failures

isConverted

number

Whether it has been converted to AMap coordinates

info

number

SUCCESS' or 'PERMISSION_DENIED' or 'TIME_OUT' or 'POSITION_UNAVAILABLE'

addressComponent

number

Return structured address information when needAddress

formattedAddress

number

Return the standardized address when needAddress

pois

number

Return POI information near the location point when needAddress

roads

number

Return the road information near the location point when needAddress

crosses

number

Return the intersection information near the location point when needAddress