Just ran into this case and wondering if it might be useful to others -
It might be handy to add a borders method on the state object that returns a list of states that border the state, e.g. <State:California>.borders (or another more appropriate method name) would return [<State:Nevada>, <State:Oregon>, <State:Arizona>]. For now I'll have to do a geospatial query to find the bordering states but it might be computationally expensive
Just ran into this case and wondering if it might be useful to others -
It might be handy to add a
bordersmethod on the state object that returns a list of states that border the state, e.g.<State:California>.borders(or another more appropriate method name) would return[<State:Nevada>, <State:Oregon>, <State:Arizona>]. For now I'll have to do a geospatial query to find the bordering states but it might be computationally expensive