Questions tagged [gmsplace]

GMSPlace encapsulates information about a physical location, including its name, location, and any other information we might have about it. This class is immutable. Its component of Google Map API.

33 questions
12
votes
6 answers

How to get country specific result with Google autocomplete place api ios sdk?

I'm using below method to get autocomplete result for input string of GMSPlacesClient class: - (void)autocompleteQuery:(NSString *)query bounds:(GMSCoordinateBounds * GMS_NULLABLE_PTR)bounds …
Shrejas
  • 468
  • 1
  • 4
  • 15
4
votes
1 answer

GMSPlace - can I get this from a set of coordinates

I have coordinates from a user tapping the map on the screen. Can I get the GMSPlace from the Google API by using the coordinates. Couldn't find anything in the documents or online that helped. Thanks
PruitIgoe
  • 6,166
  • 16
  • 70
  • 137
3
votes
0 answers

Remaining distance and path on GMSPath from current Location

I am trying to update remaning distance and duration while traveling by using Google map API. I have a whole path, duration and distance but when he cover the distance, how can I get the the remaining distance and duration? I have tried…
Nasir Khan
  • 723
  • 4
  • 12
  • 24
3
votes
1 answer

Get opening hours from GMSPlace in iOS

Is there a way to get opening hours for a GMPlace in iOS SDK? I could only find - (GMSPlacesOpenNowStatus) openNowStatus [read, assign] which doesn't contain opening hours, and anyhow appears to be buggy and always return "unknown" (reference:…
Kreutzer
  • 328
  • 4
  • 12
3
votes
1 answer

Splunk is conflicting with GMSServices

splunk is conflicting with GMSServices which make app crash. if i start splunk session GMSPicker crash the application and shows. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) ->…
Alizain Prasla
  • 744
  • 2
  • 15
  • 37
3
votes
1 answer

App Crash in GMSPlace Picker while running on device.(iOS 8.3)

I'm using following code to pick location as suggested by Google https://developers.google.com/places/ios-api/placepicker var placePicker: GMSPlacePicker? override func viewDidLoad() { super.viewDidLoad() …
Shrikant K
  • 1,988
  • 2
  • 23
  • 34
3
votes
1 answer

App Crash while using GMSPlace Picker in ios 9

GMSPlacePicker is getting crash when user does not select any place from picker view and press Back button. ERROR : -[UIWindow _shouldAnimatePropertyWithKey:]: message sent to deallocated instance Code: - (void)findNearByPlace…
Ritu pal
  • 306
  • 2
  • 11
2
votes
1 answer

Value of type 'GMSPlace' has no member 'viewport' in GooglePlaces Cocoapod 3.3.7

After a few years the problem described in this question reappears, in the latest versions of GooglePlaces cocoapod (3.3.7) the viewport field is not accessible although the field is present in the class interface // // GMSPlace.h // Google Places…
NucciDev
  • 93
  • 5
2
votes
1 answer

How to access Google Maps marker data stored in marker.userData in Swift

I am currently trying to dynamically display data in a Google Maps markerInfoWindow about it's specific location using the marker.userData property. This is my function that sets marker.userData and puts markers on my map instance: func…
zlyt
  • 259
  • 5
  • 23
2
votes
3 answers

AndroidStudio - Program type already present: com.google.android.gms.location.places.zza

First : Let me explain the situation , i have an sdk works with google Api and implementing a lot of dependencies. then i implement the lib into my new app which is also implements dependencies. everything goes fine until i try to run the app. When…
2
votes
0 answers

Non-void return value in void function

How else can I take this variable out of this function so I can send the coordinates to another function. I do not see why this is giving me this error when I try to return the place value. placesClient!.currentPlaceWithCallback {…
maz
  • 349
  • 2
  • 3
  • 15
1
vote
0 answers

To get GMSPlace without using didAutocompleteWithPlace in swift

In my swift application there is a "textfield" for searching place using "GooglePlaces".I want to make the place default to "Los Angeles".So if the user is not selecting any place then the app will take the default address.So how to get the…
Tapan Raut
  • 850
  • 6
  • 17
1
vote
2 answers

error: cannot access zzbgl. class file for com.google.android.gms.internal.zzbgl not found

I want to show location of places in my app. I get compile error of cannot access zzbgl This is my gradle file : dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) //noinspection GradleCompatible implementation…
1
vote
1 answer

Swift 4 Get multiples places from Google Places API

I have trouble with fetching multiples places from Google Places API. The problem is... if i fetch only one pin type like Bars, its ok, no problem. But if i trying to get Restaurants, Bars, Casino... multiples types, it gives my only first place, in…
George Heints
  • 1,303
  • 3
  • 20
  • 37
1
vote
0 answers

IOS GMSGeocoder not accurate

I am developing an iOS app that is using google maps and google places. I am using GMSGeocoder to reverse geocode coordinates because I need to get the sublocality and locality. However, I sometimes receive sublocality as nil, but on my android…
1
2 3