Skip to content

Commit

Permalink
Merge pull request #73 from KjellBerlin/Fix-google-maps-link-for-mobile
Browse files Browse the repository at this point in the history
Fix google maps link for mobile
  • Loading branch information
KjellBerlin authored Sep 23, 2024
2 parents 611dd1c + 5e302ca commit 6b9cc6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/carbonara/core/address/Address.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data class Address(
}

fun createGoogleMapsLink(): String {
return "https://www.google.com/maps/place/?q=place_id:$googlePlaceId"
return "https://www.google.com/maps/search/?api=1&query=%20&query_place_id=$googlePlaceId"
}
}

2 changes: 1 addition & 1 deletion src/test/kotlin/com/carbonara/core/address/AddressTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AddressTest {
@Test
fun `Happy case - googleMapsLink`() {
val result = ADDRESS.createGoogleMapsLink()
assertEquals("https://www.google.com/maps/place/?q=place_id:$GOOGLE_PLACE_ID", result)
assertEquals("https://www.google.com/maps/search/?api=1&query=%20&query_place_id=$GOOGLE_PLACE_ID", result)
}

companion object {
Expand Down

0 comments on commit 6b9cc6e

Please sign in to comment.