Unknown order of nested routes
So i have a couple of thoughts on how to do this, but neither of them seems optimal.
tldr; When someone goes to
I need to have nested routes, let's call them filters. The filters are time, latitude and longitude. Each filter is based on ranges, so time can be 7-15 or 15-23 and latitude can be 40-50 or 50-60 (similar for longitude).
So examples of routes:
etc etc, so by either one of the filters, but also you can omit some and have the other.
Based on the route, i need to have the resulting rendered list. I was thinking to have a shared layout and in the filters checkbox component have a v-if based on the route params but...
Because the order is not always the same (for instance you can have time and lat, or just lat without the time) i cannot do it like
because lat is not nested in time (but can be). What is the correct way of dealing with these types of nested routes?
tldr; When someone goes to
/time-7-15/latitude-40-50/ the page should render a list of all objects that have values in that range.I need to have nested routes, let's call them filters. The filters are time, latitude and longitude. Each filter is based on ranges, so time can be 7-15 or 15-23 and latitude can be 40-50 or 50-60 (similar for longitude).
So examples of routes:
/time-7-15 or /time-7-15/latitude-40-50 or /latitude-40-50 or /latitude-50-60/longitude-20-30 or/time-15-23/latitude-40-50/longitude-20-30etc etc, so by either one of the filters, but also you can omit some and have the other.
Based on the route, i need to have the resulting rendered list. I was thinking to have a shared layout and in the filters checkbox component have a v-if based on the route params but...
Because the order is not always the same (for instance you can have time and lat, or just lat without the time) i cannot do it like
because lat is not nested in time (but can be). What is the correct way of dealing with these types of nested routes?
