First off, awesome site and idea!  Is there some sort of rule against
connecting to external sites?  UI have this working locally, with a
different key, and never had any problems.  Thanks!

....... rails error in Browser ...........
Google4R::Maps::ConnectionException in Vote mapController#index

Could not connect to 'http://maps.google.com/maps/geo?q=US
%20IL&output=json&key=ABQIAAAAwMa0InjOiwp765pLcltlqBQR4DCeL0TnpMJnJ5iJzc-
Uo2A_wxSdl5SGW9ybTJTe1HMgE6nFFJVAvQ': execution expired

RAILS_ROOT: /mnt/home/userapps/14029

......................code snippet .......................
require 'google4r/maps'
class VoteMapController < ApplicationController

  def index
    # this key is mapped to http://doestomsuck.heroku.com
    api_key = 'ABQIAAAAwMa0InjOiwp765pLcltlqBQR4DCeL0TnpMJnJ5iJzc-
Uo2A_wxSdl5SGW9ybTJTe1HMgE6nFFJVAvQ'

    result = geocoder.query("US IL")
    result["Placemark"][0]["address"] # => "88 W Schiller Chicago, IL"
    puts result["Placemark"][0]["Point"]["coordinates"]

    ycoord = result["Placemark"][0]["Point"]["coordinates"][0]
    xcoord = result["Placemark"][0]["Point"]["coordinates"][1]
    puts xcoord, ycoord


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to