Retrieving locations from the backend.