Home > @magiclane/maps-sdk > TimeDistanceCoordinate > fromJson
TimeDistanceCoordinate.fromJson() method
Creates a TimeDistanceCoordinate from JSON data
Signature:
static fromJson(json: {
coords: any;
distance: number;
stamp: number;
}): TimeDistanceCoordinate;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
json |
{ coords: any; distance: number; stamp: number; } |
The JSON data to parse |
json properties:
- coords: any
- distance: number
- stamp: number
Returns:
A new TimeDistanceCoordinate instance