Drawing a line/path on Google Maps

后端 未结 13 820
执笔经年
执笔经年 2020-11-22 05:23

I\'ve been busy for a long time finding out how to draw a line between two (GPS) points on the map in HelloMapView but with no luck.

Could anyone please tell me how

相关标签:
13条回答
  • 2020-11-22 05:48

    Simply get route form this url and do next ...

    Origin ---> starting point latitude & longitude

    Destination---> ending point latitude & longitude

    here i have put origin as Delhi latitude and longitude & destination as chandigarh latitude longitude

    https://maps.googleapis.com/maps/api/directions/json?origin=28.704060,77.102493&destination=30.733315,76.779419&sensor=false&key="PUT YOUR MAP API KEY"

    0 讨论(0)
提交回复
热议问题