Geometry Library

encoding クラス

google.maps.geometry.encoding クラス

ポリラインのエンコード/デコード用のユーティリティ。

const {encoding} = await google.maps.importLibrary("geometry") を呼び出してアクセスします。
Maps JavaScript API のライブラリをご覧ください。

decodePath
decodePath(encodedPath)
パラメータ: 
  • encodedPathstring
戻り値:  Array<LatLng>
エンコードされたパスの文字列を一連の LatLng にデコードします。
encodePath
encodePath(path)
パラメータ: