All Questions
Tagged with google-places-api swift
288
questions
0
votes
0
answers
17
views
How to resolve "'-[GMSPlacesServiceRequestTransformer transformURLRequest:]: unrecognized selector sent to instance 0x303c16f40'" error?
I upgraded to Google Places API version 9.0.0. I enabled the new API in my cloud.
My code compiled and I am able to see the view controller to search a place.
I can enter a place and select the place ...
0
votes
0
answers
35
views
Google Places rejection iOS
I am in the middle of developing an iOS app where there is a request to Google places and the results are displayed. Here is the code for fetching the information:
func fetchPlaceDetails(placeId: ...
0
votes
0
answers
47
views
_OBJC_CLASS_$ errors on M1 Macbook - Google Maps-Places
I recently moved my code base from an old intel based macbook to a new M1 based macbook. All of my cocoapods went to hell, so I swapped all of them for swift packages and completely removed all ...
0
votes
0
answers
63
views
iOS - GMSPlacesClient findAutocompletePredictions support multiple language
My iOS app has multilingual support and im using GMSPlacesClient-findAutocompletePredictions to search for city , but haven't found any way to set the language for it.
It is using the device's ...
-1
votes
1
answer
74
views
How can i add GMSAutocompleteSessionToken to GMSAutocompleteViewController on iOS
I found the documentation not clear enough on how to add a sessionToken when instantiating a built-in autocomplete controller (GMSAutocompleteViewController).
Is this even needed / possible ?
Could ...
2
votes
1
answer
3k
views
Google Place AutoComplete In SwiftUI
I am integrating Google Places in my SwiftUI app. I have searched a lot but didn't get any proper result for SwiftUI. I tried the solution in the comments of place autocomplete but didn't get my ...
1
vote
0
answers
127
views
GMSAutocompleteViewController crash on ios 15 only on release mode
I am just presenting GMSAutocompleteViewController but it is crashing even though i have made separate application. Crash only happen on release mode but not on debug mode. But ealier ios 15 ...
0
votes
0
answers
35
views
How to pass more information through GMSmarker
How can I pass more data with GMSmarker? For example how can I pass the place_ID? there is only one option for marker1.title. I tried marker2.title but it says marker2 could not be found in GMSmarker()...
1
vote
2
answers
107
views
Detecting a tap on a marker in a forEach Loop and print
To detect a tap on a marker on GoogleMaps I should use this function.
func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool {
print("Do what ever you want.")
...
0
votes
1
answer
304
views
How to fix UI of GMSAutocompleteViewController in iOS 15?
Before iOS 15, the Autocomplete feature was totally fine. However, from iOS 15, the GMSAutocompleteViewController has the bug as can be seen in the following screenshot. The screenshot also shows the ...
0
votes
1
answer
225
views
GMSPlace Auto Complete Always return same Place coordinate
the return of auto Autocomplete always give the same value.
func viewController(_ viewController: GMSAutocompleteViewController, didAutocompleteWith place: GMSPlace) {
print("Place name: \...
0
votes
0
answers
108
views
Google Places returning different values
When I use this:
url = URL(string: "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=\(region.center.latitude),\(region.center.longitude)&radius=15000&type=...
5
votes
0
answers
309
views
Firebase Storage / Google Places - async - await support
I am moving my swift project to Swift 5.5, taking advantage of async await and trying to learn the syntax effectively while I am at it.
I have been successful so far in moving some functions across - ...
0
votes
0
answers
94
views
Get a day from opening_hours google autocomplete API
I need to get a day from restaurant opening hours(Autocomplete) api. I can get opening and closing hours and could not get the day. This is my code.
if place.openingHours?.periods != nil{
...
0
votes
1
answer
280
views
Update mapview data in separate view controller
Note: you don't have to be familiar with Google Maps SDK or Places SDK to answer this question. Hi I am using a GMSMapView on my main MapViewController and GMSPlacesClient from Places SDK on a child ...