element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 394 forks source link

[Feature] Share location #1199

Open albuic opened 7 years ago

albuic commented 7 years ago

Share location between people (and show it on an integrated map maybe)

ylecollen commented 7 years ago

it is planned feature but not yet implemented.

ghost commented 7 years ago

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

moralrebuild commented 6 years ago

one year plus later, any update on this feature?

albuic commented 6 years ago

@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

bmarty commented 6 years ago

This feature may be consider as a meta regarding the Riot universe, and maybe the Matrix universe.

ghost commented 6 years ago

@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.

poVoq commented 5 years ago

Cool would we also if people could leave location aware comments, such as "saw a rare animal here" or "road needs fixing here" etc.

pvagner commented 5 years ago

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.

RotBolt commented 5 years ago

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

natrius commented 5 years ago

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.

bilde2910 commented 5 years ago

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 :-)

vranki commented 4 years ago

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.

https://github.com/vranki/hemppa

mjk-gh commented 4 years ago

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:

vranki commented 4 years ago

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):