List and addLocationListener to static functions for frontend to directly call.