Quantcast
Channel: BlogoSfera » boxes
Viewing all articles
Browse latest Browse all 11

Geocoder looking for latitude and longitude fields but they don’t exist

$
0
0

I’m using gem Geocoder, Rails 4.2 and MySqL. I want to detect how many travels are compatible with some boxes. Travels and boxes have these fields: ‘departure_address’, ‘departure_lat’, ‘departure_long’ and ‘arrival_address’, ‘arrival_lat’, ‘arrival_long’. When I want to check if a travel is compatible with a box I try with this query: Travel.near([Box.last.departure_lat, Box.last.departure_long], 50) I […]

The post Geocoder looking for latitude and longitude fields but they don’t exist appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 11

Trending Articles