Skip to content
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

Reverse geolocation support for the frontent #177

Open
pvagner opened this issue Jun 7, 2021 · 2 comments
Open

Reverse geolocation support for the frontent #177

pvagner opened this issue Jun 7, 2021 · 2 comments

Comments

@pvagner
Copy link

pvagner commented Jun 7, 2021

Would it be possible to add ability to reverse geocode the current tracked location when updating it on the map and display it as a text and geo URI that can be easily copied or shared into another app e.g. osmand?

To give a bit of context to my use case we are group of visually disabled friends where some of us are blind others have different degree of low vision problems. We were using Google maps location sharing in the past as it also prints out the location address where available. Now people tend to stop sharing their location with google and I'd like to support that initiative. However I'd like to find out a replacement solution.

Looking at leaflet there appear to be some geocoder plugins. Most promising appears to be Leaflet Control Geocoder.
Some ideas to think about.

  • To avoid rate limiting by services such as nominatim we can't query too much. Perhaps limit it to one reverse geocode call per minute or 30 seconds or something similar.
  • How to integrate thiswith the map? Ideally it should be displayed all the time not as a popup and should adress both requirements: provide text description of location, be able to copy both the adress and the data and don't take too much space. I'm thinking about a html link.

I will spend a few days trying to add this on my own however I am not sure I have enough skills and can learn them as I need them. I'll be glad to receive hints or encouraging comments if you like the idea or if you can support it in some way.

@licaon-kter
Copy link
Contributor

licaon-kter commented Jun 7, 2021

You can get the location by clicking the little human icon and press "Navigate to". But given your requirements it might not be easy enough.

@pvagner
Copy link
Author

pvagner commented Jun 7, 2021

I've now started looking at the code and I have discovered there are two controls added to the leaflet. They both are titled View my location. First one requests location from the browser, the second one shows the users popup. So this is now starting to look more usefull to me.
I have not explored group shares so far, so I'll comment about what I have understood about single location sharing.
The user marker on a map consists of:

  • An icon (I assume that's the human icon you are reffering to me).
  • Nick (if this is a group share)
  • Speed
  • Relative time of recent activity

Each time update data is received from the server the marker gets updated. I can perfectly read speed and last activity time. Would it be acceptable to add an address label here and populate it with reverse geocoder result?
When I click on the speed or last time text, I can see View on map and navigate to controls being added. Navigate to is what I was looking for. The issue with these two is that these are not focusable with the keyboard and don't react to keypresses such as enter or space to activate. I think I might be able to tweak these at least.

Still I'm happy to receive hints about reverse geocoding. Does it make sense what I'm trying to describe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants