Viewed 496 times
POI Loader for Windows, Ver. 2.7.3, as of Nov 07, 2013, Download POI Loader Mac Legacy Version for Tiger and PPC, Ver. 2.1.0, as of Jan 30, 2009, Download Customer Service. With POI Loader for Windows, you can configure the unit to alert you when you are within a certain distance of a point or if you are driving over a certain speed near a point; perfect to warn you about upcoming schools zones and redlight and speed cameras. The unit will also allow you to search for and navigate to the loaded points of interest.
I want to use the Foursquare-API to get venues in a given city. The API has two endpoints that could help me with my problem:
venue/explore
and venue/search
Now the problem is, that both of them are missing features I would need that the other endpoint has. For example, I cannot use the explore endpoint, because I'm not able to pass category ids to the foursquare api to search only in given categories.
So now I already have to use the search endpoint, but the search endpoint has another problem. The intent parameter. The intent parameter accepts
checkin, browse, global, match
checkin
finds pois that the user would check in at the current moment in time. Problem: I want to run a cronjob at night, so it would never find a museum, 'cause it's probably closed at night.browse
has the problem, that I have to pass a radius parameter. But since not every city has the same radius I would also find results of other cities in my search request. As example, if I search for pois in Cologne, and have a radius of 30km, I would also find POIs in Duesseldorf. But in some other cities the radius of 30km is a good one and I would only find POIs in the given city. I can't tell for sure that I have the correct radius.global
searches independent of the location so it's also uselessmatch
doesn't include categories so it's also uselessOk, let's sum it up together, what I need to do
I need to find Locations that are in a certain city, and have specific categories only!I built myself this url here to query data from foursquare
This now returns venues from Tokyo: (I limited it to 3, so we don't have too much data displayed here)
This now has multiple problems:
- The city names are in the country language (not in English)
- The foursquare API for this search returns Shibuya for a city (as an example) which is a special ward, and not a city and Tokyo for the state. However, in Germany the city is the city, like Cologne and state is the state, like Northrhine-Westphalia
This leads to the problem, that I can't easily compare the cities to see if the POI is in the requested City. I could however check if the city or the state matches, but this could be different in every country, so I see that as a problem.
So, what is the best way to get only cities in a given city for specific categories independent of time, location etc. and filter out pois from cities that are not the requested city?
MusterknabeMusterknabe2,19355 gold badges4040 silver badges8989 bronze badges