portal icon indicating copy to clipboard operation
portal copied to clipboard

Associate tracks to regions

Open opatut opened this issue 4 years ago • 5 comments

Let's provide a way for admins to manage regions, as a list of geo boundaries with names and IDs.

Then detect which track is in which region. This should of course be updated when the track changes, or when a region is edited.

I'm thinking of very high level regions for now (Stuttgart, Hamburg, Berlin, ...) and not too many overlapping/hierarchical regions.

This way we'll be able to later filter by region, eg. for exports, or simply for finding other users or similar tracks.

opatut avatar Feb 17 '21 21:02 opatut

Can this region areas be derived from some data already available in/via open street map? (Not sure if such a thing exists but I would expect this)

amandel avatar Feb 17 '21 22:02 amandel

Sure it does, e.g. here is the boundary of Stuttgart.

I would not automatically create those, but we sure can make the UI for creating regions fetch this information, so you only have to search for e.g. "Stuttgart" and get a suggested region displayed that you just need to confirm.

opatut avatar Feb 18 '21 08:02 opatut

Cool, does this also include an hierarchy so that we could (auto) label the tracks with "city:Stuttgart" "state:Baden-Württemberg" "country:Germany" might be "county:Stuttgart" / "district:Heslach". No sure - I bet you had a different use case in mind.

amandel avatar Feb 18 '21 09:02 amandel

The problem with those regions is that a track can span multiple of them. That's why I don't want to find all global regions across hierarchy levels that contain a track, but rather just limit it to some OBS-ecosystem relevant regions, such as the metropolitan area (Stuttgart, Hambrug, Berlin, ...) for those that are active at all. That saves computational efforts to find all intersections between the track and the regions, because the number of regions will be much smaller.

opatut avatar Feb 18 '21 09:02 opatut

Related to #112.

opatut avatar Jan 19 '22 19:01 opatut