我正在使用Google maps getDirections api。我使用JSON類型的webservice從Google webservice獲取信息。 Here is the sample來自webservice的JSON輸出。我正在使用Java來處理結果。我不知道如何讀取折線數據。我在下面給出了一段折線對象。Google maps getdirections api - polyline
"polyline": {
"points": "[email protected]",
"levels": "B?B"
},
文檔說
折線包含對象保持編碼點和水平表示所述生成路線的近似(平滑)路徑的陣列。
如何讀取Java中的編碼數據。 我需要解碼點和級別。一個示例Java代碼片段可以幫助我很多。謝謝。