MapMatchedLocation constructor
- GeoCoordinates coordinates,
- double? bearingInDegrees
Creates a new instance.
coordinatesThe geographic coordinates of the map-matched location.bearingInDegreesThe bearing orientation points to the direction of travel, and has the same angle as the street where it is matched to. Therefore, it must not necessarily be the same as the bearing of a location source. Starts at 0 in the geographic north and rotates in a clockwise direction around the compass. It means that for going north it's equal to 0, for northeast it's equal to 45, for east it's equal to 90, and so on. If it cannot be determined, the value isnull. Otherwise, it is guaranteed to be in the range [0, 360).
Implementation
MapMatchedLocation(this.coordinates, this.bearingInDegrees)
: segmentReference = SegmentReference.withDefaults(), segmentOffsetInCentimeters = 0, confidence = 0.0, isDrivingInTheWrongWay = false, horizontalAccuracyInMeters = null, speedInMetersPerSecond = null, timestamp = null;