### Walking Route Planning Request Example Source: https://lbs.qq.com/service/webService/webServiceGuide/Overseas/webServiceRoute Example of a GET request to the QQ Map API for walking route planning. This demonstrates the basic URL structure and required parameters like API key, start, and end coordinates. ```bash https://apis.map.qq.com/ws/direction/v1/walking?key=API_KEY&from=40.7480,-73.9862&to=40.7561,-73.9833 ``` -------------------------------- ### Explore Places API Request Example (GET) Source: https://lbs.qq.com/service/webService/webServiceGuide/search/webServiceSearch This example demonstrates a GET request to the 'explore' API for nearby places. It includes parameters like 'boundary' for location and radius, 'policy' for search strategy, 'page_size', 'page_index' for pagination, and the 'key' for authentication. The 'boundary' parameter uses the 'nearby' format with latitude, longitude, and radius. ```http https://apis.map.qq.com/ws/place/v1/explore?boundary=nearby(40.040394,116.273523,1000)&policy=1&page_size=10&page_index=1&key=OB4BZ-D4W3U-***** ``` -------------------------------- ### Nearby Recommendations API Request Example (GET) Source: https://lbs.qq.com/service/webService/webServiceGuide/search/webServiceSearch This example shows a GET request to the 'here' API, which provides nearby recommendations. Similar to the 'explore' API, it uses the 'boundary' parameter with 'nearby' format for location and radius. The 'policy' parameter here influences the type of recommendations, focusing on landmarks, main roads, or specific scenarios like home or travel. ```http https://apis.map.qq.com/ws/place/v1/here?boundary=nearby(40.040394,116.273523,1000)&policy=1&page_size=10&page_index=1&key=OB4BZ-D4W3U-***** ``` -------------------------------- ### Trucking Directions API GET Request Example Source: https://lbs.qq.com/service/webService/webServiceGuide/route/directionTrucking An example of a GET request to the LBS QQ Service trucking directions API. This request includes parameters for origin, destination, vehicle dimensions, weight, axle information, plate details, and options to retrieve speed and size information. ```http https://apis.map.qq.com/ws/direction/v1/trucking?from=40.023408,116.318436&to=39.767381,116.337662&height=2&width=2.1&weight=2.3&axle_weight=1&axle_count=2&is_trailer=0&length=4&plate_color=1&plate_number=京P309K8&key=YourKey&size=2&get_speed=1 ``` -------------------------------- ### POI Detail API Request Example (GET) Source: https://lbs.qq.com/service/webService/webServiceGuide/search/webServiceSearch This example illustrates a GET request to the 'detail' API to retrieve detailed information about a specific Point of Interest (POI). The request requires a unique 'id' for the POI. Multiple POI IDs can be provided, separated by commas, to retrieve details for several locations in a single request. ```http https://apis.map.qq.com/ws/place/v1/detail?id=6621879543162709731&output=json ``` -------------------------------- ### QQ Maps Web Service API: Polygon Search Example Source: https://lbs.qq.com/service/webService/webServiceGuide/search/webServiceSearch Illustrates a GET request for searching POIs within a custom polygon area. This example shows how to define the polygon coordinates, specify keywords, and use an API key. Parameter values must be URL-encoded. ```http https://apis.map.qq.com/ws/place/v1/search_by_polygon?polygon=39.932512,116.355515;39.933697,116.434650;39.913291,116.435509;39.913555,116.356201&keyword=公园&key=OB4BZ-D4W3U-***** ``` -------------------------------- ### Walking Route Planning API Request Example Source: https://lbs.qq.com/service/webService/webServiceGuide/route/webServiceRoute This snippet demonstrates how to make a request to the Walking Route Planning API. It requires your API key and specifies the starting and ending coordinates. Optional parameters like `to_poi`, `callback`, and `output` can be included for enhanced functionality. ```http https://apis.map.qq.com/ws/direction/v1/walking/?from=39.984042,116.307535&to=39.976249,116.316569&key=[你的key] ``` -------------------------------- ### Driving Route Planning API Request (HTTP) Source: https://lbs.qq.com/service/webService/webServiceGuide/Overseas/webServiceRoute This is an example of a GET request to the QQ Map API for driving route planning. It requires an API key, origin coordinates, and destination coordinates. Optional parameters include waypoints, route policy, language, and output format. ```HTTP https://apis.map.qq.com/ws/direction/v1/driving?key=API_KEY&from=40.7480,-73.9862&to=40.7561,-73.9833 ``` -------------------------------- ### QQ Maps Web Service API: Rectangular Search Example Source: https://lbs.qq.com/service/webService/webServiceGuide/search/webServiceSearch Demonstrates a GET request for searching points of interest (POI) within a specified rectangular boundary. It includes parameters for boundary coordinates, keywords, pagination, and API key. Ensure that parameter values are URL-encoded. ```http https://apis.map.qq.com/ws/place/v1/search?boundary=rectangle(39.907293,116.368935,39.914996,116.379321)&keyword=美食&page_size=10&page_index=1&key=OB4BZ-D4W3U-***** ``` -------------------------------- ### GET /ws/place/v1/detail Source: https://lbs.qq.com/service/webService/webServiceGuide/webServiceSearch 获取POI(地点)的详细信息。需要提供POI的唯一标识(id)和您的API密钥(key)。 ```APIDOC ## GET /ws/place/v1/detail ### Description 获取指定POI(地点)的详细信息,包括名称、地址、电话、分类、坐标和行政区划信息。 ### Method GET ### Endpoint https://apis.map.qq.com/ws/place/v1/detail ### Parameters #### Query Parameters - **id** (string) - Required - POI(地点)唯一标识。 - **key** (string) - Required - 您的API密钥。 ### Request Example ``` https://apis.map.qq.com/ws/place/v1/detail?id=6621879543162709731&key=OB4BZ-D4W3U-***** ``` ### Response #### Success Response (200) - **status** (number) - 状态码,0为正常,其它为异常。 - **message** (string) - 状态说明。 - **count** (number) - 本次搜索结果总数。 - **request_id** (string) - 本次请求的唯一标识。 - **data** (array) - 搜索结果POI(地点)数组。 - **id** (string) - POI(地点)唯一标识。 - **title** (string) - POI(地点)名称。 - **address** (string) - 地址。 - **tel** (string) - 电话。 - **category** (string) - POI(地点)分类。 - **type** (number) - POI类型(0:普通POI / 1:公交车站 / 2:地铁站 / 3:公交线路 / 4:行政区划)。 - **location** (object) - 坐标。 - **lat** (number) - 纬度。 - **lng** (number) - 经度。 - **ad_info** (object) - 行政区划信息。 - **adcode** (number) - 行政区划代码。 - **province** (string) - 省。 - **city** (string) - 市。 - **district** (string) - 区/县。 #### Response Example ```json { "status": 0, "message": "OK", "count": 1, "request_id": "some_request_id", "data": [ { "id": "6621879543162709731", "title": "腾讯大厦", "address": "广东省深圳市南山区科技路100号", "tel": "0755-XXXXXXXX", "category": "公司企业;IT科技", "type": 0, "location": { "lat": 22.543099, "lng": 113.970534 }, "ad_info": { "adcode": 440305, "province": "广东省", "city": "深圳市", "district": "南山区" } } ] } ``` ``` -------------------------------- ### Get POI Details Request Example - Webservice API Source: https://lbs.qq.com/service/webService/webServiceGuide/search/webServiceSearch This example demonstrates how to make a GET request to retrieve details for a specific POI using its ID. It requires a unique identifier for the location and an API key for authentication. ```HTTP GET https://apis.map.qq.com/ws/place/v1/detail?id=6621879543162709731&key=OB4BZ-D4W3U-***** ``` -------------------------------- ### Walking Route Planning Response Example Source: https://lbs.qq.com/service/webService/webServiceGuide/Overseas/webServiceRoute Example JSON response from the QQ Map API for a walking route planning request. This illustrates the structure of the returned data, including status, route details, distance, duration, and step-by-step navigation instructions. ```json { "status": 0, "message": "Success", "request_id": "here_e3e4835148e14b1991e75c0f0629f841", "result": { "routes": [ { "mode": "WALKING", "distance": 4672, "duration": 78.82, "polyline": [ -23.522211, -46.857983, -109, 173, -140, 200 ], "steps": [ { "instruction": "Head southeast on Rua Arthur Montovanelli. Go for 172 m.", "polyline_idx": [ 0, 9 ], "road_name": "Rua Arthur Montovanelli", "duration": 0, "distance": 172, "act_desc": "depart" }, { "instruction": "Turn left onto Avenida Doutor Dib Sauaia Neto. Go for 899 m.", "polyline_idx": [ 188, 213 ], "road_name": "Avenida Doutor Dib Sauaia Neto", "duration": 0, "distance": 899, "act_desc": "turn" }, { "instruction": "Arrive at Avenida Doutor Dib Sauaia Neto. Your destination is on the left.", "polyline_idx": [ 214, 215 ], "road_name": "Avenida Doutor Dib Sauaia Neto", "duration": 0, "distance": 0, "act_desc": "arrive" } ] } ] } } ``` -------------------------------- ### GET /ws/direction/v1/walking/ Source: https://lbs.qq.com/service/webService/webServiceGuide/webServiceRoute Calculates walking directions between a specified start and end point. ```APIDOC ## GET /ws/direction/v1/walking/ ### Description Calculates walking directions between a specified start and end point. ### Method GET ### Endpoint https://apis.map.qq.com/ws/direction/v1/walking/ ### Parameters #### Query Parameters - **key** (string) - Required - Developer key. - **from** (string) - Required - Starting point coordinates (latitude,longitude). - **to** (string) - Required - Ending point coordinates (latitude,longitude). - **to_poi** (string) - Optional - Destination POI ID. If provided, it takes precedence over `to` coordinates. - **callback** (string) - Optional - Callback function name for JSONP response. - **output** (string) - Optional - Response type: `json` or `jsonp`. Defaults to `json`. ### Request Example ``` https://apis.map.qq.com/ws/direction/v1/walking/?from=39.984042,116.307535&to=39.976249,116.316569&key=[Your Key] ``` ### Response #### Success Response (200) - **status** (number) - Status code (0 for success). - **message** (string) - Status message. - **result** (object) - Search results. - **routes** (array) - Array of route plans. - **mode** (string) - Travel mode (fixed value: "WALKING"). - **distance** (number) - Total distance of the route in meters. - **duration** (number) - Estimated duration of the route in minutes. - **direction** (string) - Overall direction of the route. - **polyline** (array) - Compressed route coordinate points. - **steps** (array) - Array of route steps. - **instruction** (string) - Step-by-step route description. - **polyline_idx** (array) - Start and end indices of the step's polyline in the main polyline. - **road_name** (string) - Name of the road (optional). - **dir_desc** (string) - Direction description for the step. - **distance** (number) - Distance of the step in meters. - **act_desc** (string) - Description of the action at the end of the step (e.g., '直行', '左转'). - **type** (number) - Type of walking facility (0: normal road, 1: overpass, 2: underpass, 3: crosswalk). #### Response Example ```json { "status": 0, "message": "query ok", "result": { "routes": [ { "mode": "WALKING", "distance": 38385, "duration": 581, "direction": "东", "polyline": [39.915219, 116.403857, 0, 12, 40, 1180, 40, 1520, 0, 80, ...], "steps": [ { "instruction": "从起点朝东,沿东华门大街步行239米,直行进入东安门大街", "polyline_idx": [0, 9], "road_name": "东华门大街", "dir_desc": "东", "distance": 239, "act_desc": "直行" }, ... { "instruction": "步行255米,到达终点", "polyline_idx": [1556, 1567], "road_name": "", "dir_desc": "东", "distance": 255, "act_desc": "" } ] } ] } } ``` ``` -------------------------------- ### GET /ws/place/v1/here Source: https://lbs.qq.com/service/webService/webServiceGuide/search/webServiceSearch Recommends nearby POIs based on a given center point and radius, focusing on landmarks, major roads, and nearby POIs to describe the current location. ```APIDOC ## GET /ws/place/v1/here ### Description Recommends nearby POIs based on a given center point and radius, focusing on landmarks, major roads, and nearby POIs to describe the current location. This is an advanced service requiring application permission. ### Method GET ### Endpoint https://apis.map.qq.com/ws/place/v1/here ### Parameters #### Query Parameters - **key** (string) - Required - Developer key for authentication. - **boundary** (string) - Required - Defines the search area. Format: `nearby(lat,lng,radius)`. `lat`,`lng` are coordinates, `radius` is in meters (10-1000). - **policy** (number) - Optional - Search strategy. `1` (default) for current location context, `2` for home/delivery scenarios, `3` for travel scenarios. - **filter** (string) - Optional - Filters results by category. Format: `category=CategoryName1,CategoryName2`. - **address_format** (string) - Optional - Address format. `short` for a concise address. - **output** (string) - Optional - Response format. Supports JSON/JSONP, defaults to JSON. - **callback** (string) - Optional - Callback function name for JSONP requests. ### Request Example ```json { "example": "GET https://apis.map.qq.com/ws/place/v1/here?boundary=nearby(40.040394,116.273523,1000)&policy=1&page_size=10&page_index=1&key=OB4BZ-D4W3U-*****" } ``` ### Response #### Success Response (200) - **status** (number) - Status code, 0 for success. - **message** (string) - Status description. - **count** (number) - Total number of search results. Limited to 10. - **request_id** (string) - Unique identifier for the request. - **data** (array) - Array of POI objects. - **id** (string) - Unique POI identifier. - **title** (string) - POI name. - **address** (string) - POI address. - **category** (string) - POI category. - **location** (object) - POI coordinates. - **lat** (number) - Latitude. - **lng** (number) - Longitude. - **_distance** (number) - Distance from the search center in meters. - **ad_info** (object) - Administrative division information. - **adcode** (number) - Administrative division code. - **province** (string) - Province. - **city** (string) - City. - **district** (string) - District. #### Response Example ```json { "example": { "status": 0, "message": "OK", "count": 8, "request_id": "some_request_id", "data": [ { "id": "poi_id_1", "title": "Example Landmark", "address": "Main Street", "category": "Landmark", "location": { "lat": 40.040394, "lng": 116.273523, "_distance": 200 }, "ad_info": { "adcode": 110101, "province": "Example Province", "city": "Example City", "district": "Example District" } } ] } } ``` ``` -------------------------------- ### GET /ws/direction/v1/driving Source: https://lbs.qq.com/service/webService/webServiceGuide/Overseas/webServiceRoute Calculates a driving route between a starting point and an ending point. It supports intermediate waypoints, route optimization policies (like fastest or real-time traffic), and language selection for the response. ```APIDOC ## GET /ws/direction/v1/driving ### Description Calculates a driving route between a starting point and an ending point. It supports intermediate waypoints, route optimization policies (like fastest or real-time traffic), and language selection for the response. ### Method GET ### Endpoint `https://apis.map.qq.com/ws/direction/v1/driving` ### Parameters #### Query Parameters - **key** (string) - Required - Developer key. - **from** (string) - Required - Starting point coordinates in `lat,lng` format (e.g., `40.7480,-73.9862`). - **to** (string) - Required - Ending point coordinates in `lat,lng` format (e.g., `40.7561,-73.9833`). - **waypoints** (string) - Optional - Up to 15 intermediate waypoints, formatted as `lat1,lng1;lat2,lng2;...` (e.g., `40.7504,-73.9873;40.7535,-73.986`). - **policy** (string) - Optional - Route planning conditions. Only valid outside Japan. Options: `LEAST_TIME` (fastest), `REAL_TRAFFIC` (real-time traffic). - **language** (string) - Optional - Response language. Options: `cn` (default, Chinese), `local` (local language). See appendix for supported languages. - **output** (string) - Optional - Response type. Options: `json` (default), `jsonp`. - **callback** (string) - Optional - Callback function name for JSONP responses. ### Request Example ```json { "query": "https://apis.map.qq.com/ws/direction/v1/driving?key=API_KEY&from=40.7480,-73.9862&to=40.7561,-73.9833&waypoints=40.7504,-73.9873;40.7535,-73.986&policy=LEAST_TIME&language=en&output=json" } ``` ### Response #### Success Response (200) - **status** (number) - Status code, 0 for success. - **message** (string) - Status description. - **result** (object) - Search results. - **routes** (array) - Route options. - **mode** (string) - Travel mode, fixed value: "DRIVING". - **distance** (number) - Total distance of the route in meters. - **duration** (number) - Estimated duration in minutes (considering traffic). - **direction** (string) - Overall direction of the route. - **polyline** (array) - Compressed route coordinates. Refer to polyline coordinate decompression for details. - **waypoints** (array) - Optional. Intermediate points, in the same order as input waypoints. Returned only if waypoints are provided. - **location** (object) - Coordinates of the waypoint. - **lat** (number) - Latitude. - **lng** (number) - Longitude. - **polyline_idx** (number) - Index of this waypoint in the polyline array. - **steps** (array) - Route steps. - **instruction** (string) - Textual description of the step. - **polyline_idx** (array) - Array of indices indicating the position of this step's polyline within the overall route polyline. - **road_name** (string) - Optional. Name of the road for this step. - **dir_desc** (string) - Optional. Direction description for this step. - **distance** (number) - Distance of the step in meters. - **act_desc** (string) - Optional. Action at the end of this step (e.g., left turn, U-turn). #### Response Example ```json { "status": 0, "message": "query ok", "result": { "routes": [ { "mode": "DRIVING", "distance": 1480, "duration": 5.77, "polyline": [ 40.7481923, -73.9860613, 839, -1977 ], "steps": [ { "instruction": "沿着 W 33rd St 朝 W 32nd St 行驶, 直行 192 米", "polyline_idx": [ 0, 3 ], "road_name": "W 33rd St", "distance": 192, "duration": 0.63, "act_desc": "depart" }, { "instruction": "右转驶入 6th Ave, 直行 241 米", "polyline_idx": [ 8, 19 ], "road_name": "6th Ave", "distance": 241, "duration": 1.2, "act_desc": "rightTurn" }, { "instruction": "继续沿 6th Ave 行驶, 直行 796 米", "polyline_idx": [ 18, 55 ], "road_name": "6th Ave", "distance": 796, "duration": 3.13, "act_desc": "continue" }, { "instruction": "抵达 6th Ave 。目的地位于左侧", "polyline_idx": [ 54, 55 ], "road_name": "", "distance": 0, "duration": 0, "act_desc": "arrive" } ] } ] } } ``` ``` -------------------------------- ### Reverse Geocoding API Request Example (JavaScript) Source: https://lbs.qq.com/service/webService/webServiceGuide/Overseas/Gcoder This JavaScript example shows how to construct a GET request for the reverse geocoding API. It highlights the use of template literals for easy string construction and URL encoding for parameters. This is a common pattern for making API calls in web applications. ```JavaScript const apiKey = "OB4BZ-D4W3U-XXXXX"; const latitude = 41.8840047; const longitude = -87.630220; const language = "en"; const url = `https://apis.map.qq.com/ws/geocoder/v1/?location=${latitude},${longitude}&key=${apiKey}&language=${language}`; fetch(url) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error)); ``` -------------------------------- ### Walking Route Planning API Response Example Source: https://lbs.qq.com/service/webService/webServiceGuide/route/webServiceRoute This JSON object represents the successful response from the Walking Route Planning API. It includes status information, route details such as distance, duration, polyline, and a list of steps with detailed instructions for each segment of the walk. ```json { "status":0, //状态码 "message":"query ok", //状态说明 "result":{ "routes":[ { "mode":"WALKING", "distance":38385, "duration":581, "direction":"东", "polyline":[39.915219, 116.403857,0,12,40,1180,40,1520,0,80,... ...], "steps":[ { "instruction":"从起点朝东,沿东华门大街步行239米,直行进入东安门大街", "polyline_idx":[0,9], "road_name":"东华门大街", "dir_desc":"东", "distance":239, "act_desc":"直行" }, { "instruction":"步行255米,到达终点", "polyline_idx":[1556,1567], "road_name":"", "dir_desc":"东", "distance":255, "act_desc":"" }] }] } } ``` -------------------------------- ### POST /ws/place/v1/suggestion Source: https://lbs.qq.com/service/webService/webServiceGuide/Overseas/webServiceSuggestion 获取输入关键字的补完与提示,帮助用户快速输入。此接口为纯HTTP数据接口,需配合前端程序实现Autocomplete(自动完成)的效果。 ```APIDOC ## POST /ws/place/v1/suggestion ### Description 获取输入关键字的补完与提示,帮助用户快速输入。此接口为纯HTTP数据接口,需配合前端程序实现Autocomplete(自动完成)的效果。 ### Method GET ### Endpoint https://apis.map.qq.com/ws/place/v1/suggestion ### Parameters #### Query Parameters - **key** (string) - Required - 开发密钥(Key) - **keyword** (string) - Required - 搜索关键词 - **oversea** (integer) - Optional - 是否调用海外(使用默认值 0 只调用国内服务) - **location** (string) - Optional - 搜索范围中心点: 1. 传入后会在半径 10km 内搜索 2. 缺省时优先返回国内结果 (e.g., "38.900109,-77.0319397") - **radius** (integer) - Optional - 搜索半径(单位:米),默认10000,最大支持30000 - **language** (string) - Optional - 返回结果的语言: `cn` [默认]中文 `local` 当地语言 (e.g., "en") - **output** (string) - Optional - 返回格式:支持`JSON`/`JSONP`,默认`JSON` - **callback** (string) - Optional - JSONP方式回调函数 ### Request Example ``` https://apis.map.qq.com/ws/place/v1/suggestion?key=API_KEY&keyword=WhiteHou&oversea=1 ``` ### Response #### Success Response (200) - **status** (number) - 状态码,0为正常 - **message** (string) - 状态说明 - **count** (number) - 本次搜索结果总数 - **data** (array) - 搜索结果POI数组 - **id** (string) - POI唯一标识 - **title** (string) - poi名称 - **address** (string) - 地址 - **category** (string) - POI(地点)分类 - **location** (object) - 坐标 - **lat** (number) - 纬度 - **lng** (number) - 经度 - **_distance** (number) - 距离,单位:米 #### Response Example ```json { "status": 0, "message": "query ok", "count": 10, "data": [ { "id": "", "title": "White House", "address": "1600 Pennsylvania Avenue NW, Washington, DC 20500, USA", "category": "公司", "location": { "lat": 38.897676, "lng": -77.036528 }, "_distance": 0 } ] } ``` ``` -------------------------------- ### GET /ws/distance/v1/matrix Source: https://lbs.qq.com/service/webService/webServiceGuide/webServiceMatrix This endpoint calculates the distance matrix between specified origins and destinations using GET requests. ```APIDOC ## GET /ws/distance/v1/matrix ### Description Calculates the distance and duration matrix between multiple origins and destinations using GET requests. Suitable for simpler requests or when request body is not preferred. ### Method GET ### Endpoint https://apis.map.qq.com/ws/distance/v1/matrix/ ### Parameters #### Query Parameters - **mode** (string) - Required - The travel mode (e.g., "driving", "walking", "bicycling"). - **from** (string) - Required - Origin coordinates. Format: `lat,lng,[header],[roadtype],[speed],[accuracy],[timestamp]` for each origin, separated by '|'. - `lat`: Latitude. - `lng`: Longitude. - `header`: Optional. Vehicle's direction (0-360 degrees, North is 0). - `roadtype`: Optional. Road type (0: ignore, 1: on bridge, 2: under bridge, 3: main road, 4: side road, 5: opposite side, 6: under bridge main road, 7: under bridge side road). - `speed`: Optional. Speed in km/h, or -1 if unknown. - `accuracy`: Optional. GPS accuracy in millimeters, or 0 if unknown. - `timestamp`: Optional. Unix timestamp in seconds. *Note: Up to 5 previous points can be provided for each origin. - **to** (string) - Required - Destination coordinates. Format: `lat,lng` for each destination, separated by ';'. - **key** (string) - Required - Your API key. ### Request Example ``` https://apis.map.qq.com/ws/distance/v1/matrix/?mode=driving&from=39.829647,116.422462,-1,0,-1,0,1639108623|39.830553,116.422924,-1,0,-1,0,1639108628&to=43.889352,87.460222&key=YOUR_API_KEY ``` ### Response #### Success Response (200) - **status** (number) - Status code (0 for success). - **message** (string) - Success message. - **result** (object) - Contains the distance matrix. - **rows** (array) - An array where each element represents an origin. - **elements** (array) - An array where each element represents a destination for the current origin. - **distance** (number) - Distance between origin and destination in meters. - **duration** (number) - Optional. Estimated travel time in seconds, considering traffic conditions. - **status** (number) - Optional. Status for this specific origin-destination pair (e.g., 4 if no road found). #### Response Example ```json { "status": 0, "message": "Success", "request_id": "907308272400812070", "result": { "rows": [ { "elements": [ { "distance": 2801011, "duration": 127341 } ] }, { "elements": [ { "distance": 4240259, "duration": 203147 } ] } ] } } ``` ```