diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx
index 39a90b5c8..8e2b6a3cd 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/ContactInformation/index.tsx
@@ -14,16 +14,16 @@ import type { ContactInformationProps } from "@/types/components/hotelPage/sidep
export default async function ContactInformation({
hotelAddress,
- coordinates,
contact,
socials,
ecoLabels,
+ hotelName,
}: ContactInformationProps) {
const intl = await getIntl()
const lang = await getLang()
- const { latitude, longitude } = coordinates
- const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${latitude},${longitude}`
-
+ const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(
+ `${hotelName}, ${hotelAddress.streetAddress}, ${hotelAddress.zipCode} ${hotelAddress.city}`
+ )}`
return (
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx
index db880a182..351d66aec 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/AboutTheHotel/index.tsx
@@ -13,11 +13,11 @@ import type { AboutTheHotelSidePeekProps } from "@/types/components/hotelPage/si
export default async function AboutTheHotelSidePeek({
hotelAddress,
- coordinates,
contact,
socials,
ecoLabels,
descriptions,
+ hotelName,
}: AboutTheHotelSidePeekProps) {
const intl = await getIntl()
@@ -34,10 +34,10 @@ export default async function AboutTheHotelSidePeek({
diff --git a/apps/scandic-web/components/ContentType/HotelPage/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/index.tsx
index 5f8342675..b7f849203 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/index.tsx
@@ -261,11 +261,11 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
/>
{pageSections.wellness ? (
{intl.formatMessage({
diff --git a/apps/scandic-web/components/HotelReservation/MyStay/BookingSummary/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/BookingSummary/index.tsx
index e5f21339f..fd07d00f3 100644
--- a/apps/scandic-web/components/HotelReservation/MyStay/BookingSummary/index.tsx
+++ b/apps/scandic-web/components/HotelReservation/MyStay/BookingSummary/index.tsx
@@ -21,8 +21,9 @@ interface BookingSummaryProps {
export default function BookingSummary({ hotel }: BookingSummaryProps) {
const intl = useIntl()
- const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${hotel.location.latitude},${hotel.location.longitude}`
-
+ const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(
+ `${hotel.name}, ${hotel.address.streetAddress}, ${hotel.address.zipCode} ${hotel.address.city}`
+ )}`
return (
diff --git a/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/NotCancelled/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/NotCancelled/index.tsx
index d0a9014f7..50f4247f3 100644
--- a/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/NotCancelled/index.tsx
+++ b/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/NotCancelled/index.tsx
@@ -13,9 +13,11 @@ import styles from "./notCancelled.module.css"
export default function NotCancelled() {
const intl = useIntl()
- const location = useMyStayStore((state) => state.hotel.location)
+ const { hotel } = useMyStayStore((state) => state)
- const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${location.latitude},${location.longitude}`
+ const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(
+ `${hotel.name}, ${hotel.address.streetAddress}, ${hotel.address.zipCode} ${hotel.address.city}`
+ )}`
return (
<>
diff --git a/apps/scandic-web/types/components/hotelPage/sidepeek/aboutTheHotel.ts b/apps/scandic-web/types/components/hotelPage/sidepeek/aboutTheHotel.ts
index ff55f01a0..6da1777fb 100644
--- a/apps/scandic-web/types/components/hotelPage/sidepeek/aboutTheHotel.ts
+++ b/apps/scandic-web/types/components/hotelPage/sidepeek/aboutTheHotel.ts
@@ -1,16 +1,12 @@
-import type {
- Hotel,
- HotelAddress,
- HotelLocation,
-} from "@scandic-hotels/trpc/types/hotel"
+import type { Hotel, HotelAddress } from "@scandic-hotels/trpc/types/hotel"
export type AboutTheHotelSidePeekProps = {
hotelAddress: HotelAddress
- coordinates: HotelLocation
contact: Hotel["contactInformation"]
socials: Hotel["socialMedia"]
ecoLabels: Hotel["hotelFacts"]["ecoLabels"]
descriptions: Hotel["hotelContent"]["texts"]
+ hotelName: Hotel["name"]
}
export type ContactInformationProps = Omit<