Tag: google maps api 3

How to draw a proper polylines on google maps

I have successfully drawn a polyline from point a to point b, but for some reason , it shows linear line not the correct waypoints Here’s the code let path = GMSMutablePath() path.addLatitude(3.1970044, longitude:101.7389365) path.addLatitude(3.2058354, longitude:101.729536) let polyline = GMSPolyline(path: path) polyline.strokeWidth = 5.0 polyline.geodesic = true polyline.map = mapView I was expecting that it […]

Determine if point is within bounding box

How would you determine if a given point is within the bounding box? My point is 48.847172 , 2.386597. Boundingbox: “48.7998602295”, “48.8198640442”, “2.46138595581”, “2.48138619423”

Google Maps Directions url error when adding multiple waypoints

I am trying to add multiple waypoints to my google directions request. When I add a single waypoint like https://maps.googleapis.com/maps/api/directions/json?&origin=51.507679,-0.125004&waypoints=51.524151,-0.123174&destination=51.495777,-0.108642&mode=walking it works fine but when I try to add multiple waypoints like https://maps.googleapis.com/maps/api/directions/json?&origin=51.606502,0.527309&waypoints=51.507679,-0.125004|51.524151,-0.123174&destination=51.495777,-0.108642&mode=walking i receive a ‘unsupported URL’ error. What is the correct way to add multiple waypoints? Thanks

Issues after updating to IOS11 and Xcode9!! “com.google.Maps.LabelingBehavior”, “TIC Read Status”

I have updated my phone and Xcode to the most recent update and I am getting tons of warnings. First one is 2017-09-21 00:23:15.669466+0100 The Kallos[12068:1279021] TIC Read Status [1:0x0]: 1:57 and there is literally 2-3 posts about this which doesn’t even explain what it is! This is another warning, I found a similar post […]

Getting status “REQUEST_DENIED” after fetching data from google places API

I have done that NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@”https://maps.googleapis.com/maps/api/place/search/json?location=30.722322,76.76126&radius=500&types=food&sensor=true&key=any_apiKey”]]; NSURLResponse *response; NSError *error; NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; NSString *strResponse = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]; NSLog(@”%@”,strResponse); SBJSON *sbJason = [[SBJSON alloc] init]; NSMutableDictionary *getPlaceList = [sbJason objectWithString:strResponse]; // But i am getting this- { “html_attributions” : [], “results” : [], “status” : […]

How to compare two routes using google direction apis or some other apis for iPhone app

I want to compare two routes to check if they are same or not in my iPhone app. There is a person X who wants to go to point A to point B and another person wants to go to point A1 to point B1. I can get a route between A to B using […]

Is there a Google Maps API for iOS which offers traffic information?

I would like to know if someone has got documentation about the Google Maps API, I’m only looking for the traffic live information I would like to implement it on my iOS application. Does such an API exist?

iPhone: Using Google to get directions

In order to get directions, Google provides this nice URL: Sample here… How can I use the information that Google provides to get the same direction line on a MKMapView in an app?

Google Maps in iOS6

Coming back on this Google Maps support on iOS 6. This is a serious and constructive issue that has to be addressed for a lot of apps developers who already released their Apps on iOS 5 and tied to legal compliance towards Google terms of service http://code.google.com/apis/maps/iphone/terms.html. The fact is the following: applications using Google […]

Change GMSMapView default map background color in iOS

The GMSMapView in iOS has a default background color of tan, or something like it. I have a requirement to change that color to white. I’ve tried using a subclass of GMSTileLayer without success (or errors). I need to place custom map overlays with white backgrounds onto the map view. In areas without the overlays, […]