Google지도를 사용하여 두 지점 사이의 주 경로를 얻습니다. 대안 (3)을 사용하면 각 대안에 단계가 포함되어 있으므로 모든 단계의 개요 폴리 라인 결과가 생성됩니다. 그래서지도에서이 3 개의 폴리 라인을 그려서 주요 경로와 대안을 확인하고 싶습니다. 어떻게해야하는지 알고 있습니까?Google Maps API : 폴리 라인 포인트를 사용하여 경로를 그립니다.
이것은 당신의 경로를 선언하고 다음과 같이 폴리 라인 선언해야
"overview_polyline": {
"points": "uiyqBfb~zQgGwAgCtM}[email protected]_BzSiJxZcBfHuS~NqK`[email protected]{fAoDcW~BmEbBeqAmIaEoBgB{KB}J}[email protected]}EhG{GjAgVcDsN{[email protected]|FaAvOiE|Va`@[email protected]}Jh][email protected]@fGdDxE|O~E~ZzH`ThQtdA|jA|[email protected][iEd`@[email protected]@[email protected]~VnOn][email protected]@|[email protected]_CtBqI?eDhAeGeDsIRyK`IqIfIkPtEuUbNcLpOuPpZ]rHpHtQpLnOlEvIEpJfId[[email protected]@[email protected]@yNnGk`@rVsLfLm|@v|@_VxKgZ`XmR~VeH~^[email protected][email protected]}[email protected]`YqBt[[email protected]|[email protected]@pG{@[email protected]}PhBUhIcD`[email protected]^|Ck}@tFcMjDiP~GeN`RcF]}[email protected]{BvAoGdCsKpFmOgEuB\\eEjKjB~GwGvBiDsDgEyGwD`[email protected]{@rC_CJuHoIiFEgBwC{[email protected]@[email protected]@mCxD{DkAwMrDcJrF}IhSsDbB{D{AyY_CoK~AuP`@[email protected]}[email protected][email protected]@[email protected]}CmHG{KiCyO}P}IgNkNaUoKkCkDYiB{[email protected]}PY{KaEeIBqTfEiEeEgDkLyUyIkT}BoP{DyGiGwHiW{Is^kOiScLmTeIqGsPcTqD_FgMaDwNqMwOuVqHy\\[email protected]_CiBoSpDyHBkH}Kc[kTq[mPyYiOyVyR_Sc\\{ZsRwfA{][email protected]~AqAhEwNgDiNmFgL~H}[email protected]{DRsFqG_FoA}[email protected]}[email protected]@w[cCwH~AeGeFeLcUD_LkAiDwUaJuMXaQuGyBgB|LkLhL{[email protected]}[email protected]{[email protected]]{[email protected]{BxCwC[[email protected]}[email protected]@eIrF{@oG}[email protected]{B{[email protected]@mD\\eMkHkFaJqFkEiPN}HrBvKdEzExA|FJJ"
},
관련 질문 : [구글은 호수, 강, 산을 통과하는 정적지도 폴리 라인을 매핑 (HTTP ://stackoverflow.com/questions/32255380/google-maps-static-map-polyline- passinging-throug h-lakes-river-mountains) – geocodezip