rails-geocoder Questions
2
Solved
I am trying to set up my RSpec tests to use stubs rather then using networking to do the geocoding.
I added this:
before(:each) do
Geocoder.configure(:lookup => :test)
Geocoder::Lookup::Test....
Weakling asked 9/9, 2015 at 21:51
2
Solved
I have this excellent gem https://github.com/alexreisner/geocoder working fine in my app but I need to order the results of an active record query slightly differently.
For example using the rail...
Neysa asked 20/12, 2012 at 9:22
7
I am using ruby geocoder gem for my project and as the project is growing I am starting to look into connecting to the Google API key. After adding this to the project:
Geocoder.configure do |conf...
Corticosterone asked 31/7, 2012 at 23:12
5
Solved
Below is my class that I am using geocoder with. I am having trouble checking whether or not address that is put through geocoder is valid. This code works great when I am adding a company/editing ...
Bangui asked 15/4, 2014 at 17:22
4
Solved
I'm using the geocoder gem, but I don't know in which file I must paste this code. Can you tell me ?
Crumbly asked 5/9, 2013 at 15:11
2
Solved
The geocoder gem will automatically reverse geocode on save if the line after_validation :reverse_geocode is included in the model. This results in a long string of text being saved as the address,...
Fabrication asked 19/3, 2013 at 0:23
1
Solved
In my Ruby on Rails application I'm using Geocoder. It works fine, but my tests are ten times slower! I found some solution but in my opinion they are not very clear? Is there any way to disable Ge...
Depute asked 15/12, 2014 at 20:55
2
Solved
I've read the docs for the geocoder gem which state you can set a key, client and channel when using Google Premier.
According to some other posts I've read here, it's now possible to use an API ...
Firecracker asked 21/2, 2013 at 16:43
3
I'm using the geocoder gem for Ruby that Ryan Bates introduces in episode 273 http://railscasts.com/episodes/273-geocoder?view=asciicast. In that episode, he uses the following to search objects wi...
Ridings asked 2/7, 2013 at 15:35
4
Solved
https://github.com/alexreisner/geocoder
I can't find documentation to show the visitor's city from ip address? I know how to with HTML5, but I would like to use the value geocoder has. Thanks
Komatik asked 9/4, 2012 at 14:12
1
class User < AR
has_many :locations
end
class Location < AR
belongs_to :user
geocoded_by :address
end
How do I write a query that does this?
@users = User._a_query_that_returns_users_i...
Pastel asked 7/1, 2013 at 1:8
1
I've created a form that supplies search criteria:
= search_form_for @q do |f|
%h3
Search:
= f.label :category_id
%br
= f.collection_select :category_id_eq, Category.all, :id, :name, :includ...
Unlicensed asked 29/9, 2011 at 2:43
1
Solved
I'm in the process of switching my app to use geocoder. In my places table I have columns for address, lat, lng, street_address, city & zip. Using geocoder I'm happily able to fill lat, lng &am...
Slide asked 24/1, 2012 at 16:8
1
© 2022 - 2024 — McMap. All rights reserved.