Storing location objects and returning an object instead of just an ID

I think this would be better if the results were passed as the first argument and metadata as the second.