Displaying 3 results from an estimated 3 matches for "formatted_address".
2012 Aug 13
6
named character question
Dear R People:
Here is a goofy question:
I want to extract the zip code from an address and here is my work so far:
> add1
results.formatted_address
"200 W Rosamond St, Houston, TX 77076, USA"
> add1[1][32:36]
<NA> <NA> <NA> <NA> <NA>
NA NA NA NA NA
> str(add1)
Named chr "200 W Rosamond St, Houston, TX 77076, USA"
- attr(*, "names")= chr "results.formatted_addres...
2010 Nov 09
3
help getting started with javascript generated forms
...mise/new.html.erb looks like this:
<%= form_for(Premise.new) do |f| %>
<%= f.hidden_field :full_address, :value => $FULL_ADDRESS %>
<%= f.hidden_field :geocoding, :value => $GEOCODING %>
<%= f.submit :value => "use this address" %>
<%= f.label :formatted_address, $FULL_ADDRESS %>
<% end %>
... but with the twist that this form must be generated on the client
side by javascript. (In this case, $GEOCODING and $FORMATTED_ADDRESS
are placeholders for values generated by the Google geocoding service,
which requires client-side javascript.)
One appro...
2014 Feb 06
0
Array Confusion
...e"=>"United States", "short_name"=>"US", "types"=>["country", "political"]}, {"long_name"=>"94043", "short_name"=>"94043", "types"=>["postal_code"]}], "formatted_address"=>"1600 Amphitheatre Parkway, Mountain View, CA 94043, USA", "geometry"=>{"location"=>{"lat"=>37.4219985, "lng"=>-122.0839544}, "location_type"=>"ROOFTOP", "viewport"=>{"northeast"=&g...