hello all, i try to use google''s geocoding service http://code.google.com/apis/maps/documentation/services.html#Geocoding_Direct 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... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 23 Jan 2008, at 07:06, Michal Gabrukiewicz wrote:> > hello all, > i try to use google''s geocoding service > http://code.google.com/apis/maps/documentation/services.html#Geocoding_Direct > > 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 > addressesNet::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> > > thx for your thoughts... > -- > Posted via http://www.ruby-forum.com/. > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > For more options, visit this group at http://groups.google.com/group/r--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Michal Gabrukiewicz
2008-Jan-23 16:06 UTC
Re: httprequest on server side... activeResource?
Frederick Cheung wrote:> On 23 Jan 2008, at 07:06, Michal Gabrukiewicz 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> Fred-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---