add method to get location data as dict