Skip to content
New issue

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

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

Already on GitHub? # to your account

generate gpx of AOI #724

Closed
russbiggs opened this issue Oct 7, 2019 · 3 comments · Fixed by #770
Closed

generate gpx of AOI #724

russbiggs opened this issue Oct 7, 2019 · 3 comments · Fixed by #770

Comments

@russbiggs
Copy link
Contributor

generate gpx of AOI for loading into iD Editor

@russbiggs
Copy link
Contributor Author

Since this functionality is only to help with linking to iDeditor we can probably offload this work to the client via a library like this:
https://github.com/tyrasd/togpx

@JorgeMartinezG
Copy link
Collaborator

@russbiggs I think it would be better to make flask generate the gpx instead of the javscript client. The reason is that Id editor accepts an url to the gpx:

https://github.com/openstreetmap/iD/blob/master/API.md

So, the goal would be to create an endpoint within flask to return the gpx (xml format). Tasking manager has an API endpoint to generate the gpx from database. For MC it would be to use the campaign geojson from s3.

https://github.com/hotosm/tasking-manager/blob/develop/server/services/mapping_service.py#L194

@russbiggs
Copy link
Contributor Author

@JorgeMartinezG you're right i thought it was encoded in the URL. I'll move this back to backend list

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants