leaflet routimg machine - lical osr
This commit is contained in:
@@ -3,7 +3,7 @@ export interface CtrlAttrs {
|
||||
}
|
||||
|
||||
|
||||
export type SimulationCommands = 'start' | 'pause' | 'resume' | 'clear' | 'end' | 'add';
|
||||
export type SimulationCommands = 'start' | 'pause' | 'resume' | 'clear' | 'end' | 'add' | 'test-mode';
|
||||
|
||||
export type DeviceCommands = 'start_tunnel' | 'stop_tunnel' | 'shutdown' | 'reboot';
|
||||
|
||||
@@ -55,15 +55,14 @@ export interface ServerToClientEvents {
|
||||
fmf_update: (d: FindMyUpdate) => void;
|
||||
}
|
||||
|
||||
interface SimulationStatus {
|
||||
export interface SimulationStatus {
|
||||
loc_id: string;
|
||||
status: boolean;
|
||||
data: {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
start: string;
|
||||
end?: string;
|
||||
next_move?: number;
|
||||
};
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
start: string;
|
||||
end?: string;
|
||||
next_move?: number;
|
||||
}
|
||||
|
||||
export interface StatusUpdate {
|
||||
@@ -256,3 +255,36 @@ export interface NextLocation {
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface NominatimReverseResponse {
|
||||
place_id: number
|
||||
licence: string
|
||||
osm_type: string
|
||||
osm_id: number
|
||||
lat: string
|
||||
lon: string
|
||||
class: string
|
||||
type: string
|
||||
place_rank: number
|
||||
importance: number
|
||||
addresstype: string
|
||||
name: string
|
||||
display_name: string
|
||||
address: NominatimAddress
|
||||
boundingbox: string[]
|
||||
}
|
||||
|
||||
export interface NominatimAddress {
|
||||
house_number: string;
|
||||
road: string;
|
||||
village?: string;
|
||||
city? : string;
|
||||
county: string;
|
||||
state: string;
|
||||
'ISO3166-2-lvl4': string;
|
||||
postcode: string;
|
||||
country: string;
|
||||
country_code: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user