Get Latitude Longitude after x kilometer on Google Map without destination?
问题 I am creating an Android app which requires finding a coordinate on the same route after X kilometers. I have two coordinates x1,y1 & x2,y2 on a road. Now, my requirement is to find coordinate x3,y3 after some 3 kilometers (i.e., coordinate after x2,y2 not between x1,y1 & x2,y2 ) on the same road. How can this be achieved ? 回答1: If you know the bearing, you can calculate the destination coordinate. Sample Code: private LatLng getDestinationPoint(LatLng source, double brng, double dist) { dist