Im working on an app which requires the lat/long to display an annotation on a map. The user should be able to search for a business name and a allow him/her to select the correct one ...once he selects a pin annotation should be display on a map.
Currently I am able to search for a specific address using a search bar. I'm also able to display the pin annotation on the map. Is there a way to get the address and location for a business just like Uber and Lyft do it. For example, If i type the name of restaurant what is the best way to display restaurant options and 2. get the actual location (lat/long) and address for this restaurant.
Do we need to use an API like Google FourSquare etc?
Related
In my app I am using google's autocomplete query. Do I have to show "powered by Google" logo somewhere? Is it a restriction?
Update
I will just explain how I am using it. I have a signup form and I have multiple fields for Address 1st line, 2nd line, city, State, Zip.
When the user starts entering address in 'Address 1st line' text field, I show a dropdown/tableview with suggestions. And when user selects one of them, I populate remaining fields like city, state, zip.
Questions:
Do I have to show logo
Where to show the logo if yes
According to them, yes you do:
When displaying data from the Google Places API for iOS, such as autocomplete results or place name and address, there are some attribution and Google logo requirements you must comply with.
The attribution and logo requirements fall into the following categories:
A Google map, if a map is displayed.
The 'Powered by Google' attribution.
Attributions for content supplied by third parties.
Emphasis mine. More specifically:
If your application displays Places API data on a page or view without a Google Map, you must show a 'Powered by Google' image with that data.
I'm developing a navigation app for iOS using Google Maps SDK. I need to give a route search functionality only within one city, otherwise show a warning message.
So, the question is: can someone please recommend me a way to detect whether a user is within a particular city?
Great thanks in advance.
You can find out user's current latitude and longitude.
In a google map you can plot a position with lat and long, and if its true for your city's coordinates - You are on.
A great documentation is here.
(apologies if it seems like a rookie question but I work for a startup & given the stage where we are, I can use all the help to move things fwd .. thx guys!)
I am building a map based iOS app wherein its good to have user's location but not mandatory.
If the user selects "Don't Allow" for sharing his location, then I want to either have the map take him to a hardcoded lat/long pair OR I can show him dropdowns to pick his location but then it just does not drop the marker.
There has to be someway in which iOS app developers want to use maps but dont mandated detcting user's location .. How does one do that (if at all that's posible)?
Have a look at CLLocationManager class.. you can always check the Authorization status of the user loacation choice using + (CLAuthorizationStatus)authorizationStatus of CLLocationManager class.. Based on that you can decide your other actions like sending a hardcoded location value to someone or not.
POI: Point of interest(http://en.wikipedia.org/wiki/Point_of_interest)
Is there a iOS api which I can use to get a list of POIs near a user location? Here's what I want - the user enters a search term and I already know his latitude and longitude. I want to get an list with the POI details based on the search terms.
So lets say I search for Starbucks at a particular location, I should get all Starbucks within a radius of say 5 miles from where I am.
Can iOS API do this?
Not natively within iOS, but you can use a third party provider, such as YellowPages.com.
http://www.yellowapi.com
I am trying to build an app where the user's current location will be displayed. I have done this by using reverse geocoding and I am getting the right address of the user current location. But now I want to get all the possible location that will match against the location entered by the user in the search box. Also I just want to show the location name in the table view but not on the map. Thanks.