petewarden / dstk

A collection of the best open data sets and open-source tools for data science
http://www.datasciencetoolkit.org/
1.13k stars 184 forks source link

Ruby gem does not support the geocode API #25

Closed yholkamp closed 11 years ago

yholkamp commented 11 years ago

I noticed that the Ruby gem does not currently support the Google-style Geocoder method. As with #24 I'm not sure where the code can be found so I'm not able to submit a pull request. In any case, adding support for this method should be as simple as incorporating the following:

  def geocode(text)
    response = json_api_call('/maps/api/geocode/json', {"address" => text})
    response
  end
campeterson commented 11 years ago

https://github.com/petewarden/dstk/pull/26