menu
turf package
documentation
destination.dart
destination.dart
dark_mode
light_mode
destination
library
Functions
calculateRhumbDestination
(
Position
origin
,
num
distance
,
num
bearing
, [
num
radius
=
earthRadius
])
→
Position
destination
(
Point
origin
,
num
distance
,
num
bearing
, [
Unit
unit
=
Unit.kilometers
])
→
Point
Takes a
Point
and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers; and bearing in degrees. This uses the
Haversine formula
to account for global curvature. For example:
destinationRaw
(
Position
origin
,
num
distance
,
num
bearing
, [
Unit
unit
=
Unit.kilometers
])
→
Position
rhumbDestination
(
Point
origin
,
num
distance
,
num
bearing
, {
Unit
?
unit
=
Unit.kilometers
,
Map
<
String
,
dynamic
>
?
properties
})
→
Feature
<
Point
>
Returns the destination
Point
having travelled the given distance along a Rhumb line from the origin Point with the (varant) given bearing.
turf package
documentation
destination.dart
turf
package
Libraries
along
area
bbox
bbox_polygon
bearing
center
centroid
clean_coords
clusters
destination
distance
explode
extensions
helpers
length
line_segment
line_to_polygon
meta
midpoint
nearest_point
nearest_point_on_line
polygon_smooth
polygon_to_line
polyline
transform
truncate
turf
turf_destination library