-
-
Notifications
You must be signed in to change notification settings - Fork 102
[WIP] Rework maps app #15
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
Conversation
|
Also cc @eneiluj of GpxPod and GpxEdit because we should work together on making this work directly in the one Maps app. :) |
|
For the record and to not have it only as one comment in a big issue, here’s the todo list taken from #2 (comment) :) the core scope is to provide an alternative to things like Google Maps, Apple Maps etc. This includes: Basic core features:
Advanced stuff:
|
|
Postgresql compatibility should be on the todo list too as mentioned here, if changes are necessary: #19 |
@jancborchardt I tried to add the leaflet-routing-machine to the app, but the builtin routing service (osrm) is "down". The mention Mapbox as alternative, but it requires an API key. Since there is no completely free routing service we should decide which one we want to use. IMO there are three options:
I think mapzen has the most features and a good free plan. GraphHopper looks good as well. Not sure about the pricing plan of mapbox ("credit" based). Any thoughts? |
|
@v1r0x Mapbox is also used by GNOME Maps since Mapquest shut down their free access. An API key shouldn't be a huge deal, the weather app also requires one to work (pulling data from Openweathermap). Mapzen sounds surely better because it has more features that are useful for a map app after all. Transit data would be a good addition too. One important issue I can see would be a good way to make transition to a new backend easier so the Mapquest debacle can be avoided if a provider closes down/cuts off free access. |
|
@v1r0x ok, let's go for Mapzen then. :) Btw I think it would be good to merge this as early as possible so the PR doesn't become too big and people can also add improvements on top of the visible master. :) |
|
(As current master does not work at all anyway.) |
That's right. But should we add one (hardcoded) for all users or let them create one? |
|
Let's say we add a default one for everyone for now. As soon as there's issues we can talk about customization. |
|
One question regarding the API key. Who should create the API Key? And are there any risks? E.g. abuse. |
|
You could do it like in the Weather app that moved this setting into the admin section recently. I do not think that a normal user should be bothered with such a setting after all, only the admin should set it once and everyone can use an app then. |
|
Yeah, API key should be an admin setting only. And would there be a default (or fair use) to ensure it works on simple install? In any case, let's merge this branch as soon as possible @v1r0x, ok? :) |
|
I'm unsure about a private API key as default. I also already have a private mapzen key, which I need for some private projects. What do you think about a "official" nextcloud key which is the default? Is this even possible? @jancborchardt |
|
How much could be used under that plan? Alternatively we could mail them about it and ask? cc @jospoortvliet Also cc @freenerd who works at Mapbox, and @zeenix @mlundblad who work on GNOME Maps. How did you do it with the API key, and is there any way we could do it similarly with Nextcloud Maps? Because we want to integrate Maps into Calendar, Contacts etc as well, so it makes sense to have a proper solution which works out of the box and doesn't need a technical person get an API key. :) |
|
@v1r0x mind emailing both Mapzen and Mapbox to inquire if we can partner with them in some way? @freenerd @zeenix @mlundblad any input how you handle it with GNOME Maps is appreciated :) |
|
@jancborchardt No problem. I'll cc you in the mail and attach this issue. Ok? |
|
@v1r0x yep, great! :) |
|
I built the app and noticed a few thing that could be improved:
|
|
Game over for Mapzen, it will close down at the end of January: https://mapzen.com/blog/migration/ I hope not a lot of work was done until now because it would be wasted once again. This also shows that the dependency on external services is extremely bad after all. Striving for self reliance or at least some kind of fallback sould be seriously considered, I think. Considering that this app uses Leaflet already, there is a routing engine available too: http://www.liedman.net/leaflet-routing-machine/ It uses OSRM by default: |
|
I tried to talk to mapzen devs, but didn't work out. So, not much work was done. |
|
@eneiluj awesome! Could you open a pull request based on that branch, then we can use that to discuss and collaborate. :) |
|
@jancborchardt Should I make a PR to |
|
@jancborchardt Here comes #44. Maps app is back on track 😉. |

This is a work in progress PR.
Since the current version relies on an old version of leaflet and a no longer supported tilelayer, @jancborchardt and I decided to rework the whole app and update it to Leaflet 1.x.
This PR should cover the basic features of a maps app.
See #15 (comment) for todo list
cc @nextcloud/maps