-
Notifications
You must be signed in to change notification settings - Fork 75
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
export user's POI (point of interest) #226
Conversation
@nrenner what about dropping all file formats and only use one (say, gpx), then external libraries to convert from GPX to anything else? It would ease developing new features related to file - yet I'm not sure how to tackle it otherwise. edit: togeojson supports GPX and KML to geojson conversion. Would only need a GPX to kml conversion to be fine? Or maybe verrazzano that supports GPX to both? |
c03e6ed
to
a992103
Compare
I had missed #129, sorry :/ |
What do you mean exactly with "dropping all file formats" and converting? Ignore the other |
Yes.
No, in this case we would insert them directly in the client, after we got the gpx generated. The alternative is to modify backend to accept a list of POIs and write them for each file format.
In that case, yes. Not sure which solution is better yet. |
Not sure either. After the discussion in abrensch/brouter#91 and with trackName already implemented it seemed more straightforward and reasonable to do those in the server, so I sort of gave up the idea of client-side export formatting. And with route waypoint export already implemented in the server, I'm not sure it's worth starting a different way just for user POI waypoints. Future features regarding export that come to mind:
@abrensch would you mind user POI waypoints getting passed to OsmTrack just for file formatting or would you prefer those handled completely in the client? |
a992103
to
c395d7f
Compare
Another advantage of this (thinking of #231 (comment)) is that BRouter-web could add a comment in the GPX file with the URL used to generate the track. Not sure this is worth the pain though. |
For now, and based on @nrenner advice, I'll probably go for the first solution (implement POI export in backend) - URL could be another query param option ( |
Not sure, but I think the server request URL is pretty much the same as in the client, so a simple regex replacement would probably do - or at least the server gets all information to reconstruct the important part of the client URL (except for the There is an issue for this: abrensch/brouter#152. |
63ac490
to
66de1eb
Compare
b2c50c5
to
5ec4cbe
Compare
2707f8f
to
19fabc2
Compare
8e46ed2
to
a4da9f1
Compare
OK I'm done with it. brouter counterpart is abrensch/brouter#196 (also this might addresses #194, since I do XML/JSON escaping properly there). Comments are welcome :). |
a4da9f1
to
63acdb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good overall, see inline comments.
63acdb0
to
882c4da
Compare
882c4da
to
fa5af58
Compare
Thanks! |
I moved the POI button below the routing toolbar, because I found it too prominent for a secondary feature and better in line this way with the probable order of user actions. Let me know if you disagree, I'm open for discussion. |
No problem @nrenner, I think it makes sense! |
Fixes #222
Still left to do:
allow user to chose icon type? cf Leaflet.awesome-markers for now, all POI are displayed with ⭐ icon. We can extend it quite easily if needed, or by editing the file after it has been generatedQuestions: