public void onClick() { float lat = (float)AddressConverter.Locate(inputText.text).Latitude; float lon = (float)AddressConverter.Locate(inputText.text).Longitude; CreatePin(lat, lon); }