jmon Well-Known Member Licensed User Longtime User Jan 5, 2016 #1 Hello, Is it possible to set the location of google maps from a text address (not long / lat). Thank you. Jmon.
Hello, Is it possible to set the location of google maps from a text address (not long / lat). Thank you. Jmon.
jmon Well-Known Member Licensed User Longtime User Jan 5, 2016 #2 Nevermind, I found a solution just using the webview: Code: Copy wvMap.LoadUrl($"https://www.google.com/maps/place/eiffel+tower+paris"$) Just replace eiffel tower paris with any location. You have to replace the spaces with a plus sign. Upvote 0
Nevermind, I found a solution just using the webview: Code: Copy wvMap.LoadUrl($"https://www.google.com/maps/place/eiffel+tower+paris"$) Just replace eiffel tower paris with any location. You have to replace the spaces with a plus sign.
B b4auser1 Well-Known Member Licensed User Longtime User Jan 5, 2016 #3 More universal: Code: Copy Public Sub Map_Location_By_TextAddress(a_sTextAddress As String) As String Dim su As StringUtils Return $"https://www.google.com/maps/place/${su.EncodeUrl(a_sTextAddress, "UTF8")}"$ End Sub Upvote 0
More universal: Code: Copy Public Sub Map_Location_By_TextAddress(a_sTextAddress As String) As String Dim su As StringUtils Return $"https://www.google.com/maps/place/${su.EncodeUrl(a_sTextAddress, "UTF8")}"$ End Sub
jmon Well-Known Member Licensed User Longtime User Jan 5, 2016 #4 b4auser1 said: More universal: Code: Copy Public Sub Map_Location_By_TextAddress(a_sTextAddress As String) As String Dim su As StringUtils Return $"https://www.google.com/maps/place/${su.EncodeUrl(a_sTextAddress, "UTF8")}"$ End Sub Click to expand... Excellent, thank you! Upvote 0
b4auser1 said: More universal: Code: Copy Public Sub Map_Location_By_TextAddress(a_sTextAddress As String) As String Dim su As StringUtils Return $"https://www.google.com/maps/place/${su.EncodeUrl(a_sTextAddress, "UTF8")}"$ End Sub Click to expand... Excellent, thank you!