You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, client-side GPX creation is indeed the best solution. (And for GH Maps 2 we create alternative routes for which we also do no have a server-side GPX solution.)
Yes if somebody (@paulklie maybe?) provides a fix we could include it, but I don't feel like fixing this for the current maps app and I agree it would be more useful to push forward maps 2. Maybe we should disable the gpx button when the custom model box is open to avoid further confusion.
Activity
easbar commentedon Jul 26, 2022
Thanks for reporting, this is ugly indeed.
The problem might be that GPX is only supported for
GET /routeand custom models are only supported forPOST /route. So probably we should stop using the server-side GPX functionality and simply convert the route response to GPX when clicking the button, rather than creating a new URL and requesting the route again in GPX format? This would also work for GH maps 2 (http://github.com/graphhopper/graphhopper-maps) where the GPX export is missing so far and we always use thePOSTendpoint.karussell commentedon Jul 26, 2022
Yes, client-side GPX creation is indeed the best solution. (And for GH Maps 2 we create alternative routes for which we also do no have a server-side GPX solution.)
So probably we should close here and refer to graphhopper/graphhopper-maps#18 :) ?
easbar commentedon Jul 28, 2022
Yes if somebody (@paulklie maybe?) provides a fix we could include it, but I don't feel like fixing this for the current maps app and I agree it would be more useful to push forward maps 2. Maybe we should disable the gpx button when the custom model box is open to avoid further confusion.
RSPS_673_Matrix_SBI_Algo (#15)