gmaps4rails - Google-Maps-for-Rails Direction Wiki Explaination Needed -


hi working on trash bin/recycling bin location application using google maps rails.

i have recyclingbin.rb model address attributes, enough put markers on map can displayed using gem. believe gem converts model , attributes json data.

i trying implement feature can input location , direction nearest marker.

i have looked @ wiki , https://github.com/apneadiving/google-maps-for-rails/wiki/direction

am suppose put in view ?

{ "data" => { "from" => "paris, france", "to" => "toulon, france" } } }) %>

with embedded location now? understand can pass options reference google.

the wiki quite short, can give me quick explanation ?

the wiki need more work. have simple app working shows directions on map location (pre-defined) location

<%= gmaps("map_options" => {"zoom" => 14}, "markers" => { "data" => @json }, "direction"   => { "data" => {"from" => @location.address, "to" => "new york city"},"travelmode" => "driving"}) %> 

i put in view. shouldn't matter where, long there. hope helps


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -