Google マップ サービスから座標を取得できることはわかっています。しかし、ソースと目的地の座標を取得して Google マップ サービスに送信し、すべての座標を取得したらルートを描画するにはどうすればよいでしょうか?
編集:
私はこのようなものを持っています:
bmp = new Bitmap(getWidth(), getHeight());
bmp.createAlpha(Bitmap.ALPHA_BITDEPTH_8BPP);
Graphics g = Graphics.create(bmp);
int x1 = -1, y1 = -1, x2 = -1, y2 = -1;
XYPoint point0 = new XYPoint();
convertWorldToField(mPoints[0], point0);
x1=point0.x;
y1=point0.y;
g.setColor(Color.BLUE);
g.fillEllipse(x1, y1, x1, y1 + 1, x1 + 1, y1, 0, 360);
for (int i = 0; i < mPoints.length; i++) {
XYPoint point = new XYPoint();
convertWorldToField(mPoints[i], point);
x2 = point.x;
y2 = point.y;
g.setColor(Color.GREEN);
g.drawLine(x1, y1, x2, y2);
g.fillEllipse(x1, y1, x1, y1 + 1, x1 + 1, y1, 0, 360);
if(i == mPoints.length-1)
{
g.setColor(Color.YELLOWGREEN);
g.fillEllipse(x1, y1, x1, y1 + 1, x1 + 1, y1, 0, 360);
}
x1 = x2;
y1 = y2;
}