localgovdrupal / localgov

Installation profile for the LocalGov Drupal distribution.
GNU General Public License v2.0
83 stars 19 forks source link

Is it a good idea to add multiple geos to a directory venue? #446

Open willguv opened 2 years ago

willguv commented 2 years ago

Councils in charge of Highways need to publish Traffic Regulation Orders, generally pages of PDFs like this

https://www.cumbria.gov.uk/roads-transport/highways-pavements/highways/notices.asp

The user need is unclear to us - possibly statutory - and we're investigating

While we're waiting, we've created a directory channel with sample directory venues

https://cumbria-stage.codeenigma.net/parking-streets-and-transport/streets-roads-and-pavements/road-maintenance-closures-and-improvements/current-traffic-regulation-orders

This entry has multiple locations, but we're only able to show one

https://cumbria-stage.codeenigma.net/parking-streets-and-transport/streets-roads-and-pavements/road-maintenance-closures-and-improvements/current-traffic-regulation-orders/appleby-horse-fair-traffic-regulation-order

Here are some of the locations

https://www.cumbria.gov.uk/elibrary/Content/Internet/544/3887/17880/18071/44678141217.pdf

https://www.cumbria.gov.uk/elibrary/Content/Internet/544/3887/17880/18071/4467814842.pdf

https://www.cumbria.gov.uk/elibrary/Content/Internet/544/3887/17880/18071/44678141330.pdf

https://www.cumbria.gov.uk/elibrary/Content/Internet/544/3887/17880/18071/44678141450.pdf

They don't necessary need to be areas, pins would suffice

What does the technical group suggest?

finnlewis commented 2 years ago

It would be good to get other people's thoughts on this: @ekes @stephen-cox @andybroomfield @Adnan-cds ?

ekes commented 2 years ago

Technically it's:

andybroomfield commented 2 years ago

Is it possible / wise to include multiple locations on the Geo element itself? We have been thinking simmilar issue, but right now it will display multplie geos / maps so you need to do a specilist view to combine them

Geo areas now power the Parking zones map but thats a specilist use case.

ekes commented 2 years ago

Is it possible / wise to include multiple locations on the Geo element itself?

Not for the address one, obviously. But the storage, like the polygon, should be able to store multiple polygons, or points.

Difference would be:

finnlewis commented 2 years ago

@danchamp @willguv have you tried to configure the localgov_location field along the lines of @ekes suggestion above?

I'm just trying to work out what's preventing you from configuring the directory entry how you need.

danchamp commented 2 years ago

@finnlewis I did a quick test with multiple locations against a directory venue, I think only the first rendered on the map, and they were presented stacked in the directory venue page with a map per location.

It's a combination of confidence in the approach (is there a better way?) and lack of ability (once we add support for multiple locations, how do we amend the rendering?) that's preventing us moving forwards.

ekes commented 2 years ago

dan:

They were presented stacked in the directory venue page with a map per location.

ekes:

Adding a display widget (probably a embedded view) that displays one map with all geo entities on it.

I'm pretty sure when I did this in D7 I literally just made a view with the argument of the node that pulled all the locations and mapped them, and then put it on the node.

If it's a common requirement we could make a proper view formatter out of it.