Closed (fixed)
Project:
Location
Version:
6.x-3.1-rc1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2009 at 15:25 UTC
Updated:
2 Apr 2009 at 11:40 UTC
Greetings!
I am trying to perform some calculation based on current user's latitude and longitude.
I see from print_r that $user object does not initially include this information.
How do I then access user's location?
Either of these two solutions might do:
1) Automatically add lat/lon to $user object when user's lat/lon is set
2) Access user's lat/lon 'on demand'
I am creating a site where setting your home location is crucial for the functionality of the site. So, there should be a block that screams to you if your location is unset.
Thanks
Comments
Comment #1
farald commentedFound some sort of solution: