GeoPath<T extends GeoLatLng> class
Null safety
GeoPath of GeoLatLng values
If you use GeoPath with Generics - check out this sample:
class Location extends LatLng {
....
}
final Path<Location> path = new Path<Location>(factory: locationFactory);
Constructors
- GeoPath({LatLngFactory factory = _defaultLatLngFactory})
-
GeoPath.from(Iterable<
T> coordinates, {LatLngFactory factory = _defaultLatLngFactory})
Properties
- center → GeoLatLng
-
Calculates the center of a collection of geo coordinates
read-only
-
coordinates
→ List<
T> -
read-only
- distance → num
-
Sums up all the distances on the path
read-only
- first → T
-
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- last → T
-
read-only
- nrOfCoordinates → int
-
Returns the number of coordinates
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
add(
T value) → void -
Add new
T
coordinate to path -
addAll(
List< T> values) → void - Add all coordinates from List<T> to path
-
clear(
) → void - Removes all coordinates from path
-
equalize(
num distanceInMeterPerTime, {bool smoothPath = true}) → GeoPath< GeoLatLng> - Splits the path into even sections.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → T -
Returns the GeoLatLng coordinate form
index