1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Private Type point
latitude1 As String
longitude1 As String
latitude2 As String
longitude2 As String
End Type
Function get_GPS_POINT(lieu)
Dim p As point
Set reQ = CreateObject("microsoft.xmlhttp")
reQ.Open "GET", "http://maps.googleapis.com/maps/api/geocode/xml?" & "&address=" & lieu & "&sensor=false", False
reQ.send
'ici tu split le xml ou l'exploite avec un xmldocument en memoire
Debug.Print reQ.responsetext
End Function
Sub test()
get_GPS_POINT "le lieu ici le plus precis possible"
End Sub |
Partager