Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]Public Sub QueryGeonamesAPIExample()
Dim APICall As String
Dim Query As String
APICall = "[URL unfurl="true"]http://api.geonames.org/postalCodeSearch"[/URL]
Query = "?postalcode=00184&country=IT&username=<yourusername>"
With CreateObject("MSXML2.XMLHTTP")
.open "GET", APICall & Query, False
.send
Debug.Print .responseText 'raw XML response
End With
End Sub[/blue]
...
Dim MyArray() As String
Dim x As Integer
...[green]
'Debug.Print .responseText 'raw XML response[/green]
MyArray = Split(.responseText, vbNewLine)
For x = LBound(MyArray) To UBound(MyArray)
Debug.Print MyArray(x)
Next x
...