Open albuic opened 7 years ago
it is planned feature but not yet implemented.
No need to integrate a map. You can link to a location as geo:48.85828,2.29449
. Works with Riot as-is, and will open in any good map app you have installed. (OsmAnd, Google Maps, others...)
Example: https://matrix.to/#/#riot-android:matrix.org/%2414950160261511516pRlnj:matrix.org
one year plus later, any update on this feature?
@moralrebuild no idea @Matrixcoffee sharing a simple point of interest (like the geo:X,Y) or a real time location (with real time update) is not the same and can't be done with a geo:X,Y
This feature may be consider as a meta regarding the Riot universe, and maybe the Matrix universe.
@albuic Ah, I misunderstood the issue. I guess someone might be able to write an integration that does this. (Live map)
Anyway, as bmarty said, this isn't specific to the Android client. If you write an integration the proper way, it should work on all matrix clients that support integrations.
Cool would we also if people could leave location aware comments, such as "saw a rare animal here" or "road needs fixing here" etc.
It's a pity Osmand community haven't chosed matrix for powering their location sharing app. http://osmand.net/blog/osmand-telegram-released It would be amazing to have something similar powered by matrix rather than telegram.
There's already a PR for riot-web, Location-Events by @Half-Shot . He went for Open Street Map for map service.
Now for android . Google maps service (which require Google Play Services) seems best but there are various android devices (like with Lineage OS) which don't use Google Play Services . And Riot runs on variety of android devices .
So best solution seems to be 1) Integrate Both API (Google Maps and OSM) 2) If (Google Api is available) Use it
Please do not use anything google related if possible.
I would like to suggest Hauk - https://github.com/bilde2910/Hauk I installed it on my server and it is used a lot already. It is good and is using OpenStreetMap and it is really easy to set up. Maybe it should be a Widget.
Hi, developer of Hauk here. If there is interest in using my project for location sharing, I'd be more than happy to help and will do my best to assist in incorporating the needed functionality on my end :-)
Hi, developer of Hemppa (a bot) here. It can translate location updates to human-readable (and clickable) links. It can also generate them from location names (via OSM api). There is still no way to send a real GPS position from a mobile device.
I do not know anything about the technical background here, but at least I would like to give an advice (before someone implements something terribly useless):
The XMPP client "Conversations" for Android has a "share location" implementation that -- although minimalistic -- already covers most of the use cases, IMHO:
You click on "Send location" ("Insert location" in the middle of the text you were typing would be even nicer).
A map gets shown, centered on your current location (with a green icon in the center).
You can now either just tap the "Share" button (or "Cancel") or you can zoom and pan the map to have the green Icon centered over the location you want to share. So if you are currently visiting Berlin/Germany, but want to show your chat partners where you live, you pan the map to London/England, the exact spot where your house is located, and then press "Share", which will send the location of your house in England. If after panning the map you want to re-center it to your current location, just hit the green round crosshair icon in the lower right hovering over the map.
After clicking on "Share", you'll get back to your message entry and can now just hit the "Send" icon on the right. For both you and your chat partner, the message will consist of a button labeled "SHOW LOCATION".
If you you click on that button, a map is shown, centered on that very location. It has two icons in the upper right corner for:
Additionaly, there is a round green icon in the lower right hovering over the map that is labeled with the typical "directions" arrow. After clicking it, you can select a navigation app ("ZANavi, OsmAnd~, Navit, Map, ...) which will then calcuate a route from your current location to that location you just shared.
I like that design @mjk-gh . We could just copy that.
Another feature I would like to see is "location streaming" - tracking users movements continuously instead of sending a single location update.
For example Alice is driving a car and wants to share location with Bob:
On Bob's side
Multiple users could stream their location in a room and their locations could be checked from per-user map button or room-wide button that would show all users who are sharing location. For example search and rescue situation could benefit from this.
Some things that need more thinking (perhaps more spec than Element specific stuff):
Share location between people (and show it on an integrated map maybe)