Pincode fetching error

Hi All ,

We are trying to fetch a map for a pincode in India “110041” through script via ( var apiUrl = https://nominatim.openstreetmap.org/search?format=json&q=${110041}; ) but its not getting through , but when search it manually on the url https://www.openstreetmap.org/ , it is giving the result.

I have mentioned the complete script code below , kindly help us in fixing the issue.

thanks …vineet