google-maps-sdk-ios

iOS, how to display route between two points using Google Places Api?

ぃ、小莉子 提交于 2019-12-04 17:00:36
I've been searching for how to draw a route between two points using Google Places API in iOS , but I have not found something interesting. The only way you can draw route between two points is to call web services and to parse JSON into your app, to route a route between two points. Here is a reference. The question : Is there any sample code that can help me on how I can draw route between two points, an origin(based on user current location), and a destination. I used this library , very powerful... with this you can draw directions between two points and much more You can get this tutorial

Search nearby in iOS Maps

我与影子孤独终老i 提交于 2019-12-04 14:16:05
问题 I am trying to build a simple application using MapKit that will automatically search for a specific place when the app launches and drop pin(s) on the map at the locations(s). I am seeing all sorts of ways to load locations (lat/lon, etc), but nothing that lets me search for a specific business name, restaurant name, etc. I am expecting to work with Apple Maps. However, if Google Maps would be a better solve than so be it. Any help would be appreciated. Thanks 回答1: iOS >= 6.1 provides

Draggable marker with Google Maps SDK for iOS

好久不见. 提交于 2019-12-04 09:07:25
问题 Has anybody figured out how to implement draggable markers with the new Google Maps SDK for iOS? The API does not provide it natively, yet. Feature request is already submitted. If I could get a hold of the underlying view of the GMSMarker, I could intercept the Touch events. Anybody tried this? 回答1: As of today, You don't need to use external classes, just make your markers "draggable" GMSMarker *myMarker = [[GMSMarker alloc] ...]; ... [myMarker setDraggable: YES]; // Use some kind of data

Google Maps iOS SDK: Distance between east and west points on the map

喜欢而已 提交于 2019-12-04 08:45:37
How can I calculate the distance (in meters) between the east point and the west point of the map? Suppose the user changed the position scrolling the map, then I catch the movement with mapView:didChangeCameraPosition: delegate method, but I don't know how to calculate the distance. Here's a helper function which can be used to calculate the distance in metres between two coordinates: double getDistanceMetresBetweenLocationCoordinates( CLLocationCoordinate2D coord1, CLLocationCoordinate2D coord2) { CLLocation* location1 = [[CLLocation alloc] initWithLatitude: coord1.latitude longitude: coord1

Xcode Google Maps Search Bar

给你一囗甜甜゛ 提交于 2019-12-04 07:23:04
I'm making an iPhone location based app and I'm having trouble with the last aspect of it. I was wondering if anyone knows how to integrate a search bar that correlates with the map that we can use from MKMapView . It's literally a search bar above the map that the user can type in an area and it will take them there. Is this possible? I've looked around for tutorials but I have only found how to make an app with a map view, annotations and adding callouts. Saxon Druce What you're looking for is geocoding - the process of turning an address in your search bar into a latitude/longitude

How to integrate new Google map app with ios app

£可爱£侵袭症+ 提交于 2019-12-04 06:10:01
Google Map is now available in Appstore for IOS 6. I have a application which utilises MAPKIT and WebView to show Driving direction using Google webservices. For showing Route in Native Apple MAP app, i use codes similar to this.. MKMapItem *mapItem = [[MKMapItem alloc]initWithPlacemark:place]; NSDictionary *options = @{ MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving }; [mapItem openInMapsWithLaunchOptions:options]; I want to show Route to the user in the New Google MaP App installed on user device, embeed its UI within a View in my app. Do guide me. Goole have released

Is there a Google Maps equivalent to mkmapsnapshotter?

巧了我就是萌 提交于 2019-12-04 05:40:13
I have a UITableView which may potentially contain a large number of cells, and in some cells I want a UIImageView showing a map of a location, the coordinates of which are known only at runtime. I want the table view to scroll smoothly and I want the maps in the cells to not be scrollable at all. I've been directed to avoid Apple Maps. Besides, MKMapSnapshotter is iOS 7 and up. I have to support iOS 6. So is Google Maps image API my best option? I'm already using the Google Maps iOS SDK anyway, so I'd like to use it for this if possible. But does it have this feature? An equivalent to

How to hide default labels on Google Maps iOS SDK

别等时光非礼了梦想. 提交于 2019-12-04 04:37:09
问题 I am using GoogleMapSDK v1.8 on my latest iOS app. Is it possible to display a normal map ( kGMSTypeNormal ) without any of the default labels? For example, hiding some or all of the following: city labels, road labels, public transport icons, etc . I hope there is a way to do this. Please guide me the correct way to achieve my objective. 回答1: Map Types You can customize your map with one of several map types. A map's type governs the overall representation of the map. For example, an atlas

No such module 'GoogleMaps' found however it is installed

╄→尐↘猪︶ㄣ 提交于 2019-12-04 03:52:38
I have installed the 'GoogleMaps' pod using cocoa pods and the project was building correctly, however when I transferred my project to another device through iCloud (the projects directory is in iCloud) the GoogleMaps pod stopped working. I attempted to simply run pod install again however this mad no difference, the pod is clearly there and the pod install was successful. I am beyond confused. First off try to clean the project by Command + Shift + Options + K If I'm not mistaken, GoogleMaps framework is built from Objective-C so if there's still a problem then do the following steps: Create

Is there a Google Map event listener for panning or zooming map?

痞子三分冷 提交于 2019-12-04 01:41:04
I want to be able to detect if the user has zoomed out or moved the map center. I have seen post about an event listener but in Javascript and I am trying to see if there is anything in the Google Maps iOS SDK similar to that. I see that iPad Yelp app has something like that, where if you zoom in/out or move the map a Tool Bar appears from the bottom and lets the user know if they want to "Redo Search In Area". I want to do something similar like that and reload the map with other/more markers. I have looked at Google Map's Reference guide but have not found anything, unfortunately. If anyone