Tag: google maps api 3

Google maps polyline not rendering perfectly

I am drawing polyline using latest google maps API for iOS. I am constructing polyline point by point but it is not rendering properly as when i zoom out the polyline vanishes(not in literal terms) from the map and when i zoom in it simply shows the line. This is how polyline appears when zoomed […]

Finding nearest places using GoogleAPI

I am developing an Iphone application in which i am using GoogleAPI to find the nearest Restrooms within 500 meters. But the thing i want to do is to find the places in sorted pattern starting from places whose distance is less from current location. Thanks.

Display spiderfy leaflet annotation MKMapView

I want to show 100 map points using MKMapView on same lat longs. Please see the link. Same thing i want in iphone.

MapKit – Make route line follow streets when map zoomed in

I wrote simple application which draws route between two locations on MapKit. I am using Google Map API. I used resources I found online and here’s the code I am using to make request to Google: _httpClient = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:@”http://maps.googleapis.com/”]]; [_httpClient registerHTTPOperationClass: [AFJSONRequestOperation class]]; [_httpClient setDefaultHeader:@”Accept” value:@”application/json”]; NSMutableDictionary *parameters = [[NSMutableDictionary alloc] init]; [parameters […]

Facebook Application that Searches for nearest Place

Is it possible to create a facebook application that would display a list of the nearest place of interest location? Much like the current existing Urbanspoon Application (http://www.urbanspoon.com/c/338/Perth-restaurants.html) but on facebook. Can somebody please point me to the right direction 🙂

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” : […]