Locations Plugin

For each user you can do something along the lines of:

myUser = User.find_by(username_lower: '<username>')

then

userLocation = JSON.parse(myUser.custom_fields[:geo_location])

then

userLatitude = userLocation.['lat']

on the rails console … etc.

2 Likes