Questions tagged [geokit]

A Ruby on Rails gem that provides geocoding and distance calculations.

Geokit is a Rails gem that provides geocoding and distance calculations.

It provides various geocoding and geolocation options, including:

  • Distance calculations between two geographical points
  • Check whether a certain point is within certain rectangular bounds
  • Support of multiple geocoding data providers - Google, Yahoo and others
141 questions
0
votes
1 answer

Geokit plugin auto zoom level calculation

i'm using GEOKIT plug-in in my rails project. i want to display 10 points in a geo image.i've faced a problem with my zoom level .my zoom level is fully depend on my 10 points distance. if distance is small then zoom level should be high. and…
Awlad Liton
  • 9,366
  • 2
  • 27
  • 53
0
votes
1 answer

Can Geokit work with AR in Sinatra?

I have a Sinatra app with AR bundled. Geokit-wise, I have the requirement to keep the logic in certain models provided by the acts_as_mappable mixin. Thing is, this mixin is part of geokit-rails3, not geokit. And that gems depends from rails 3.…
ChuckE
  • 5,610
  • 4
  • 31
  • 59
0
votes
4 answers

Rails: Get Posts of Users within 10km of a point

I'm using the rails 3 geokit gem that allows you to find users within a distance of a point, e.g. User.within(10, origin: [51.123123, 0.1323123]) ['10' is the distance in mi/km; 51 & 0 are latitude and longitude] I'm now trying to get all posts by…
christian
  • 807
  • 1
  • 11
  • 19
0
votes
1 answer

Know whether two boundaries ever intersect each other in GEOKIT

I using Geokit Library for Geo Coding Now the problem is that I have User Model and Event Model each one has a there radius now I want all list of users whose boundaries actually intersect in Event boundaries Here the scenario Like Event E1…
Viren
  • 5,812
  • 6
  • 45
  • 98
0
votes
1 answer

after_sign_in_path_for action not loading Geokit in Rails

Im trying to refresh the Geokit location to session after the user sign in. I have the following code. # app/controllers/application_controller.rb def after_sign_in_path_for(resource_or_scope) session[:geo_location] =…
Martin
  • 11,216
  • 23
  • 83
  • 140
-2
votes
1 answer

How to use AJAX request to pass user's HTML5 location in a class variable from JavaScript to Rails controller?

I'm using Ruby (2.7.2p137), Ruby on Rails (v6.0.3.4) and Geokit-rails (2.3.2). I'm trying to pass the user's location into a method from the Geokit-rails gem. To do this, I am trying to use an AJAX request to pass user's HTML5 location from…
John Hanlon
  • 462
  • 3
  • 10
  • 22
1 2 3
9
10