Function String.format("key=%s&location=%f,%f&rankby=distance", apiKey, lat, lng) is converting values in format (#. ##) to (#, ##).