Home > @magiclane/maps-sdk > TimeDistanceCoordinate > toJson

TimeDistanceCoordinate.toJson() method

Converts the TimeDistanceCoordinate to JSON format

Signature:

toJson(): {
        coords: any;
        distance: number;
        stamp: number;
    };

Returns:

{ coords: any; distance: number; stamp: number; }

The JSON representation of the coordinate