Fix namespacing in lib/locations_api.

There were still some namespace issues in locations_api.