Reputation: 1187
Using Foursquare API is there any way to search venue with name and city?
Currently I am using parameter "query" to search venue, how can I pass city name along with venue name to get exact results
I want to search restaurant located in specific city
FSQ API Current Search query which is working for restaurant name search only:
In above search query I have used "query=starbucks" to search restaurant "starbucks"
Any one knows how to do search with name and city for venue?
Please help...
Upvotes: 1
Views: 2799
Reputation: 135
I am finding that for place names comprising of two or three words the use of an an underscore works for example:
near=New_York
or
near=Playa_Del_Carmen
near=Hong_Kong
Reason being in a browser a space becomes the characters '%20', however when passing a GET string value to a url such as from a search box or via PHP I found that the string being passed with spaces was not being "read/interpreted" correctly. Adding the underscore seems to resolve that issue.
Upvotes: 0
Reputation: 151
You can replace the ll parameter with near and put a city name in there, for example
Upvotes: 1