This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I've been searching the web but i cannot find a tutorial in how to call REST methods on a server. Looking to integrate some geocoding and social network methods on my site. Anyone have any tip/tuts out there?
Those "REST" methods are just plain old HTTP requests. Much simpler than other forms of web service. We are doing geocoding where I work, we send the address to Google and (usually) get latitude and longitude back buried in an XML document. We use the Apache HttpClient software to do that and there's about 25 lines of code.
Joined: Jul 24, 2007
Accessing the Google Geocoder with Java is simple. Here is how to construct the URL. Be aware that there's a throttle on how many requests you can make per minute (you'll get HTTP errors if you send too many) and per day (50000 if I remember correctly)