invoke
suspend operator fun invoke(lat: Double, lng: Double, id: Double?, trackId: Int, position: InsertPosition?, updateUi: Boolean = false)
Creates and adds a new waypoint to the given track.
Parameters
lat
The latitude coordinate of the waypoint.
lng
The longitude coordinate of the waypoint.
idx
The index of the waypoint within the track.
track Id
The ID of the track to which this waypoint will be added.
update Ui
/!\ using updateUi will reload entire track, it may/will reload track using taking into account the viewport (DouglasPucker)