MKLocalSearch with wildcard - ios

Is there a way to get all places of an given region?
I would like to offer the user a list of all existing venues in a region when he taps the screen, but I only found ways to use MKLocalSearch with a specific search query string.

Is there a way to get all places of an given region?
There's nothing built into MapKit or Core Location that provides that kind of information. Your best bet would be to look for a suitable data source for the kinds of "venues" that you're interested in, such as Google, Yelp!, FourSquare, yellow pages, etc.

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.

What APIs can be used to understand how crowded a certain place right now?

Aim is to understand how many people is in some restaurant, cafe, bar, night club or other public place via data from open sources.
I know about different social APIs, but want to find any ways how to rank places by crowdedness without being logged in any social. Suppose I search places at google map at ios device, then click at some bar, get data and of course latitude and longitude of this place from google place api. Can I find information about quantity of people that are located at bar right now? What other open sources you can suggest? Perhaps it can be achieved via Instagram or twitter. Any tips, suggestions or algorithms?

iOS6 Get List of Street by first symbols

I just playing with MapKit and it's going well. If we looking at Native App (Maps) there are possible to find direction between two places. What is intresting for me - how they get list of Street when you type name? There are in SDK some possibility to get Streets list by couple of symbols?
Thanks.
I'm not a Map Kit expert but I recommend you review the Map Kit Framework and especially the MKLocalSearch Class Reference.
The MKLocalSearch class allows you to search for addresses in a region as an equivalent of a search in the Map app. I'm not aware of any API that allows you to retrieve ALL the streets in a region.
MKLocalSearch is the best and easiest way to do instant search of google maps,i have done it and its awesome and very simple

Tweets, Location, Keywords and Data

I'm trying do some analysis on locations where people are going during winters. The approach I'm following is get tweets from a specific city (say, New York) and with the keyword Foursquare. Then use foursquare data for that user to see his/her checkins and try to trace a pattern.
So, I'm stuck in the first phase. How do I get those tweets from ONE city and with the keyword FOURSQUARE. I'm not sure if I understood how to use streaming API correctly and the ReST API isn't working (shows NOT AUTHORISED)
Could you tell me a detailed procedure for a rookie to understand the process of doing the above mentioned process. Also, let me know if you have a better approach for analysing trends in check ins.
Thanks
You want to read these:
https://dev.twitter.com/docs/api/1/get/search
https://dev.twitter.com/docs/platform-objects/places
You can give Twitter a latitude/longitude coordinate and a radius, or you can use the "place" field as a filter. Either way, expect to fine-tune this a bit to fit your needs. You also need to take into account that a lot of people might tweet without location services enabled.
If you want to use the REST API, you need to get an API key from twitter.

ios google api issue

I need to add a very common Google functionality to an iPhone app I am developing. The idea is that the user is presented with a TextBox where he can write an address (i.e.: "Amsterdam av)". The thing is that I want to add some "help" for him, se when he writes a street name, the app will show him a list of partial matches, like google Maps does here:
sample http://www.timotteo.com.ar/google.png
I canĀ“t find the exact class in the google API. It doesn't need to be as fast as google's own search, maybe the user can write "amst" and press a search button, to be presented with a list of partial matches. The API I'm looking for show return in some way a list with posibilities. All I could find for now where method that gives you the lat/long when you feed it with a specific address. Does somebody know what combination of methods/classes I should use? Maybe some example?
Txs in advance!
Perhaps you are looking for the autocomplete feature of the Places API:
https://developers.google.com/maps/documentation/javascript/places#places_autocomplete
This won't autocomplete for all addresses or streets, but rather for businesses, notable landmarks, etc.
If you want autocomplete for street addresses, I do not believe that is available through any documented APIs. That doesn't mean workarounds don't exist, but they may depend on more details about your use case. (For example, if you only care about a narrow geographic area, it may be possible to simply have a list of all the streets in your own database and handle the AJAX call yourself.)
Actully what I was looking for is this:
http://maps.google.com/maps/geo?q=amsterdam%201543&output=xml&oe=utf8&sensor=true&hl=es&gl=ar
That URL returns and XML with all the autocomplete options. All I have to do is parse that XML and voila! There I have my list.

Resources