Open Google Maps, OSM and geo url links in Organic Maps #475

Open
opened 2021-06-01 15:48:58 +00:00 by ghost · 25 comments
ghost commented 2021-06-01 15:48:58 +00:00 (Migrated from github.com)

Pls add option to Open OSM and geo url links through Organicmaps app.


Current status by @rtsisyk

DONE

TODO

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Pls add option to Open OSM and geo url links through Organicmaps app. --------------- Current status by @rtsisyk **DONE** - [x] https://maps.google.com/maps?z=16&q=Mezza9%401.3067198,103.83282 - [x] https://maps.google.com/maps?z=16&q=House+of+Seafood+%40+180%401.356706,103.87591 - [x] https://www.google.com/maps/place/Falafel+M.+Sahyoun/@33.8904447,35.5044618,16z - [x] https://www.google.com/maps?q=55.751809,37.6130029 - [x] https://www.openstreetmap.org/#map=16/33.89041/35.50664 - [x] https://openstreetmap.org/#map=16/33.89041/35.506641 - [x] https://www.openstreetmap.org/search?query=Falafel%20Sahyoun#map=19/33.89041/35.50665 - [x] https://openstreetmap.org/search?query=Falafel%20Sahyoun#map=19/33.89041/35.50665 - [x] https://2gis.ru/moscow/firm/4504127908589159/center/37.6186,55.7601/zoom/15.9764 - [x] https://2gis.ru/moscow/firm/4504127908589159?m=37.618632%2C55.760069%2F15.232 **TODO** - [ ] https://goo.gl/maps/sXnse1erRvkA6aV99 - [ ] https://maps.app.goo.gl/9ivZQ71CKMqRPDtQA - [ ] https://osm.org/go/2EE6hs-- - [ ] https://www.google.com/maps/place/VGR4%2B5MC+Falafel+M.+Sahyoun,+Beirut,+Lebanon/data=!4m2!3m1!1s0x151f16e2123697fd:0x8e6626b678863990?utm_source=mstt_1&entry=gps - [ ] https://maps.apple.com/place?address=4706%2050%20Ave,%20St.%20Paul%20AB%20T0A%203A2,%20Canada&ll=53.991561,-111.289525&q=Example%20Link&_ext=AbYpUFxEu1v+AbAxxqyaswXTW8A5zjFqF4L/AbBBWpCqWgvSW8BQBA%3D%3D&t=m - [ ] https://go.2gis.com/v5im0h <!-- POLAR PLEDGE BADGE START --> ## Upvote & Fund - We're using [Polar.sh](https://polar.sh/organicmaps) so you can upvote and help fund this issue. - We receive the funding once the issue is completed & confirmed by you. - Thank you in advance for helping prioritize & fund our backlog. <a href="https://polar.sh/organicmaps/organicmaps/issues/475"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/organicmaps/organicmaps/issues/475/pledge.svg?darkmode=1"> <img alt="Fund with Polar" src="https://polar.sh/api/github/organicmaps/organicmaps/issues/475/pledge.svg"> </picture> </a> <!-- POLAR PLEDGE BADGE END -->
biodranik commented 2021-06-01 22:35:19 +00:00 (Migrated from github.com)

geo:// links should work. Please share the one which doesn't work together with your OS and app version, we'll fix it.
Which OSM URL links do you have in mind? https://www.openstreetmap.org/#map=ZZ/LAT/LON ?

geo:// links should work. Please share the one which doesn't work together with your OS and app version, we'll fix it. Which OSM URL links do you have in mind? https://www.openstreetmap.org/#map=ZZ/LAT/LON ?
biodranik commented 2021-06-06 11:57:09 +00:00 (Migrated from github.com)

Here is a test page to check which links work now and which still should be fixed:
https://omaps.app/test.html

Here is a test page to check which links work now and which still should be fixed: https://omaps.app/test.html
ghost commented 2021-06-11 06:07:13 +00:00 (Migrated from github.com)
https://github.com/osmandapp/OsmAnd/blob/e4f9a7cea01bf2083e0b800522f445642cf15b3f/OsmAnd/AndroidManifest.xml#L603
biodranik commented 2021-06-11 06:39:37 +00:00 (Migrated from github.com)

That's a good idea, but need to update the parser code first, and it will work only on Android.

That's a good idea, but need to update the parser code first, and it will work only on Android.
ghost commented 2021-06-11 10:03:48 +00:00 (Migrated from github.com)

https://www.f-droid.org/en/packages/app.fedilab.nitterizeme/

This app helps to google maps links to osm or geo... it helps to click a google maps links convert to show osm result in organic map. Pls implement in Organic map. Iam currently using untrackme app for convert g maps links through help of untrackme to show result from organic maps...pls inbuild this feature.

