Skip to content

Instantly share code, notes, and snippets.

@nvcnvn
Created August 20, 2023 12:47
Show Gist options
  • Save nvcnvn/a2c4ac1889dda587056130d5b0525c51 to your computer and use it in GitHub Desktop.
Save nvcnvn/a2c4ac1889dda587056130d5b0525c51 to your computer and use it in GitHub Desktop.
{
"trip": {
"locations": [
{
"type": "break",
"lat": 10.772002,
"lon": 106.699562,
"original_index": 0
},
{
"type": "break",
"lat": 10.773888,
"lon": 106.681602,
"side_of_street": "left",
"original_index": 1
}
],
"legs": [
{
"maneuvers": [
{
"type": 1,
"instruction": "Drive northeast.",
"verbal_succinct_transition_instruction": "Drive northeast. Then Turn left.",
"verbal_pre_transition_instruction": "Drive northeast. Then Turn left.",
"verbal_post_transition_instruction": "Continue for 20 meters.",
"time": 3.6,
"length": 0.02,
"cost": 4.41,
"begin_shape_index": 0,
"end_shape_index": 1,
"verbal_multi_cue": true,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 15,
"instruction": "Turn left.",
"verbal_transition_alert_instruction": "Turn left.",
"verbal_succinct_transition_instruction": "Turn left. Then Turn right onto Đường Lê Lợi.",
"verbal_pre_transition_instruction": "Turn left. Then Turn right onto Đường Lê Lợi.",
"verbal_post_transition_instruction": "Continue for 40 meters.",
"time": 10.247,
"length": 0.04,
"cost": 43.819,
"begin_shape_index": 1,
"end_shape_index": 5,
"verbal_multi_cue": true,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 10,
"instruction": "Turn right onto Đường Lê Lợi/Le Loi Boulevard.",
"verbal_transition_alert_instruction": "Turn right onto Đường Lê Lợi.",
"verbal_succinct_transition_instruction": "Turn right. Then Turn right onto Nam Kỳ Khởi Nghĩa.",
"verbal_pre_transition_instruction": "Turn right onto Đường Lê Lợi, Le Loi Boulevard. Then Turn right onto Nam Kỳ Khởi Nghĩa.",
"verbal_post_transition_instruction": "Continue for 80 meters.",
"street_names": [
"Đường Lê Lợi",
"Le Loi Boulevard"
],
"time": 9.071,
"length": 0.075,
"cost": 30.768,
"begin_shape_index": 5,
"end_shape_index": 7,
"verbal_multi_cue": true,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 10,
"instruction": "Turn right onto Nam Kỳ Khởi Nghĩa.",
"verbal_transition_alert_instruction": "Turn right onto Nam Kỳ Khởi Nghĩa.",
"verbal_succinct_transition_instruction": "Turn right.",
"verbal_pre_transition_instruction": "Turn right onto Nam Kỳ Khởi Nghĩa.",
"verbal_post_transition_instruction": "Continue for 200 meters.",
"street_names": [
"Nam Kỳ Khởi Nghĩa"
],
"time": 21.545,
"length": 0.244,
"cost": 64.352,
"begin_shape_index": 7,
"end_shape_index": 14,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 10,
"instruction": "Turn right onto Hàm Nghi/Đường Hàm Nghi/Ham Nghi Boulevard.",
"verbal_transition_alert_instruction": "Turn right onto Hàm Nghi.",
"verbal_succinct_transition_instruction": "Turn right.",
"verbal_pre_transition_instruction": "Turn right onto Hàm Nghi, Đường Hàm Nghi.",
"verbal_post_transition_instruction": "Continue for 500 meters.",
"street_names": [
"Hàm Nghi",
"Ham Nghi Boulevard"
],
"begin_street_names": [
"Hàm Nghi",
"Đường Hàm Nghi",
"Ham Nghi Boulevard"
],
"time": 37.563,
"length": 0.509,
"cost": 96.38,
"begin_shape_index": 14,
"end_shape_index": 35,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 9,
"instruction": "Bear right onto Phạm Hồng Thái/Pham Hong Thai Street.",
"verbal_transition_alert_instruction": "Bear right onto Phạm Hồng Thái.",
"verbal_succinct_transition_instruction": "Bear right.",
"verbal_pre_transition_instruction": "Bear right onto Phạm Hồng Thái, Pham Hong Thai Street.",
"verbal_post_transition_instruction": "Continue for 400 meters.",
"street_names": [
"Phạm Hồng Thái",
"Pham Hong Thai Street"
],
"time": 22.404,
"length": 0.353,
"cost": 55.061,
"begin_shape_index": 35,
"end_shape_index": 44,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 26,
"instruction": "Enter Vòng xoay Phù Đổng Thiên Vương and take the 2nd exit onto Cách Mạng Tháng Tám.",
"verbal_transition_alert_instruction": "Enter Vòng xoay Phù Đổng Thiên Vương and take the 2nd exit onto Cách Mạng Tháng Tám.",
"verbal_succinct_transition_instruction": "Enter the roundabout and take the 2nd exit.",
"verbal_pre_transition_instruction": "Enter Vòng xoay Phù Đổng Thiên Vương and take the 2nd exit onto Cách Mạng Tháng Tám.",
"street_names": [
"Vòng xoay Phù Đổng Thiên Vương"
],
"time": 2.124,
"length": 0.016,
"cost": 10.058,
"begin_shape_index": 44,
"end_shape_index": 47,
"roundabout_exit_count": 2,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 27,
"instruction": "Exit the roundabout onto Cách Mạng Tháng Tám.",
"verbal_succinct_transition_instruction": "Exit the roundabout.",
"verbal_pre_transition_instruction": "Exit the roundabout onto Cách Mạng Tháng Tám.",
"verbal_post_transition_instruction": "Continue for 500 meters.",
"street_names": [
"Cách Mạng Tháng Tám"
],
"time": 35.521,
"length": 0.495,
"cost": 76.047,
"begin_shape_index": 47,
"end_shape_index": 61,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 15,
"instruction": "Turn left onto Nguyễn Thị Minh Khai.",
"verbal_transition_alert_instruction": "Turn left onto Nguyễn Thị Minh Khai.",
"verbal_succinct_transition_instruction": "Turn left.",
"verbal_pre_transition_instruction": "Turn left onto Nguyễn Thị Minh Khai.",
"verbal_post_transition_instruction": "Continue for 800 meters.",
"street_names": [
"Nguyễn Thị Minh Khai"
],
"time": 60.546,
"length": 0.825,
"cost": 109.078,
"begin_shape_index": 61,
"end_shape_index": 88,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 10,
"instruction": "Turn right onto Cao Thắng.",
"verbal_transition_alert_instruction": "Turn right onto Cao Thắng.",
"verbal_succinct_transition_instruction": "Turn right.",
"verbal_pre_transition_instruction": "Turn right onto Cao Thắng.",
"verbal_post_transition_instruction": "Continue for 800 meters.",
"street_names": [
"Cao Thắng"
],
"time": 57.229,
"length": 0.762,
"cost": 167.524,
"begin_shape_index": 88,
"end_shape_index": 114,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 10,
"instruction": "Turn right onto Đường Ðiện Biên Phủ/Dien Bien Phu Road.",
"verbal_transition_alert_instruction": "Turn right onto Đường Ðiện Biên Phủ.",
"verbal_succinct_transition_instruction": "Turn right. Then Turn right onto Đường Nguyễn Hiền.",
"verbal_pre_transition_instruction": "Turn right onto Đường Ðiện Biên Phủ, Dien Bien Phu Road. Then Turn right onto Đường Nguyễn Hiền.",
"verbal_post_transition_instruction": "Continue for 200 meters.",
"street_names": [
"Đường Ðiện Biên Phủ",
"Dien Bien Phu Road"
],
"time": 13.231,
"length": 0.172,
"cost": 35.141,
"begin_shape_index": 114,
"end_shape_index": 122,
"verbal_multi_cue": true,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 10,
"instruction": "Turn right onto Đường Nguyễn Hiền/Nguyen Hien.",
"verbal_transition_alert_instruction": "Turn right onto Đường Nguyễn Hiền.",
"verbal_succinct_transition_instruction": "Turn right. Then Turn left onto Ðường Số 1.",
"verbal_pre_transition_instruction": "Turn right onto Đường Nguyễn Hiền, Nguyen Hien. Then Turn left onto Ðường Số 1.",
"verbal_post_transition_instruction": "Continue for 50 meters.",
"street_names": [
"Đường Nguyễn Hiền",
"Nguyen Hien"
],
"time": 14.093,
"length": 0.054,
"cost": 31.906,
"begin_shape_index": 122,
"end_shape_index": 123,
"verbal_multi_cue": true,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 15,
"instruction": "Turn left onto Ðường Số 1/Duong So 1.",
"verbal_transition_alert_instruction": "Turn left onto Ðường Số 1.",
"verbal_succinct_transition_instruction": "Turn left.",
"verbal_pre_transition_instruction": "Turn left onto Ðường Số 1, Duong So 1.",
"verbal_post_transition_instruction": "Continue for 100 meters.",
"street_names": [
"Ðường Số 1",
"Duong So 1"
],
"time": 21.945,
"length": 0.145,
"cost": 57.879,
"begin_shape_index": 123,
"end_shape_index": 126,
"travel_mode": "drive",
"travel_type": "car"
},
{
"type": 6,
"instruction": "Your destination is on the left.",
"verbal_transition_alert_instruction": "Your destination will be on the left.",
"verbal_pre_transition_instruction": "Your destination is on the left.",
"time": 0.0,
"length": 0.0,
"cost": 0.0,
"begin_shape_index": 126,
"end_shape_index": 126,
"travel_mode": "drive",
"travel_type": "car"
}
],
"summary": {
"has_time_restrictions": false,
"has_toll": false,
"has_highway": false,
"has_ferry": false,
"min_lat": 10.768269,
"min_lon": 106.679017,
"max_lat": 10.773738,
"max_lon": 106.701074,
"time": 309.123,
"length": 3.71,
"cost": 782.429
},
"shape": "upnpSe|lojEcGsFMKs@z@g@]}JnLqYeXaCwB~J_L`ZkKnDiApKgDnV}Idc@aNlDqAcCppB~C|IaBzIqBdGqG~NWl@{A~CeEpJ}@tBs@xBk@|Ba@`CSlBMhAF~BJbBJhANfAXrArUfw@~CrEMtQcA~m@I~E_@pPs@v[mBhaAEzAk@nEgAlEgAz@u@nAi@bByClCcCtCkBvDg[zq@cA~BaBvDiPp_@cK~T_BpDmAnCgi@blAoFhM}C`FyBjE~CfClBzAxHzHzThSvPlO~CrCjWrUjS|QfR|PnGxFxDdDfErD|ArAtApAjVbUhIpHzK`K~AzA|NfN`EzDfCbC`U`TdTfSxLpLlj@vh@vCtCzC`DoIvKJrCaDvD_P`SoNdQyLtNiOxQ{[f`@_DxDcBvBkLnNeApAqGtHaFfGgSnV}FdH_HpIcJdLuG~HgVfZeLlNmAxAaBfB_FjGcV`YiCvC}@iAs@{@wQiU_CsCaFoGuFcHeLuNgGwHxZyJaLui@sBoJsFkX"
}
],
"summary": {
"has_time_restrictions": false,
"has_toll": false,
"has_highway": false,
"has_ferry": false,
"min_lat": 10.768269,
"min_lon": 106.679017,
"max_lat": 10.773738,
"max_lon": 106.701074,
"time": 309.123,
"length": 3.71,
"cost": 782.429
},
"status_message": "Found route between points",
"status": 0,
"units": "kilometers",
"language": "en-US"
},
"id": "valhalla_directions"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment