Get GPS Location Coordinates using OpenStreetMap
I am trying to get the GPS Coordinates for an address using OpenStreetMap. Below is the code that I found on the Internet that I have modified for my particulars Public Async Function GetCoordinatesOsmAsync(address As String) As Task(Of (Latitude As Double, Longitude As Double)?) 'Public Function GetCoordinatesOsmAsync(address As String) As GPSCoordType Dim encodedAddress As String = Uri.EscapeDataString(address) Dim url As String = "https://openstreetmap.org{encodedAddress}&format=json&limit=1" Using client As New HttpClient() ' Nominatim requires a valid User-Agent header Dim HeaderString As
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.