UNPKG

@stadiamaps/api

Version:
53 lines 2.11 kB
/** * Stadia Maps Geospatial APIs * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications. * * The version of the OpenAPI document: 10.1.2 * Contact: support@stadiamaps.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MatrixDistance */ export interface MatrixDistance { /** * The distance (in `units`) between the location in `sources` at `from_index` and the location in `targets` at `to_index`. * This value may be 0 in the case that the source and destination are the same, and `null` if no route was found between the locations. * @type {number} * @memberof MatrixDistance */ distance: number | null; /** * The travel time (in seconds) between the location in `sources` at `from_index` and the location in `targets` at `to_index`. * This value may be 0 in the case that the source and destination are the same, and `null` if no route was found between the locations. * @type {number} * @memberof MatrixDistance */ time: number | null; /** * The index of the start location in the `sources` array. * @type {number} * @memberof MatrixDistance */ fromIndex: number; /** * The index of the end location in the `targets` array. * @type {number} * @memberof MatrixDistance */ toIndex: number; } /** * Check if a given object implements the MatrixDistance interface. */ export declare function instanceOfMatrixDistance(value: object): value is MatrixDistance; export declare function MatrixDistanceFromJSON(json: any): MatrixDistance; export declare function MatrixDistanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatrixDistance; export declare function MatrixDistanceToJSON(json: any): MatrixDistance; export declare function MatrixDistanceToJSONTyped(value?: MatrixDistance | null, ignoreDiscriminator?: boolean): any; //# sourceMappingURL=MatrixDistance.d.ts.map