CanyoneerApp-Archived / api

1 stars 0 forks source link

Classify freeform GeoJSON features into structured data #28

Open lucaswoj opened 11 months ago

lucaswoj commented 11 months ago

As it stands, users can upload any KML for any canyon. Many KMLs have separate tracks for approach, descent, exit, and shuttle but there is no consistent formatting. Also, sometimes one KML file has tracks for multiple canyons.

We would like to classify all GeoJSON features such that

For styling reasons, we prefer to keep all features in the same layer, or maybe split LineStrings from Points.

interface GeoJSONRouteProperties {
  name: string;
  description: string;
  type: 'approach' | 'descent' | 'exit' | 'shuttle' | 'waypoint' | 'unknown';
}
lucaswoj commented 11 months ago

We may need to use a machine learning classifier to do this in the general case. Coming up with heuristics based on route length & name may get us pretty far.