Hello Micheal, Thanks for the reply.
about the api google map key, under what url do i register if i want my 
view "show_google_maps" to display a google map?
localhost:3000/start/show_google_maps
ive tried about ever variation of the above and I still kept getting the 
"key is invalid..." in the link i posted and said just to register
under
localhost:3000, but it didnt work.
also, i plan on doing the geocoding lookup everytime a new address is 
submitted into our database. is this what you mean by having a server 
process?
Michael Modica wrote:> Clayton Cottingham wrote:
>> That seems to be the best way,
>> as google doesnt seem to provide an address to long/lat conversion
>> 
>> ..as far as I know...
>> 
>> for instance, if you had an array of addresses you wanted to put pins
of
>> on
>> a map you need the long/lat data
> 
> Google does provide a lat/long tool.  You give it an address (or zip) 
> and it will return the coords for you in an option of formats (xml, 
> json, csv, etc...).  This is part of the ym4r GEM that can be used in 
> conjunction with the ym4r plugin or standalone.  However, you do need to 
> have a developer key UNLESS everything is coming from localhost - then 
> you can use the key supplied by ym4r.
> 
> FYI...based on some testing I have just completed, it is best to have a 
> server process get the lat/long coordinates and store them in your 
> database for later retrieval, if possible for your app.  The call itself 
> can be slow when you are passing in several items to geocode whereas if 
> you are just placing pins on the map then it is very quick when you have 
> the coords already stored.
> 
> ym4r will do what you need!  I downloaded it last night and have a 
> functioning map setup with markers and polylines.  The plugin is 
> extremely useful and I highly recommend it.
> 
> Michael
-- 
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
-~----------~----~----~----~------~----~------~--~---