Baidu Maps integration (Location). Imported from open-connector.
https://api.map.baidu.com/geocoding/v3/
| Param | Type | Required | Description |
|---|---|---|---|
| address | string | required | The address to geocode. |
| city | string | optional | Restrict results to a city, for example '北京市'. |
/reverse_geocoding/v3/
| Param | Type | Required | Description |
|---|---|---|---|
| location | string | required | The coordinate string formatted as latitude,longitude (bd09ll by default). |
| coordtype | string | optional | The coordinate system of the input location. |
| radius | integer | optional | The radius in meters to include nearby points of interest. |
| extensions_poi | integer | optional | 0 to only return the address (default), 1 to also return nearby POIs. |
| poi_types | string | optional | Comma separated extensions_poi types filter (when extensions_poi=1). |
| language | string | optional | The language of the result. |
| latest_admin | integer | optional | Whether to return the latest administrative division (1) or the historical one … |
/place/v2/search
| Param | Type | Required | Description |
|---|---|---|---|
| query | string | required | The keyword used to search places. |
| region | string | optional | The region name to scope the search, for example '北京'. |
| city_limit | integer | optional | Whether to restrict results to the supplied region (1) or extend to nearby regi… |
| scope | string | optional | The result scope. Baidu accepts either the string or the integer form. |
| filter | string | optional | Pipe separated industry filtering tags. |
| coord_type | string | optional | The coordinate system of returned locations. |
| ret_coordtype | string | optional | Alias for coord_type used by some Baidu endpoints. |
| page_size | integer | optional | The page size, 0 to 20. |
| page_num | integer | optional | The zero-based page index. |
/place/v2/search
| Param | Type | Required | Description |
|---|---|---|---|
| query | string | required | The keyword used to search places. |
| location | string | required | The search center formatted as latitude,longitude. |
| radius | integer | optional | The search radius in meters (default 1000, max 50000). |
| radius_limit | integer | optional | Whether to strictly observe the radius (1) or relax it (0). |
| filter | string | optional | Pipe separated industry filtering tags. |
| coord_type | string | optional | The coordinate system of returned locations. |
| ret_coordtype | string | optional | Alias for coord_type used by some Baidu endpoints. |
| page_size | integer | optional | The page size, 0 to 20. |
| page_num | integer | optional | The zero-based page index. |
/place/v2/search
| Param | Type | Required | Description |
|---|---|---|---|
| query | string | required | The keyword used to search places. |
| bounds | string | required | Rectangle bounds 'bottomLeftLat,bottomLeftLng,topRightLat,topRightLng' — latitu… |
| filter | string | optional | Pipe separated industry filtering tags. |
| coord_type | string | optional | The coordinate system of returned locations. |
| ret_coordtype | string | optional | Alias for coord_type used by some Baidu endpoints. |
| page_size | integer | optional | The page size, 0 to 20. |
| page_num | integer | optional | The zero-based page index. |
/place/v2/detail
| Param | Type | Required | Description |
|---|---|---|---|
| uid | string | required | The Baidu Maps place identifier (uid). |
| scope | string | optional | The detail scope. Baidu accepts either the string or the integer form. |
| coord_type | string | optional | The coordinate system of returned locations. |
/place/v2/suggestion
| Param | Type | Required | Description |
|---|---|---|---|
| query | string | required | The keyword to suggest completions for. |
| region | string | optional | Restrict suggestions to a region (e.g. '北京'). |
| city_limit | integer | optional | Whether to restrict suggestions to the supplied region. |
| location | string | optional | The center coordinate used for location bias. |
| coord_type | string | optional | The coordinate system of the input location. |
/location/ip
| Param | Type | Required | Description |
|---|---|---|---|
| ip | string | optional | The IP address to locate. Omit to locate the caller. |
| coor | string | optional | The coordinate system of the returned location. |
/api_region_search/v1/
| Param | Type | Required | Description |
|---|---|---|---|
| keyword | string | required | The district name or administrative code (adcode) to look up. |
| sub_admin | integer | optional | Number of subordinate levels to return (0-3, default 0). |
| extensions_code | integer | optional | 1 to also return standard administrative codes (default 0). |
| boundary | integer | optional | 1 to return boundary coordinates (default 0). |
/weather/v1/
| Param | Type | Required | Description |
|---|---|---|---|
| data_type | string | optional | The data sections to include (default 'all'). |
| coordtype | string | optional | The coordinate system of the input location (weather uses 'coordtype', default … |
| location | string | optional | The coordinate as longitude,latitude — NOTE weather is lng,lat (opposite of oth… |
| district_id | string | optional | The administrative division code (adcode). Provide this or location; takes prio… |
/directionlite/v1/driving
| Param | Type | Required | Description |
|---|---|---|---|
| origin | string | required | The origin coordinate formatted as latitude,longitude. |
| destination | string | required | The destination coordinate formatted as latitude,longitude. |
| origin_uid | string | optional | Optional origin POI uid. |
| destination_uid | string | optional | Optional destination POI uid. |
| waypoints | string | optional | Comma separated intermediate waypoints. |
| tactics | integer | optional | The routing preference (0 default, 1 toll free, 2 distance first, 3 expressway … |
| tactics_in_city | integer | optional | Urban routing preference (0 default, 1 main road first, 2 time first, 3 distanc… |
| alternatives | integer | optional | 0 to return only the best route; 3 to return up to 3 alternatives. |
| departure_time | string | optional | Departure time in ISO 8601 (used only with future-traffic tactics). |
| plate_number | string | optional | License plate for restriction-aware routing. |
| traffic_policy | integer | optional | Real-time traffic policy. |
| coord_type | string | optional | The coordinate system of origin/destination. |
/directionlite/v1/walking
| Param | Type | Required | Description |
|---|---|---|---|
| origin | string | required | The origin coordinate formatted as latitude,longitude. |
| destination | string | required | The destination coordinate formatted as latitude,longitude. |
| coord_type | string | optional | The coordinate system of origin/destination. |
/directionlite/v1/riding
| Param | Type | Required | Description |
|---|---|---|---|
| origin | string | required | The origin coordinate formatted as latitude,longitude. |
| destination | string | required | The destination coordinate formatted as latitude,longitude. |
| coord_type | string | optional | The coordinate system of origin/destination. |
/directionlite/v1/transit
| Param | Type | Required | Description |
|---|---|---|---|
| origin | string | required | The origin coordinate formatted as latitude,longitude. |
| destination | string | required | The destination coordinate formatted as latitude,longitude. |
| departure_time | string | optional | Optional ISO 8601 departure time, default now. |
| tactics_in_city | integer | optional | Transit tactic when origin/destination are inside the same city. |
| tactics_inter_city | integer | optional | Transit tactic when traveling between cities. |
| coord_type | string | optional | The coordinate system of origin/destination. |