https://www.f-droid.org/en/packages/app.fedilab.nitterizeme/ This app helps to google maps links to osm or geo... it helps to click a google maps links convert to show osm result in organic map. Pls implement in Organic map. Iam currently using untrackme app for convert g maps links through help of untrackme to show result from organic maps...pls inbuild this feature.
Owner

I think we can add support for Google links directly to our app. I don't see any blockers.

I think we can add support for Google links directly to our app. I don't see any blockers.
biodranik commented 2021-06-13 06:26:19 +00:00 (Migrated from github.com)

It may work in Android only.

It may work in Android only.
eighthave commented 2021-06-14 15:59:07 +00:00 (Migrated from github.com)

https://github.com/guardianproject/LocationPrivacy is a simple, standlone app that parses all kinds of location links. It is probably easier to navigate than Osmand. I'm happy to help too.

https://github.com/guardianproject/LocationPrivacy is a simple, standlone app that parses all kinds of location links. It is probably easier to navigate than Osmand. I'm happy to help too.
eighthave commented 2021-06-14 16:13:56 +00:00 (Migrated from github.com)

Also, I think the work here is basically the same as what needs to happen in #492

Also, I think the work here is basically the same as what needs to happen in #492
Owner
References: - https://github.com/osmandapp/OsmAnd/blob/e4f9a7cea01bf2083e0b800522f445642cf15b3f/OsmAnd/AndroidManifest.xml#L603 - https://github.com/guardianproject/LocationPrivacy/blob/45c216619ceb34b43969d51ed3ff0ac07945eecf/app/src/main/AndroidManifest.xml#L47
eighthave commented 2021-07-20 09:27:19 +00:00 (Migrated from github.com)

FYI, I wrote some of the related code in Osmand, and it is also included in the
Guardian Project app Location Privacy. Would you be interested in including the
whole capability from Location Privacy? Basically, it also adds the ability to
go online to get the location from URLs that do not include the location info in
it. It can do this over Tor for privacy. Examples of relevant URLs are short
links, some Google Maps links that use only a unique ID for a place entry, etc.

FYI, I wrote some of the related code in Osmand, and it is also included in the Guardian Project app Location Privacy. Would you be interested in including the whole capability from Location Privacy? Basically, it also adds the ability to go online to get the location from URLs that do not include the location info in it. It can do this over Tor for privacy. Examples of relevant URLs are short links, some Google Maps links that use only a unique ID for a place entry, etc.
biodranik commented 2021-07-20 21:57:33 +00:00 (Migrated from github.com)

@eighthave Is the basic idea to hide the real IP from Google?

@eighthave Is the basic idea to hide the real IP from Google?
anibyl commented 2021-07-28 22:07:30 +00:00 (Migrated from github.com)

