From a570d855f7c974ef123f65b3475f154ff1f5e061 Mon Sep 17 00:00:00 2001 From: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> Date: Sat, 21 Sep 2024 16:15:56 +0200 Subject: [PATCH] [ios][placepage] Add Go Map!! to Open in Another App Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> --- iphone/Maps/OMaps.plist | 1 + .../OpenInAppActionSheet/OpenInApplication.swift | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/iphone/Maps/OMaps.plist b/iphone/Maps/OMaps.plist index 3686cc75be..d4a84f0cee 100644 --- a/iphone/Maps/OMaps.plist +++ b/iphone/Maps/OMaps.plist @@ -100,6 +100,7 @@ moovit uber waze + gomaposm LSRequiresIPhoneOS diff --git a/iphone/Maps/UI/PlacePage/Components/OpenInAppActionSheet/OpenInApplication.swift b/iphone/Maps/UI/PlacePage/Components/OpenInAppActionSheet/OpenInApplication.swift index 634bf34f51..71727255ad 100644 --- a/iphone/Maps/UI/PlacePage/Components/OpenInAppActionSheet/OpenInApplication.swift +++ b/iphone/Maps/UI/PlacePage/Components/OpenInAppActionSheet/OpenInApplication.swift @@ -9,6 +9,7 @@ enum OpenInApplication: Int, CaseIterable { case moovit case uber case waze + case goMap } extension OpenInApplication { @@ -40,6 +41,8 @@ extension OpenInApplication { return "Uber" case .waze: return "Waze" + case .goMap: + return "Go Map!!" } } @@ -66,6 +69,8 @@ extension OpenInApplication { return "uber://" case .waze: return "waze://" + case .goMap: + return "gomaposm://" } } @@ -102,6 +107,8 @@ extension OpenInApplication { return "\(scheme)?client_id=&action=setPickup&pickup=my_location&dropoff[latitude]=\(latitude)&dropoff[longitude]=\(longitude)" case .waze: return "\(scheme)?ll=\(latitude),\(longitude)" + case .goMap: + return "\(scheme)edit?center=\(latitude),\(longitude)&zoom=\(zoomLevel)" } } }