BING MAP NEAREST ALL STREET NAME

gss.italy sal21 86 Reputation points
2022-06-05T10:32:15.313+00:00

I use this in vb6.
now i need to get all street address nearest the point from lat and lng, possible?

Private Function GetHTML() As String

Dim html As IXMLHTTPRequest
Set html = CreateObject("Microsoft.XMLHTTP")
With html
    .Open "GET", "http://dev.virtualearth.net/REST/v1/Locations/" & LAT & "," & LNG & "?o=xml&C=IT&key=" & BINGKEY, False
    .send
    GetHTML = .responseText
End With
Set html = Nothing

End Function

Windows for home | Windows 11 | Apps
Developer technologies | Visual Basic for Applications
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 3,841 Reputation points Microsoft Employee Moderator
    2022-06-15T23:24:06.293+00:00

    No, this is not possible with the location API. It will return the closest valid address but not all along a street. You could look at https://learn.microsoft.com/en-us/bingmaps/rest-services/locations/location-recognition but again, it just returns location infomation.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.