Creates preferences for terrain profile building.
Optionaloptions: { enable?: boolean; minVariation?: number }Configuration options
Optionalenable?: booleanEnable/disable terrain profile build. Default is false
OptionalminVariation?: numberThe minimum elevation variation to be registered for total up/total down statistics.
A value < 0 lets the SDK choose a proper value. Default is -1
ReadonlyenableEnable/disable terrain profile build.
The terrain profile will be built only if this is set to true.
Default is false
ReadonlyminThe minimum elevation variation to be registered for total up/total down statistics.
A value < 0 lets the SDK choose a proper value.
Default is -1
Get hash code for use in maps/sets
InternalSerializes this instance to a JSON-compatible map.
Used internally, not intended for direct use by consumers. The map structure may change without notice.
JSON-compatible map
StaticfromInternalCreates an instance from a JSON-compatible map.
Used internally, not intended for direct use by consumers. The map structure may change without notice.
JSON-compatible map
A new BuildTerrainProfile instance
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.