-
Notifications
You must be signed in to change notification settings - Fork 25
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
Tap in map to add restroom here (using lat+lon => street address API) #73
Comments
Sorry, call me ignorant, but I now realize there is actually a separate project for web, one for Android and one for iOS. This issue was mostly raised in response to using the Android app. I saw an app folder in this code base and thought you used some ruby based hybrid framework I never heard of as I haven't used ruby in years. |
Hi @Leffe108! Thanks for the suggestion. If you don't mind, we can move this issue to the Refuge Restrooms Android app repo: https://github.com/RefugeRestrooms/refugerestrooms-android Regards, - DeeDeeG |
Feel free to move the suggestion to the android project. |
Thus the probably easiest solution would be to add support for reverse geocoding in the form which reside in the rails project and then invoke that from the Android App by calling into the webview. It also have the benefit that the iOS app could benefit from the initial work and "only" need to duplicate the map UI part assuming it also uses a webview to add restrooms. |
This is more or less resolved with #84 |
Scope / difficulty
UI + lookup address from lat+lon
Impact
Simplify contributing locations.
Rationale
Personally I stop trying to contribute when the form ask me to enter the street name of a place when I just have zoomed in the map on the place and then switched to the contribution form. I have no clue what street name + address to enter in order for the map marker to end up at the right place, but I can easily longpress/tap on the map where I want to have it.
Proposal
I propose in the app that you should be allowed to tap or longpress on a location and the app would place a map marker there and show a popup with a button/link saying "add restroom here" which if I tap it would open the contribution form and filling out all location data for me using APIs for finding the street name from latitude and longitude. Mapbox have for example 50 000 free geocodings per month, and maybe they or some other provider would sponsor the project if a higher quota is needed.
How to actually do this:
I don't know the code of the app, but I have worked both with Leaflet and OpenLayers and quite a bit with location data. It looks though that you are using Google map tiles and probably also Google maps client. So this is more on high level than specific for the project source code.
An alternative is to first navigate to the Add Bathroom view with only latitude+longitude as view parameters and then call the geocoding API and perhaps disable the location related fields and show a spinner in each of them or ontop of them, or in some other way show that they are being resolved.
If the geocoding API is able to produce multiple street addresses for the user to pick the best one, then it is probably better usability to stay in the map to keep the map context of where you are and display a popup for address selection.
The text was updated successfully, but these errors were encountered: