posm / OpenMapKitAndroid

http://openmapkit.org
BSD 3-Clause "New" or "Revised" License
128 stars 38 forks source link

OpenStreetMap Username Entry #111

Closed hallahan closed 8 years ago

hallahan commented 8 years ago

We need a UI view that allows the user to input OSM username. This will put the correct OSM username with each OSM edit.

I don't think we want the OSM password, at least for now.

Looking at a sample OSM edit file, we actually have a OSM user already stubbed in. OpenMapKit Server can parse this and aggregate submissions by user accordingly.

<?xml version='1.0' encoding='UTF-8' ?><osm version="0.6" generator="OpenMapKit 0.13" user="theoutpost"><node id="-2" action="modify" lat="1.0753199144383814" lon="34.16216178888775"><tag k="name" v="test" /></node></osm>

This is where we want to put in the actual user's OSM username:

https://github.com/AmericanRedCross/OpenMapKitAndroid/blob/4f492f952f70b652965bb6923905fda887184379/app/src/main/java/org/redcross/openmapkit/odkcollect/ODKCollectData.java#L139

Also see:

https://github.com/AmericanRedCross/OpenMapKitServer/issues/9#issuecomment-166726293

hallahan commented 8 years ago

Closed via 6585d499064745a94bccccc544d9be4a98be34d4