Is there any API service available which can be called from inside Google Maps ios sdk just like GMSAutocompleteFilter?
GMSAutocompleteFilter *filter = [[GMSAutocompleteFilter alloc] init];
filter.type = kGMSPlacesAutocompleteTypeFilterCity;
[_placesClient autocompleteQuery:@"Sydney Oper"
bounds:nil
filter:filter
callback:^(NSArray *results, NSError *error) {
if (error != nil) {
NSLog(@"Autocomplete error %@", [error localizedDescription]);
return;
}
for (GMSAutocompletePrediction* result in results) {
NSLog(@"Result '%@' with placeID %@", result.attributedFullText.string, result.placeID);
}
}];
I know that using this https://maps.googleapis.com/maps/api/directions/json?origin=%@&destination=%@&key=%@
I can implement and retrieve the response. But the problem is that this URL doesn't returns overview_path and lat_lngs which is only available in Latest Google Maps Directions Service Javascript API.