Can google places be shared in KMM (swiftui and ko...
# multiplatform
d
Can google places be shared in KMM (swiftui and kotlin)? Just google places, not google maps
h
What are „google places“? A class defined in the google maps Java/Android sdk? Only, if this sdk is Kotlin Multiplattform sdk, I guess, this isn’t the case. You simple could create your own class.
v
Google Places is the API for searching and getting details about literal places available on Google Maps. Like listing shops around some coordinates, or searching addresses with autocompletion, etc. No actual maps involved, only metadata about places. Google Maps has an iOS SDK and a Android SDK. No Multiplatform SDK. Unless someone has done it before, you might need to implement your own Kotlin Multiplatform wrapper around these in order to share the logic. Some
expect/actual
magic to fill the gap.
b
Google Places API can be used with any HTTP client. There are also Multiplatform solutions like Jetbrains Ktor: https://ktor.io/
195 Views