Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to a multi region setup on the Verkehrswende-Page? #2

Open
tordans opened this issue Apr 4, 2024 · 11 comments
Open

Migrate to a multi region setup on the Verkehrswende-Page? #2

tordans opened this issue Apr 4, 2024 · 11 comments

Comments

@tordans
Copy link

tordans commented Apr 4, 2024

Following #1 I was wondering, if we should set up a different system to have multiple cities on the CQI page at https://www.osm-verkehrswende.org/cqi/map/ .
Mainly, because it will be a while a German-Wide CQI is ready and even than this will not help Vienna.

We actually have an example for such a system at https://parkraum.osm-verkehrswende.org/ where we also have regions.

The way I would set it up is, to have the Map Menu show a submenu for each Region that is supported.
And in the code, we have an array that gives information on the region, something like…

[{
  pmtiles: 'URL',
  updatedAt: 'DATE',
  contactUrl: 'GITHUBISSUEURL'
}]

The GITHUBISSUEURL could be an issue by the person that manages the pmtiles, so there is an easy way to contact the person about details or updates…

--

What do you think @Findus23 and @ckrey?

@ckrey
Copy link

ckrey commented Apr 4, 2024

I think this is a good idea. I would like to provide a hosted version of the pmtiles.

I noticed @Findus23 uses a different and self hosted basemap. Not sure if we need this. If so this would be an additional configuration parameter.

@ckrey
Copy link

ckrey commented Apr 4, 2024

... and we will probably need a map center, initial zoom level, and map boundaries for each city/region:

examples:

  • longitude: 6.688,
  • latitude: 51.172,
  • zoom: 11.5,
  • box: [6.562976, 51.117101, 6.810168 , 51.278454]

my tiles for Neuss are currently here:
https://ckrey.de/neuss-cycling-quality/neuss.pmtiles

@tordans
Copy link
Author

tordans commented Apr 8, 2024

Noch ein Gedanke: Vielleicht ist es auch besser, wenn ich ein pmtiles für alle Gebiete erstelle. Dann müsste ich immer die aktualisierten GeoJSON bekommen um das eine pmtile zu erstellen. (In dem pmtile wären dann unterschiedliche Daten-Stände).

Vielleicht sollten wir auch das Datum der Daten-Generierung einfach direkt in Alex Script an die Feature schreiben lassen, dann haben wir diese Config schonmal aus dem Weg. Ist zwar etwas overhead, aber überschaubar. 🤔

@eMerzh
Copy link

eMerzh commented Apr 11, 2024

hey here 👋

i used the neuss fork, so i didn't saw your issues here,
but i'm doing a "fork" in belgium too ..
the main modifications ATM was basic changes likes map center, & stuff
then I change the strings to be in english (but at the end it will probably be published in french :p it was to be able to understand anything 😅 )

But i'm currently look at changing a bit the missing layers & stuff...

anyways, i'm interested in a global main project ...
Maybe we can use something similar to https://github.com/EqualStreetNames which is managed by an organisation but has many sub projects per city , but the UI & stuff is still managed in the main project

@eMerzh
Copy link

eMerzh commented Apr 17, 2024

anyone willing to take that over?

In fact i was thinking as ckrey, that update pmtiles + bounder should do it ... we could even do that in one repo or smth.
and maybe some translations 😅

@tordans
Copy link
Author

tordans commented Apr 18, 2024

anyways, i'm interested in a global main project ...
Maybe we can use something similar to https://github.com/EqualStreetNames which is managed by an organisation but has many sub projects per city , but the UI & stuff is still managed in the main project

This would be possible, bit at the same time be more work (for me and maintainers).

I wold prefer to add it all to the main page at https://www.osm-verkehrswende.org/cqi/ for now, similar to https://parkraum.osm-verkehrswende.org/

@eMerzh
Copy link

eMerzh commented Apr 18, 2024

@tordans i understand... but what i feel a bit sad is that it's really Berlin / German only oriented there 🤔

@tordans
Copy link
Author

tordans commented Apr 18, 2024

The script in itself is only tested for Germany right now. But the Berlin Fokus would go away once we have other regions. I can translate most of the general content to English.

But I can also link to other pages of course that are self hosted and separate. But I will not habe the time to maintain a separate map project for that...

@eMerzh
Copy link

eMerzh commented Apr 18, 2024

I have a version of this for Braine-l'Alleud in belgium.. not yet on GH, because i'm waiting to see where i can attach it

it's currently deployed here
https://bmaron.net/bla-cycling-quality/

@Findus23
Copy link
Owner

Hi everyone!

I think for now I'd like to keep vienna-cycling-quality.lw1.at it's own separate thing, so I can experiment with other ideas.
That said I really don't want to keep you from expanding the project to other cities and if you are interested I can publish the Vienna geojson and pmtiles at a static URL.

I noticed @Findus23 uses a different and self hosted basemap. Not sure if we need this. If so this would be an additional configuration parameter.

I changed that just so I don't have to think about running out of maptiler requests (even though that seems really unlikely) or having the site do requests to other domains and the privacy implications that contains.

@tordans
Copy link
Author

tordans commented Apr 23, 2024

FYI: For now, I added https://www.osm-verkehrswende.org/cqi/regions/ to list all the existing regions and add some guidance on how to setup your own. Please feel free to improve and add to this page via PRs 🙏.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants