← Tools Reference

Baidu Maps

Baidu Maps integration (Location). Imported from open-connector.

API key14 toolshttps://api.map.baidu.com
GET
baidu_maps_geocode
Geocode an address with Baidu Maps.

/geocoding/v3/

2 parameters
ParamTypeRequiredDescription
addressstringrequiredThe address to geocode.
citystringoptionalRestrict results to a city, for example '北京市'.
GET
baidu_maps_reverse_geocode
Reverse geocode coordinates with Baidu Maps.

/reverse_geocoding/v3/

7 parameters
ParamTypeRequiredDescription
locationstringrequiredThe coordinate string formatted as latitude,longitude (bd09ll by default).
coordtypestringoptionalThe coordinate system of the input location.
radiusintegeroptionalThe radius in meters to include nearby points of interest.
extensions_poiintegeroptional0 to only return the address (default), 1 to also return nearby POIs.
poi_typesstringoptionalComma separated extensions_poi types filter (when extensions_poi=1).
languagestringoptionalThe language of the result.
latest_adminintegeroptionalWhether to return the latest administrative division (1) or the historical one …
GET
baidu_maps_search_places
Search Baidu Maps places in a region or city.

/place/v2/search

9 parameters
ParamTypeRequiredDescription
querystringrequiredThe keyword used to search places.
regionstringoptionalThe region name to scope the search, for example '北京'.
city_limitintegeroptionalWhether to restrict results to the supplied region (1) or extend to nearby regi…
scopestringoptionalThe result scope. Baidu accepts either the string or the integer form.
filterstringoptionalPipe separated industry filtering tags.
coord_typestringoptionalThe coordinate system of returned locations.
ret_coordtypestringoptionalAlias for coord_type used by some Baidu endpoints.
page_sizeintegeroptionalThe page size, 0 to 20.
page_numintegeroptionalThe zero-based page index.
GET
baidu_maps_search_places_around
Search Baidu Maps places within a radius around a coordinate.

/place/v2/search

9 parameters
ParamTypeRequiredDescription
querystringrequiredThe keyword used to search places.
locationstringrequiredThe search center formatted as latitude,longitude.
radiusintegeroptionalThe search radius in meters (default 1000, max 50000).
radius_limitintegeroptionalWhether to strictly observe the radius (1) or relax it (0).
filterstringoptionalPipe separated industry filtering tags.
coord_typestringoptionalThe coordinate system of returned locations.
ret_coordtypestringoptionalAlias for coord_type used by some Baidu endpoints.
page_sizeintegeroptionalThe page size, 0 to 20.
page_numintegeroptionalThe zero-based page index.
GET
baidu_maps_search_places_polygon
Search Baidu Maps places inside a polygon (rectangle).

/place/v2/search

7 parameters
ParamTypeRequiredDescription
querystringrequiredThe keyword used to search places.
boundsstringrequiredRectangle bounds 'bottomLeftLat,bottomLeftLng,topRightLat,topRightLng' — latitu…
filterstringoptionalPipe separated industry filtering tags.
coord_typestringoptionalThe coordinate system of returned locations.
ret_coordtypestringoptionalAlias for coord_type used by some Baidu endpoints.
page_sizeintegeroptionalThe page size, 0 to 20.
page_numintegeroptionalThe zero-based page index.
GET
baidu_maps_get_place_detail
Look up a Baidu Maps place by its uid.

/place/v2/detail

3 parameters
ParamTypeRequiredDescription
uidstringrequiredThe Baidu Maps place identifier (uid).
scopestringoptionalThe detail scope. Baidu accepts either the string or the integer form.
coord_typestringoptionalThe coordinate system of returned locations.
GET
baidu_maps_input_tips
Fetch Baidu Maps input suggestions (keywordsuggestion).

/place/v2/suggestion

