add API for uploading a location