Files
local-analyzer-angular/src/app/interfaces/photon.ts
2022-03-26 20:11:52 +01:00

33 lines
592 B
TypeScript

interface PhotonGeometry {
coordinates: Array<number>;
type?: string;
}
interface PhotonProperties {
osm_id?: number;
osm_type?: string;
extent?: Array<number>;
country?: string;
osm_key?: "place";
countrycode?: string;
osm_value?: string;
name?: string;
type?: string;
postcode?: string;
city?: string;
housenumber?: number;
street?: string;
state?: string;
}
export interface Photon {
properties: PhotonProperties;
geometry?: PhotonGeometry;
type?: string;
}
export interface PhotonFeatureCollection {
features?: Array<Photon>;
type?: string;
}