5 parameters
ParamTypeRequiredDescription
querystringrequiredThe keyword to suggest completions for.
regionstringoptionalRestrict suggestions to a region (e.g. '北京').
city_limitintegeroptionalWhether to restrict suggestions to the supplied region.
locationstringoptionalThe center coordinate used for location bias.
coord_typestringoptionalThe coordinate system of the input location.
GET
baidu_maps_ip_locate
Locate an IP address with Baidu Maps.

/location/ip

2 parameters
ParamTypeRequiredDescription
ipstringoptionalThe IP address to locate. Omit to locate the caller.
coorstringoptionalThe coordinate system of the returned location.
GET
baidu_maps_district_search
Query the Baidu Maps administrative division API (api_region_search).

/api_region_search/v1/

4 parameters
ParamTypeRequiredDescription
keywordstringrequiredThe district name or administrative code (adcode) to look up.
sub_adminintegeroptionalNumber of subordinate levels to return (0-3, default 0).
extensions_codeintegeroptional1 to also return standard administrative codes (default 0).
boundaryintegeroptional1 to return boundary coordinates (default 0).
GET
baidu_maps_weather
Fetch weather observations and forecasts for a coordinate.

/weather/v1/

4 parameters
ParamTypeRequiredDescription
data_typestringoptionalThe data sections to include (default 'all').
coordtypestringoptionalThe coordinate system of the input location (weather uses 'coordtype', default …
locationstringoptionalThe coordinate as longitude,latitude — NOTE weather is lng,lat (opposite of oth…
district_idstringoptionalThe administrative division code (adcode). Provide this or location; takes prio…
GET
baidu_maps_route_driving
Plan a Baidu Maps driving route.

/directionlite/v1/driving

12 parameters
ParamTypeRequiredDescription
originstringrequiredThe origin coordinate formatted as latitude,longitude.
destinationstringrequiredThe destination coordinate formatted as latitude,longitude.
origin_uidstringoptionalOptional origin POI uid.
destination_uidstringoptionalOptional destination POI uid.
waypointsstringoptionalComma separated intermediate waypoints.
tacticsintegeroptionalThe routing preference (0 default, 1 toll free, 2 distance first, 3 expressway …
tactics_in_cityintegeroptionalUrban routing preference (0 default, 1 main road first, 2 time first, 3 distanc…
alternativesintegeroptional0 to return only the best route; 3 to return up to 3 alternatives.
departure_timestringoptionalDeparture time in ISO 8601 (used only with future-traffic tactics).
plate_numberstringoptionalLicense plate for restriction-aware routing.
traffic_policyintegeroptionalReal-time traffic policy.
coord_typestringoptionalThe coordinate system of origin/destination.
GET
baidu_maps_route_walking
Plan a Baidu Maps walking route.

/directionlite/v1/walking

3 parameters
ParamTypeRequiredDescription
originstringrequiredThe origin coordinate formatted as latitude,longitude.
destinationstringrequiredThe destination coordinate formatted as latitude,longitude.
coord_typestringoptionalThe coordinate system of origin/destination.
GET
baidu_maps_route_bicycling
Plan a Baidu Maps bicycling route.

/directionlite/v1/riding

3 parameters
ParamTypeRequiredDescription
originstringrequiredThe origin coordinate formatted as latitude,longitude.
destinationstringrequiredThe destination coordinate formatted as latitude,longitude.
coord_typestringoptionalThe coordinate system of origin/destination.
GET
baidu_maps_route_transit
Plan a Baidu Maps transit route.

/directionlite/v1/transit

6 parameters
ParamTypeRequiredDescription
originstringrequiredThe origin coordinate formatted as latitude,longitude.
destinationstringrequiredThe destination coordinate formatted as latitude,longitude.
departure_timestringoptionalOptional ISO 8601 departure time, default now.
tactics_in_cityintegeroptionalTransit tactic when origin/destination are inside the same city.
tactics_inter_cityintegeroptionalTransit tactic when traveling between cities.
coord_typestringoptionalThe coordinate system of origin/destination.