search location like iCal add event location in ios - ios

I want to implement same functionality like iCalendar > add event> Location search in my iOS app.I am using google place autocomplete api but it only returns 5 records at a time. Is there any other way to do it?
Any help will be appreciated.
Thanks,
Paneri

You can't get more than 5 results. Looking at Google's Documentation
predictions contains an array of places, with information about the
place. See Place Autocomplete Results for information about these
results. The Google Places API Web Service returns up to 5 results.

Related

Map with nearby point of interests like dat-trucker app

This might not looks like a real question, but I have a use-case for which I am not able to find the solutions. I have to show few point of interests like 'walmart','truck wash', 'rest-area' etc. My problem is Google Places map API doesn't give the filter option on the nearby searches and mapkit MKLocalSearch returns data beyound the bound region. My requirement is same like the Dat-trucker app. I am wondering, how they are showing "POI" on their maps. Seems like they are using MapKit, cause there is no attribution for google.Is there any alternative for Google Places API which can return the nearby places with filter functionality. I am attaching screenshot of the reference app.
You can give the Yep Fusion API a try. They provide nearby businesses which is what the Google Places API does.

Google Places iOS SDK: How to Get Point of Interest Based on Text Search

If you go to google.com and search "Attractions in London", in the result page on the first line you will see a list of Point of Interest (POI) with its name, photo, and description.
I want to get this list of POI on my iOS app, without having the user typing "Attractions in London"; I will pre-load this list as suggested places in London. I've read through the Google Places API for IOS here: https://developers.google.com/places/ios-api/start. But I could not find any sample to search by text.
The only way I found is by accessing the Google Place Web Service API here: https://developers.google.com/places/web-service/search and do the text search. Get the JSON result and map it to my custom google place object.
Does anybody has experience doing this using client-site API iOS SDK? Not sure if I missed anything in their guide, or it's not documented or Web Service API the only way..
Thanks in advance!

Google Place Picker API Query for App-scoped Places?

I have recently been looking at the following link to add to my application. It is the Google Place Picker API. I also know how to add places to the list of places that the Place Picker API uses to query for so that my custom places can appear in Place Picker API. However, I want it so that the Place Picker API only queries for just the places that have been created only by my application, and not for any other places that the Google Places API provides. I have found that this example query, under the scope key, helps me find if the Place created was created via my app or by Google. I want it so that the Place Picker API queries only for the Places created by my app. Is there any way to do this? That would be much appreciated. Thanks!
It's not possible, sorry. Neither the iOS or Android Place Pickers have an option to do this.
In fact both the Android Place class and the iOS GMSPlace class lack the scope property, which only exists on the Places API web service today.
You'd have to build this yourself, e.g. by displaying a map and adding markers to it for your places, etc, rather than using the Place Picker widget from the Google Places API for iOS (or Android).

Getting closest place using google places api under iOS

It seems to me several things I can do using google places web service api, cannot be done using google places ios sdk.
What I want to achieve is just getting the closest pizzeria and its information like address and telephone number. I don't use maps.
I don't see in the iOS sdk a method or class to search places close a specific location with several conditions (like type=restaurant and keyword=pizza).
However I can do that using the web service directly, without an sdk, but of course requires more code.
Am I right? Is that normal? I mean, that the iOS version has not the same functionality than the webservice, while I guess it is just a wrapper of the web service.
Web service sdk:
https://developers.google.com/places/webservice/search
iOS sdk:
https://developers.google.com/places/ios/
Thanks.
Unfortunately Places API for iOS doesn't support "condition" likes types or keywords.
You can however implement autocomplete.
The autocomplete service in the Google Places API for iOS returns
place predictions in response to a text-based location search query.
The request includes a textual search string and optional filter
criteria. You can use this service to provide autocomplete
functionality as the user types, by returning places such as
businesses, addresses and points of interest.

Google Maps autocomplete Functionality from Apple Maps for Objective C?

I need to implement autocomplete Functionality for a City-Name Search in Objective C.
Basically at the Moment I would use the Google Maps autocomplete Functionality from here: https://developers.google.com/places/documentation/autocomplete
But I don't like displaying the powered by google - logo.
That's the reason why I'm asking here, is there a way to implement autocomplete Functionality using Apple Maps API or similar ?
Thanks for any advice
Check this out - Yahoo YQL console.
There you can put queries like this - it gives you all places starting with San:
select * from geo.places where text="San%"
The resulting JSON / XML can act as data source to what you are trying to display for autocomplete results.
As I can see they allow up to some number of free queries for non-commercial use, and beyond that they charge. You may check it out here and here.
If you dont want to implement it yourself, you can use this service called 'Autocomplete as a Service' which is specifically written for these purposes. You can access it here - www.aaas.io. It does support large datasets and you can apply filters as well. You just add your data and use the API URL in your autocomplete data source.
Disclaimer: I am founder of it. I will be happy to provide this service to you.

Resources