Why is this URL nil?

I am testing this in playground. I have no clue why this url does not work? nil is returned.

print(URL(string: "http://202.90.159.177/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=Boundary:Boundary_Province&TILED=true&WIDTH=256&HEIGHT=256&CRS=EPSG:3857&STYLES&BBOX=%f,%f,%f,%f"))

The cause is &BBOX=%f,%f,%f,%f

but i do not understand why that full url doesnt work if that is included. Going to use this in GMSURLTileLayer in ios maps utils.

Accepted Answer

Ill answer my own question. I think the url needs to be populated instead of the %f.

Why is this URL nil?
 
 
Q