Locations Plugin 🌍

각 μ‚¬μš©μžμ— λŒ€ν•΄ λ‹€μŒκ³Ό 같은 μž‘μ—…μ„ μˆ˜ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€:

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

κ·Έ λ‹€μŒ

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

κ·Έ λ‹€μŒ

userLatitude = userLocation.['lat']

레일즈 μ½˜μ†”μ—μ„œ … λ“±.

2개의 μ’‹μ•„μš”