# wx.choosePoi(Object object)
with Promise style call: Supported
User authorization: Need scope.userLocation
Mini Program plugin: Not supported
Open the map to select the location, support fuzzy positioning (accurate to the city) and precise positioning mixed election.
# parameter
# Object object
| attribute | type | Default values | Required | Introductions |
|---|---|---|---|---|
| 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 |
|---|---|---|
| type | number | When selecting a city, the value is When selecting the exact position, the value is 2 |
| city | number | City name |
| 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 |