2023-01-26 07:59:33 +00:00
|
|
|
interface BicycleParkingInterface {
|
|
|
|
amenity?: "bicycle_parking";
|
|
|
|
capacity?: string;
|
|
|
|
covered?: "yes" | "no";
|
|
|
|
lit?: "yes" | "no";
|
|
|
|
bicycle_parking?:
|
2023-01-26 21:38:41 +00:00
|
|
|
| "stands"
|
|
|
|
| "wall_loops"
|
|
|
|
| "rack"
|
|
|
|
| "safe_loops"
|
|
|
|
| "shed"
|
|
|
|
| "bollard"
|
|
|
|
| "lockers"
|
|
|
|
| "building";
|
2023-01-26 07:59:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RawOverpassNode {
|
|
|
|
type: "node";
|
|
|
|
id: number;
|
|
|
|
lat: number;
|
|
|
|
lon: number;
|
|
|
|
tags?: BicycleParkingInterface;
|
|
|
|
}
|
|
|
|
export interface RawOverpassWay {
|
|
|
|
type: "way";
|
|
|
|
id: number;
|
|
|
|
nodes: number[],
|
|
|
|
tags?: BicycleParkingInterface;
|
|
|
|
}
|
|
|
|
|
2023-01-26 21:38:41 +00:00
|
|
|
export type OverpassResponse = {
|
|
|
|
elements: (RawOverpassNode | RawOverpassWay)[]
|
|
|
|
};
|
2023-01-26 07:59:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
export type LoadingStatusType = "loading" | "success" | "429error" | "unknownerror";
|