hey all,
I have a google maps url posted by the user such as:
is there a way to get all the paramaters (such as the q, the latlngt
and whatever is needed) of that url and use them into the ym4r
functions?
thanx in advance
PAt
hey all,
I have a google maps url posted by the user such as:
is there a way to get all the paramaters (such as the q, the latlngt
and whatever is needed) of that url and use them into the ym4r
functions?
thanx in advance
PAt
Hi Patrick, how about:
google_query = URI::parse( params[:query_string] ).query
google_params = CGI::parse(google_query)
This will give you a Hash of all the URI parameters, including the
search string ‘q’, and ‘ll’ which is your lat-long array.
–Andrew
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs