RouterModel |
The RouterModel is responsible for drawing complex routes on the map. A route can consist of a combination of freehand lines, polylines and Google driving or walking routes. You can add waypoints to segment the route in parts. For each segment, you can specify the speed. You can also delete a segment, in which case the user is required to draw an alternative route between the two segments (except when we are dealing with the first or last segment). The default is a straight line. In addition, you can specify the start and finish time of each segment. For each waypoint, you can specify the arrival and departure time, which must match the finish and start time of the corresponding segments, naturally, and, optionally, its altitude. |