@stadiamaps/api
Version:
Stadia Maps Geospatial APIs
65 lines • 2.14 kB
TypeScript
/**
* 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 Speeds
*/
export interface Speeds {
/**
* Does this edge have predicted (historical) speed records?
* @type {boolean}
* @memberof Speeds
*/
predicted?: boolean;
/**
* Speed when there is no traffic, in kph.
* @type {number}
* @memberof Speeds
*/
constrainedFlow?: number;
/**
* Speed when there is heavy traffic, in kph.
* @type {number}
* @memberof Speeds
*/
freeFlow?: number;
/**
* The type of speed which is used when setting default speeds. When `tagged`, the explicit `max_speed` tags from OpenStreetMap are being used. When `classified`, the values are being inferred from the highway classification.
* @type {string}
* @memberof Speeds
*/
type?: SpeedsTypeEnum;
/**
* The default speed used for calculations. NOTE: Values greater than 250 are used for special cases and should not be treated as literal.
* @type {number}
* @memberof Speeds
*/
_default?: number;
}
/**
* @export
*/
export declare const SpeedsTypeEnum: {
readonly Classified: "classified";
readonly Tagged: "tagged";
};
export type SpeedsTypeEnum = (typeof SpeedsTypeEnum)[keyof typeof SpeedsTypeEnum];
/**
* Check if a given object implements the Speeds interface.
*/
export declare function instanceOfSpeeds(value: object): value is Speeds;
export declare function SpeedsFromJSON(json: any): Speeds;
export declare function SpeedsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Speeds;
export declare function SpeedsToJSON(json: any): Speeds;
export declare function SpeedsToJSONTyped(value?: Speeds | null, ignoreDiscriminator?: boolean): any;
//# sourceMappingURL=Speeds.d.ts.map