BuildTerrainProfile class Routes & Navigation

Preferences regarding building terrain profile

These preferences influence whether terrain profile data is calculated. Terrain profile data includes elevation changes along the route, which can be useful for activities like biking or hiking.

These settings are required for the Route.terrainProfile to be populated in the route response.

See also:

  • RoutePreferences - Holds the overall routing preferences including transport mode and profiles.
  • Route.terrainProfile - Contains the terrain profile data for a route.
  • TerrainProfile - Represents the terrain profile data along a route.

Constructors

BuildTerrainProfile({bool enable = false, double minVariation = -1})
const
BuildTerrainProfile.fromJson(Map<String, dynamic> json)
factory

Properties

enable bool
Enable / disable terrain profile build.
final
hashCode int
The hash code for this object.
no setteroverride
minVariation double
The minimum elevation variation to be registered for total up / total down statistics.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant BuildTerrainProfile other) bool
The equality operator.
override