Is there a route in Google map from point A to point B. Is it possible to get the coordinates of points every 100 meters from this route?

    1 answer 1

    The route is a polyline, an array of segments. Each segment has coordinates of the beginning and end.

    Navigation features :

    If the direction angle, the starting point and the distance of the path (in meters) are known, the destination coordinates can be calculated using the computeOffset () method.

    and

    The direction angle for two points can be calculated using the computeHeading () method, passing it two LatLng objects with the coordinates from (source point) and to (destination point).

    That is, there are two points (the beginning of the segment, the end of the segment), the direction angle for them is calculated using computeHeading, and the distance from the beginning of the segment to the point located at a distance of 100 meters from it - using computeOffset.