I am planning to develop a very simple java application (not mobile, but desktop apps) that utilizes web services, specifically Foursquare API and Google Map Web Service. I plan to get the users address and then using Google Map to translate the address to lattitude and longitude then feed this result to foursquare API method Venue methods (Nearby and search) to get a results of nearby venues and show it to users. The question are:
- Is this all do able in Java?
- How do I call such http://api.foursquare.com/v1/venues in java and get the result? I know I can use Xpath to parse the result. I am just not sure on how to call those post
methods in java and pass in parameters to it. - Is there any sample java code that uses foursquare API out there?
- Will the foursquare API work if it’s used not on mobile?
Sorry for all the noob questions.
UPDATE:
I’m not signed up at FourSquare. Try this out and let me know if it works for you: