Parse and encode coordinates in omaps.app links #7482
Open
opened 2024-02-26 19:13:56 +00:00 by biodranik
·
13 comments
No Branch/Tag specified
master
weblate-i18n
pastk-data
github/fork/AndrewShkrob/android-auto/car-location
ios/pp-for-track-recording
redauburn-patch-1
ios/route-preview-redesign
rt-android-splashscreen-android12
geojson-support
github/fork/Raghaddahi/fix/1566-url-class-bugs
github/fork/rebustj/fix/coredata-crashes
github/fork/hemanggs/zoom-button-fix
github/fork/hemanggs/styles-poi
github/fork/AndrewShkrob/ci/cmake-workflow
beta/ios-hotfix-search
github/fork/sddzhyc/master
ios/search-fix-to-child-vc
github/fork/savsch/feat/android-modal-search
github/fork/RedAuburn/temp-auto-fix
github/fork/RedAuburn/rework-theme-system
github/fork/rimas-kudelis/sound-strings-lt
github/fork/coderang-gk/feature-homescreen-widget-bookmark
github/fork/AndrewShkrob/android/sdk-om
github/fork/FedericoCeratto/reuse-sbom
github/fork/gpesquero/my_location
github/fork/DevarshVasani/DownloadingError-Message
github/fork/DevarshVasani/handle-surface-destruction
github/fork/Strubbl/Strubbl-patch-1
github/fork/RedAuburn/mastodon-bluesky
github/fork/CrazyStevenz/patch-2
ios/update-toast-ui
pastk-generator-genorder
pastk-autogen-subways
github/fork/meenbeese/integrate-sonarcloud
github/fork/dmitrygribenchuk/localization_cleanup
github/fork/coderang-gk/android-transparent-navbar-light-mode
ios/add-icons-to-the-live-activity-widget
github/fork/hemanggs/parse-coordinate-links
github/fork/gpesquero/intermediate_points
ios/fix-search-on-map-tests-for-ipad
release/2025.03.02
github/fork/RedAuburn/always-update-fast
pastk-drape-subways-greying-out
ios/update-search-vc-ui
github/fork/Isira-Seneviratne/AudioManagerCompat
alpha/2025.02.23
crowdin-master
l10n
github/fork/soshial/generate-taginfo-json
github/fork/DeshDeepakKant/ui/improve-description-display-9943
github/fork/hemanggs/increase-touch-area
ios/search-ui-redesign
ios/show-new-search-vc-from-the-route-building
release/2025.01.24
github/fork/savsch/fix/android-pp-bookmark-edit-issue2418
github/fork/renderexpert/remove_gles2
github/fork/Osyotr/windows-unittests
github/fork/AndrewShkrob/android/world-maps-for-all-flavors
github/fork/RedAuburn/splashscreen-android12
drop-appstream-glib
separate-locationservice-lib
github/fork/gpesquero/remove_speed_display
github/fork/zeac/feature/1
github/fork/DeshDeepakKant/fix/building_levels_hint
github/fork/gpesquero/route_plan
github/fork/IsiGebauer/StylingMtbTrails
github/fork/DeshDeepakKant/Mobile-Internet-Settings
release/2025.01.12
github/fork/AndrewShkrob/actions/cpp-codestyle-check
github/fork/AndrewShkrob/clang-format
int/anrdoid-auto/permissions-screen
rt-docs-release-management-principles
generator-wikipedia
generator-actions
generator-subways
ios/enable-cpp-swift-interop
github/fork/map-per/sand
pastk-docs-values
fix-deprecated-atomic-load
rt-docs-communication
rt-docs-collaboration
github/fork/meenbeese/bsdiff
github/fork/meenbeese/karabakh
github/fork/AndrewShkrob/android-auto/location-off
ios/fix-compile-warnings-and-cleanup-unsupported-code
rt-ios-managed-signing
github/fork/IsiGebauer/AllowDirToBeEmpty
ios/fix-ios-test-ci-action-failure
ab-ios-bookmarks-last-category
github/fork/IdeallyGrey/swap-abandoned-disused-rail-rendering
github/fork/meenbeese/atomic-shared-ptr
pastk-docs-teams
qt-3d-preferences
github/fork/TobiPeterG/cur-speed-widget
fix-file-read-exception
fix-track-length-calculation
github/fork/kavikhalique/foreground-crash-fix
github/fork/meenbeese/py-rewrite
pastk-styles-feature-types-migration
release/24.11.27
github/fork/AndrewShkrob/docker/ubuntu-container
alpha/2024.11.26
beta/2024.11.26
github/fork/AndrewShkrob/refactoring/network
github/fork/Ferenc-/cmake-moc-workaround
github/fork/Ferenc-/qt-touchpad-rotate
ab-tests-macro-fixes
ios/track-recording-fifth-bar-button
github/fork/kavikhalique/expand-touch
vng-fix
release/24.11.12
alpha/2024.11.10
vng-langs
github/fork/DevarshVasani/enable-strict-mode
patch-3
release/2024.10.22
alpha/2024.10.22
beta/2024.10.22
github/fork/gpesquero/separators
github/fork/Piaszczysty/route-arrow-fix
place-page-for-tracks-backup
github/fork/RedAuburn/profile-image
github/fork/AndrewShkrob/magic-enums
release/2024.10.08
release/2024.10.04
github/fork/AndrewShkrob/data/resources-refactoring
github/fork/AndrewShkrob/data/move-fonts
github/fork/AndrewShkrob/core/autogenerate-translations
github/fork/shakhat/feature-#7358
alpha/2024.10.01
vng-search
github/fork/gpesquero/drape_locale
beta/2024.09.19
release/2024.09.19
rdb-weblate
release/2024.09.08
github/fork/alnzrv/wikimedia-fix
android/speed-limit-exceed-flag
alpha/2024.09.03
alpha/2024.09.03-ios-track-recording-feature
mb-PendingIntent-requestCode-fix
alpha/2024.08.29
add-timestamps-to-track
ab-ios-crash-on-assert
github/fork/dmfrodrigues/place-panel
github/fork/Tmpod/tmpod-alt-routes
github/fork/zyphlar/hyphenate_interpolated_addresses
alpha/2024.08.25-ios-track-recording-feature
alpha/2024.08.29-ios-track-recording-feature
github/fork/cortadocodes/create-reproducible-build-dockerfile
github/fork/dvdmrtnz/taginfo
github/fork/gpesquero/display_next_stop
android/speed-limit-threshold
android-oauth2-with-browser
release/2024.08.17
changes-from-release
release/2024.08.15
alpha-iOS-Bluetooth
github/fork/RedAuburn/dynamic-sidewalk-name
github/fork/Jean-BaptisteC/linkify_desc
github/fork/Jean-BaptisteC/phone_fab
github/fork/Jean-BaptisteC/download_screen
rdb-cldr-plural-order
ab-unused-code
ab-android-location-fix
recent-track-recorder
ab-cleaner-shutdown
localized_address_ordering
github/fork/gpesquero/speed_class
github/fork/Tmpod/task/improve-clangd-support
ab-android-layer-button-highlight
weblate
release/2024.07.08
alpha/2024.07.25-rtsisyk-ios-test
github/fork/willcohen/camp_pitch
ios-implement-the-recently-deleted-support-to-icloud-sync
recently-deleted-categories-using-postfix
fix-ios-simulator-version
github/fork/SRSAS/systemUIMode
github/fork/RedAuburn/collection_times-support
alpha/2024.07.02
github/fork/alkino/atomic_shared_ptr
vng-test-data
github/fork/fgbg03/user_routes_feature
release/2024.06.02
github/fork/j13m126/german-tone
github/fork/eisams/check_date
ios/undo-for-the-bookmark-deletion
ios/restore-bookmark-by-tap-on-the-map
ios/undo-for-the-bookmark-deletion-with-restoring-by-tap-on-the-map
github/fork/beasmm/feature-#5074
github/fork/catalms/add_stop_feature
revert-7969-pastk-drape-transparent-areas
github/fork/kubahaha/boundary_marker-preset
github/fork/fitojb/patch-1
ab-drape-use-constant-base-font-height
rt-beta
github/fork/krozhdestvenski/bookmark_category_select
vng-alt-routes
github/fork/AndrewShkrob/warnings/unused-parameter
pastk-styles-shared-paths-tune-down
android-auto/8015-8019-8022
github/fork/BrianMerino/master
github/fork/gerion0/gentoo-fixes
pastk-beta-0420
pastk-2generate-paths
ab-fix-shaders-rebuild
ios/fix-drape-failure-during-test-running
ios/add-test-target-terminate
cleanup/base
github/fork/Dinisvgc/bugfix
github/fork/charlie2clarke/overground-icon
ab-max-open-file-limit
weblate-appstore-i18n
2024.03.27-3-android-hotfix
ab-3party-oauthcpp
android-hotfix-24031805
github/fork/gpesquero/test_distance
ab-android-revert-links
github/fork/RedAuburn/no-tts-info
ab-tts-simpler-strings
rt-android-huawei-crash
rt-android-release-2024.03.02
rt-android-release-2024.03.01
ab-ios-release-2024.02.27
ab-from-chars
gplay-android-auto-hotfix
ab-case-folding
rt-store-metadata
ab-buffer-vector-string-view
ab-update-gh-cache-action
rt-android-bookmark-export
osm-oauth2-support
vng-test
github/fork/gpesquero/tts_link
github/fork/Timmy-Tesseract/master
github/fork/ahmetlii/master
github/fork/sklueber/master
rt-geo-links
github/fork/AndrewShkrob/android/lanes-refactoring
vng-lines
windows3
android-auto-disable
rt-android-paranoid-mode
github/fork/TheAdventurer64/juice
rt-android-outdoor
ios-hotfix-release-dec-2023
rt-android-location-providers
pastk-outdoors-hiking-routes
pastk-2generate
pastk-classif-hiking-routes
vng-gen-kk
poc-disable-route-build-zoom
kk2
ab-thread-checker-qt-download-dialog-fix
revert-6461-category-letterbox-it
beta-outdoor
github/fork/pratyaksh1610/branch-6024
protobuf-24.4
designer-fixes
github/fork/AndrewShkrob/core/speed-limit-widget
vng-bookmarks
vng-outdoors
navigation/save-mode
pastk-TEST-rel-w-lines-stats
ab-kml-remove-unique-ptr
vng-bench
aa
rt-android-remove-workmanager
rt-android-debug
protobuf-24.3
pastk-core-housenumbers
github/fork/map-per/pedestrian
ruler-disable-reordering
android-warning-suppress
pastk-drape-bucket-discard-optimization
beta-ios-gpx-fix
github/fork/arnaudvergnet/android-structure-compose
github/fork/arnaudvergnet/compose
github/fork/Nimausfi/new-changes
github/fork/map-per/via_ferrata
pastk-generator-isolines-skip-resimplify
pastk-styles-world-railways
github/fork/kartikaysaxena/master
github/fork/Zhu-Pengming/TomABdh-patch-1
pastk-styles-TMP_dump_priorities
ab-increase-long-tap-radius
github/fork/map-per/track_number
github/fork/codeskraps/feature/nav_altitude_chart
car-checkpoint-tolerance
github/fork/barisunsalhn/fab-transparency
github/fork/N-45div/N-45div/issue4788
rt-android-fix-viewport
github/fork/n1snt/app-shortcuts
github/fork/Kovoschiz/yue4
vng-addr-test
downloader
github/fork/Aryan-Sagavekar/etaswitchfeature
obsolete-position-color
pastk-styles-geometryfallback
pastk-DEMO-geometry-1more-detailed
strings-be-ru-uk-miles
ios/external-keyboard-fix2
alex-outdoors
ios/blue-route-to
pastk-styles-fixpriorities2
pastk-styles-fixpriorities
rt-android-accent-color
pastk-drape-path_text_zoom_mask
pastk-drape-roadshields
update-appstore-metadata
pastk-styles-outdoors
3p/disable-system-jansson
ios/newly-created-list-order
czech-release
rt-fix-monkey-gh
github/fork/AndrewShkrob/core/rendering-on-many-surfaces
github/fork/SiarheiFedartsou/sf-clang-tidy2
ios/fix-tableview-headers-font
github/fork/dvrsaran/patch-1
rt-android-google-location-annoying
pastk-loc-share
ctest
windows2
kml-load-robust
tr-screenshots
vng-nav
github/fork/pastk/pastk-loc-share
github/fork/pratyaksh1610/branch-3621
d4f5409d-patch-1
rt-fix-location-resolution
github-actions-update
android_auto
matheusgomesms-store-releasenotes-pt_BRtranslation
rt-add-ci-timeout
rq-alterRoutes-vng
euskara
github/fork/trueTatar/latlon-refactoring
windows
tests-fix
pastk-styles-geometryfallback-1more-detailed
pastk-styles-zoomlessareas
github/fork/fgaz/changelog/2022.06.29-3
pastk-outdoors-beta
android/R8
github/fork/fardeenfs/public-transit
pastk-android-writability
rt-location-api
pastk-android-verifyerror
qt6
vng-my_pos
pastk-scripts
vng-sdfimage
vng-vehicle-refactoring
release-gp-fdroid-without-location-fixes
rt-android-track-recorder
rt-android-gplay-compliance
rt-android-remove-gms
rt-android-track-recorder-alarm
rt-android-keep-data
fix-odr
github/fork/pastk/pastk-storage
build/no-unity
backup-resources
android/warning-fixes
weblate-ios-i18n
rt-android-symlinks
weblate-android-i18n
weblate-whitespacing
rt-weblate-consume
ios/fixes
i18n-android
i18n-ios
rt-xcode-desktop
2025.03.02-7-android
2025.02.17-3-android
2025.01.26-9-android
2024.11.27-12-android
2024.11.12-7-android
2024.10.23-2-android
2024.10.08-5-android
2024.10.04-7-android
2024.09.08-7-android
2024.08.17-4-google-play
2024.08.16-5-android
2024.08.15-21-android
2024.08.15-17-android
2024.07.29-2-android
2024.07.27-7-ios
2024.07.27-8-android
2024.07.23-8-android
2024.07.08-3-android
2024.06.19-3-android
2024.06.02-12-android
2024.05.11-3-android-rc
2024.05.11-3-android
2024.05.10-1-ios
2024.05.04-9-android-rc
2024.05.04-9-android
2024.03.31-8-android-rc
2024.03.31-8-android
2024.03.31-3-android-rc
2024.03.27-3-android-hotfix
2024.03.27-5-android-hotfix
2024.03.18-5-android-hotfix
2024.03.05-4-android
2024.02.06-11-android
2024.02.06-8-android
2024.01.09-5-android
2023.12.20-4-android
2023.12.18-11-android
2023.12.18-10-android
2023.11.17-17-android
2023.09.22-27-android
2023.08.18-8-android
2023.07.13-10-android
2023.06.04-13-android
2023.05.08-7-android
2023.04.02-7-android
2023.03.05-5-android
2023.03.02-3-android
2023.02.13-11-android
2023.01.25-3-android
2022.12.18-12-android
2022.11.24-3-android
2022.11.02-2-android
2022.09.22-3-android
2022.09.15-5-android
2022.08.23-5-android
2022.07.27-3-android
2022.07.01-6-android
2022.06.29-3-android
2022.06.18-2-android
2022.05.31-10-android
2022.05.24-2-android
2022.05.20-5-android
2022.05.20-4-android
2022.05.19-4-android
2022.04.27-2-android
2022.03.23-4-android
2022.02.19-1-android
2022.02.16-29-android
2022.02.11-17-android
2022.01.15-3-android
2022.01.12-6-android
2022.01.12-3-android
2021.12.01-4-android
2021.11.04-2-android
2021.10.22-10-android
2021.10.15-15-android
2021.10.09-2-android
2021.10.08-0-ios
2021.09.14-4-android
2021.09.01-6-android
2021.08.26-13-ios
2021.08.26-14-android
2021.08.19-11-android
2021.08.19-6-android
2021.08.14-4-android
2021.08.09-1-ios
2021.08.07-4-ios
2021.08.05-2-android
2021.08.04-3-ios
2021.07.08-3
2021-07-03
2021.07.04-2
2021-06-23
2021-06-20
2021-06-12
2021-06-07
2021-05-21
2021-05-08
2021-05-05
2021-04-24
Labels
Clear labels
Accessibility
Address
Android
Android Auto
Android Automotive (AAOS)
API
AppGallery
AppStore
Battery and Performance
Blocker
Bookmarks and Tracks
Borders
Bug
Build
CarPlay
Classificator
Community
Core
CrashReports
Cycling
Desktop
DevEx
DevOps
dev_sandbox
Directions
Documentation
Downloader
Drape
Driving
Duplicate
Editor
Elevation
Enhancement
Epic
External Map Datasets
F-Droid
Fonts
Frequently User Reported
Fund
Generator
Good first issue
Google Play
GPS
GSoC
iCloud
Icons
iOS
Legal
Linux Desktop
Linux packaging
Linux Phone
Mac OS
Map Data
Metro
Navigation
Need Feedback
Night Mode
NLnet 2024-06-281
No Feature Parity
Opening Hours
Outdoors
POI Info
Privacy
Public Transport
Raw Idea
Refactoring
Regional
Regression
Releases
RoboTest
Route Planning
Routing
Ruler
Search
Security
Styles
Tests
Track Recording
Translations
TTS
UI
UX
Walk Navigation
Watches
Web
Wikipedia
Windows
Won't fix
World Map
No labels
Accessibility
Address
Android
Android Auto
Android Automotive (AAOS)
API
AppGallery
AppStore
Battery and Performance
Blocker
Bookmarks and Tracks
Borders
Bug
Build
CarPlay
Classificator
Community
Core
CrashReports
Cycling
Desktop
DevEx
DevOps
dev_sandbox
Directions
Documentation
Downloader
Drape
Driving
Duplicate
Editor
Elevation
Enhancement
Epic
External Map Datasets
F-Droid
Fonts
Frequently User Reported
Fund
Generator
Good first issue
Google Play
GPS
GSoC
iCloud
Icons
iOS
Legal
Linux Desktop
Linux packaging
Linux Phone
Mac OS
Map Data
Metro
Navigation
Need Feedback
Night Mode
NLnet 2024-06-281
No Feature Parity
Opening Hours
Outdoors
POI Info
Privacy
Public Transport
Raw Idea
Refactoring
Regional
Regression
Releases
RoboTest
Route Planning
Routing
Ruler
Search
Security
Styles
Tests
Track Recording
Translations
TTS
UI
UX
Walk Navigation
Watches
Web
Wikipedia
Windows
Won't fix
World Map
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
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#7482
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Historically, Organic Maps supports encoded location links: https://omaps.app/0yxdjqU7NK/Amathus
10 years ago it was important to save a few bytes when using SMS for sharing. Now it's better to share clear coordinates like this: https://omaps.app/34.71399,33.14058/Amathus
Coordinates are already supported by omaps.app url parser, but they are not supported yet on iOS and Android. The parser code should be easy to fix in the C++ code, plus add a few unit tests.
After implementing the parser and releasing app updates, the next step is to change/update the link encoder to produce readable links with coordinates instead of encoded sequence.
maybe OT, but can we use the format
https://omaps.app/{latitude},{longitude}
as deeplinks to open correctly in the browser (when the app is not installed)?
Looks like it is working in the browser, but not in Android/iOS as you wrote
Related #6381
@mirko77
it already works in the browser.@biodranik
yes, but not on Android or iOS, so we cannot use itAm I mistaken?
The other format
https://omaps.app/map?v=1&ll=22.17319,-159.65687&n=Kalalau%20Camping&ll=22.17168,-159.66096&n=Dream%20Beach&ll=22.17182,-159.65776
works in Android and iOS, but on the web, it always goes to the middle of the ocean, no matter the lat and long passed.
This issue is exactly about implementing it for iOS and Android.
Where'd this format come from? AFAIK OM doesn't support sharing multiple coords at the same time
@RedAuburn
From https://omaps.app/api
oh huh, fair enough 👍️
@biodranik
im trying to work on a fix to allow links of this kind https://omaps.app/34.71399,33.14058/Amathus , to be properly handled by the app , im fairly new to the codebase could you point me in the right direction as i work on thishow are existing URLs of the kind https://omaps.app/0yxdjqU7NK/Amathus, being parsed , decoded and handled withing the app
if im not wrong the intended fix is to write a c++ parser similar to https://github.com/organicmaps/url-processor/blob/master/src/ge0.ts , for the android app that can handle url's of this kind :
https://omaps.app/34.71399,33.14058/Amathus
?Please check ge0 folder in the repo. Old format should also be supported, so the parser should be extended.
Note that iOS app should also properly support it. Integrating C++ code into Swift/ObjC is straightforward, and
@kirylkaveryn
can help you if necessary after C++ implementation with tests is ready and integrated into Android.Okay , got it . thanks !
mentioned in merge request !10231