I have a similar, perhaps the same issue with links in Instagram. Steps:

  • open a page with address in Instagram app (e.g. https://www.instagram.com/sidesaddlebikes/),
  • click on the address,
  • choose Organic Maps (if no prompt — clear default app for this action in system settings)
    The app doesn't try to find the address.
    I don't know what link format Instagram uses but I know that apps like Komoot, Uber, Street Complete, etc can open them.
I have a similar, perhaps the same issue with links in Instagram. Steps: - open a page with address in Instagram app (e.g. https://www.instagram.com/sidesaddlebikes/), - click on the address, - choose Organic Maps (if no prompt — clear default app for this action in system settings) The app doesn't try to find the address. I don't know what link format Instagram uses but I know that apps like Komoot, Uber, Street Complete, etc can open them.
eighthave commented 2021-07-29 14:16:00 +00:00 (Migrated from github.com)

yeah, the idea is to hide the IP and any other identifying metadata like User
Agent, logged in accounts, cookies, etc. that would be sent with the location if
the user opened the link in a browser or other app like Google Maps. This
approach should also be possible with other kinds of location links like
Instagram. The only issue there would be the UX since it looks like it is not
possible to tell from the URL alone that the Instagram link is a location link,
and not some other kind of link like just a picture.

yeah, the idea is to hide the IP and any other identifying metadata like User Agent, logged in accounts, cookies, etc. that would be sent with the location if the user opened the link in a browser or other app like Google Maps. This approach should also be possible with other kinds of location links like Instagram. The only issue there would be the UX since it looks like it is not possible to tell from the URL alone that the Instagram link is a location link, and not some other kind of link like just a picture.
biodranik commented 2021-07-29 18:18:33 +00:00 (Migrated from github.com)

Why going online if the address/location can be opened completely privately in offline?

Why going online if the address/location can be opened completely privately in offline?
eighthave commented 2021-09-07 11:15:21 +00:00 (Migrated from github.com)

When the location can be parsed from the URL, then there is no reason to go
online. But there are many location URLs that use internal identifiers, e.g.
short URLs. Then the only way to get the location out is to go online and query
that service.

When the location can be parsed from the URL, then there is no reason to go online. But there are many location URLs that use internal identifiers, e.g. short URLs. Then the only way to get the location out is to go online and query that service.
vng commented 2022-01-30 21:15:31 +00:00 (Migrated from github.com)

Check with the next Android app update.

Check with the next Android app update.
Owner
One more link type from #989: https://maps.apple.com/place?address=4706%2050%20Ave,%20St.%20Paul%20AB%20T0A%203A2,%20Canada&ll=53.991561,-111.289525&q=Example%20Link&_ext=AbYpUFxEu1v+AbAxxqyaswXTW8A5zjFqF4L/AbBBWpCqWgvSW8BQBA%3D%3D&t=m
gerion0 commented 2022-03-18 00:15:17 +00:00 (Migrated from github.com)

The OSM short links are missing currently. Example:
https://osm.org/go/0CGsV6RxW?m=
https://osm.org/go/0CGsV6RxW
https://osm.org/go/0CGsV6RxW?node=281399025

Also, is it possible with the current data to open osm entities directly in organic maps? For example:
https://www.openstreetmap.org/node/281399025
https://www.openstreetmap.org/relation/365331
https://www.openstreetmap.org/way/70856784

The OSM short links are missing currently. Example: https://osm.org/go/0CGsV6RxW?m= https://osm.org/go/0CGsV6RxW https://osm.org/go/0CGsV6RxW?node=281399025 Also, is it possible with the current data to open osm entities directly in organic maps? For example: https://www.openstreetmap.org/node/281399025 https://www.openstreetmap.org/relation/365331 https://www.openstreetmap.org/way/70856784
biodranik commented 2022-03-20 23:01:32 +00:00 (Migrated from github.com)

The second is not possible without querying the OSM server.

The second is not possible without querying the OSM server.
eighthave commented 2022-03-21 07:02:17 +00:00 (Migrated from github.com)

In LocationPrivacy, I made it query the server in some such cases. There are
some URLs missing geo coords that are redirected to a parsable URL, so often,
just a HEAD request is enough.

In LocationPrivacy, I made it query the server in some such cases. There are some URLs missing geo coords that are redirected to a parsable URL, so often, just a HEAD request is enough.
gerion0 commented 2022-03-21 07:36:57 +00:00 (Migrated from github.com)

The second is not possible without querying the OSM server.

Ok. I had hoped that the ID maybe survived in the offline data ;). It's my preferred way to link to shops etc since the OSM website for example mentions the opening times there.

> The second is not possible without querying the OSM server. Ok. I had hoped that the ID maybe survived in the offline data ;). It's my preferred way to link to shops etc since the OSM website for example mentions the opening times there.
rigrig commented 2022-07-08 14:42:40 +00:00 (Migrated from github.com)

My phone (LineageOS stock contactsapp) tries to open
https://www.google.com/maps?daddr=Aardbei+1%0AHengelo%0ANetherlands+(Overijssel)
It is opened in Organic Maps, but not recognized.

Thu URL corresponds to
https://www.google.com/maps?daddr=<streetname>+<house number>%0A<city>%0A<countey>+(<province/state>)

My phone (LineageOS stock contactsapp) tries to open https://www.google.com/maps?daddr=Aardbei+1%0AHengelo%0ANetherlands+(Overijssel) It is opened in Organic Maps, but not recognized. Thu URL corresponds to `https://www.google.com/maps?daddr=<streetname>+<house number>%0A<city>%0A<countey>+(<province/state>)`
licaon-kter commented 2022-09-20 09:27:27 +00:00 (Migrated from github.com)

While testing https://github.com/iNPUTmice/Conversations/issues/4375 I saw that OrganicMaps does not appear as an option. Any news on future support for all the missing intents/websites?

While testing https://github.com/iNPUTmice/Conversations/issues/4375 I saw that OrganicMaps does not appear as an option. Any news on future support for all the missing intents/websites?
biodranik commented 2022-09-24 19:56:13 +00:00 (Migrated from github.com)

@licaon-kter thanks for the link! It would be great to support google.navigation URL scheme.

@licaon-kter thanks for the link! It would be great to support [google.navigation](https://developers.google.com/maps/documentation/urls/android-intents#launch-turn-by-turn-navigation) URL scheme.
This repo is archived. You cannot comment on issues.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#475
No description provided.