# wx.chooseLocation(Object object)

with Promise style call: Supported

User authorization: Need scope.userLocation

Mini Program plugin: Support, need to Mini Program base library version no less than 1.9.6

Open the map and select the location.

# parameter

# Object object

attribute type Default values Required Introductions Minimum version
latitude number no Target latitude 2.9.0
longitude number no Target longitude 2.9.0
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)

# object.success callback

# parameter
# Object res
attribute type Introductions
name string Location name
address string Detailed address
latitude number Latitude, floating point, range -9090. The negative number indicates latitude south. use gcj02 NBS coordinate system
longitude number Longitude, float, range -180Negative numbers denote west longitude. use gcj02 NBS coordinate system