sends location to the server