httprequest on server side... activeResource?

hello all, i try to use google's geocoding service

it lets me call an url with a given address and receive information like e.g. latitude, longitude, etc.

now i was wondering whats the best solution to call this within a rails project. - is there something like a low level httprequest object - can i use an activeresource for it? - i dont want to use it with AJAX, because i need to progress a lot of addresses

thx for your thoughts...

hello all, i try to use google's geocoding service Tài liệu về Nền tảng Google Maps  |  Maps JavaScript API  |  Google for Developers

it lets me call an url with a given address and receive information like e.g. latitude, longitude, etc.

now i was wondering whats the best solution to call this within a rails project. - is there something like a low level httprequest object - can i use an activeresource for it? - i dont want to use it with AJAX, because i need to progress a lot of addresses

Net::HTTP is the standard ruby thing for making http calls. Whether or not you can use ActiveResource rather depends on whether the format of the data matches what activeresource expects.

Fred

Frederick Cheung wrote:

rails project. - is there something like a low level httprequest object - can i use an activeresource for it? - i dont want to use it with AJAX, because i need to progress a lot of addresses

Net::HTTP is the standard ruby thing for making http calls. Whether or not you can use ActiveResource rather depends on whether the format of the data matches what activeresource expects.

hi thanks... i just solved it with 'open-uri' can you tell me if this is better or not .. or whats the difference between those both