ElevationData class

Class representing 2D point enriched it with elevation from a variety of datasets.

Has bad ElevationData.fromJson code because of inconsistency of Elevation data in OpenRouteService API.

Includes its coordinates, timestamp, attribution, type and version of the data.

https://openrouteservice.org/dev/#/api-docs/elevation/point/get

Constructors

ElevationData({required List<ORSCoordinate> coordinates, required int timestamp, String attribution = 'service by https://openrouteservice.org | data by https://srtm.csi.cgiar.org', String type = 'point', String version = '0.2.1'})
const
ElevationData.fromJson(Map<String, dynamic> json)
Construct Elevation data from JSON as per the schema in the api documentation.
factory

Properties

attribution String
Attribution to the source the elevation data has been extracted from.
final
coordinates List<ORSCoordinate>
The coordinates of the elevation Geometry data. Lat, Lng, Alt?
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp int
Timestamp when the elevation data was extracted.
final
type String
The type of the elevation Geometry data.
final
version String
Version of the elevation data.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Construct JSON from the elevation data, as per the schema in the api documentation.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override