scripts/mapping_geojson_to_osm_tags/mappings/mapping-config.type.ts

37 lines
790 B
TypeScript

interface GeoJsonGeometry {
type:string,
coordinates:Array<number>,
}
interface GeoJsonProperties {
[key:string]: any,
}
interface GeoJsonFeature {
type:string,
geometry:GeoJsonGeometry,
properties:GeoJsonProperties,
}
export interface FeatureCollection{
type:string,
features:Array<GeoJsonFeature>,
}
export interface FeaturePropertyMappingConfigType{
[key:string]: any,
key_converted?:string,
truthy_value?:any,
transformer?:Function,
}
export interface BoundingBoxCoordinatesType{
xMin: number,
xMax: number,
yMin: number,
yMax: number,
}
export default interface MappingConfigType{
config_name: string,
config_author: string,
default_properties_of_point: object,
tags: FeaturePropertyMappingConfigType
}