douejuan9162
douejuan9162
2011-08-26 06:38

如何使用Google map api在Google地图上绘制路线?

已采纳

Using my android app, I am taking the current location of the user in a regular interval and displaying it on a Google map as marker using,

$map->addMarker($row['lat'],$row['lng'],$isclickable,$title,$info);

Please help me draw a route joining these markers.

One more thing, I am using Location managers Network provider for fetching the coordinates, so most of the points(latitude, longitude) are off the road. Is there any way to get it properly on the road?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答