REST api

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.

Joshua Elkino

Ranch Hand

Posts: 91

posted 9 years ago

Mind showing me an example? Are you using the javascript api? I want to do this on the server side since i dont trust js too much

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)