I have a list of points (latitudes and longitudes) not addresses and I need to find the best route between these points. Can anyone help?
Thanks
Thanks
Sub btnNavPickup_Click
Dim mapIntent As Intent
Dim geouri As String
If lblPointPickup.Text = "" Then
Msgbox("Coordinate not set!", "E R R O R")
Return
End If
geouri = "geo:?q=" & lblPointPickup.Text 'Lat & ", " & Lon
mapIntent.Initialize(mapIntent.ACTION_VIEW, geouri)
mapIntent.WrapAsIntentChooser("Choose app")
StartActivity(mapIntent)
End Sub
rsrsrsrs, ok, It's valid but that's not what I'm looking for. Obviously I need this to be automatic and in B4AThis is my second idea (I'm still checking the first and third ) :
https://www.google.com/maps/dir/'-37.8627,145.2857'/'-37.7072,144.9669'
{"code":"Ok","routes":[{
"geometry":"z`bfFsbwuZmLjsBanA|pFmIdjAg}AaF{jBlImk@pg@}d@d{AiAbXzRrx@jBts@kb@`_EeEfyB_Nr}@yKt[m^|d@on@j_@}@zwAjDdXymA_Eeb@{UkMhLiIp`CgIxVmRlRuXrkAmp@`qLoSjGsDxS}m@xRwrCbRvBqe@",
"legs":[{"steps":[],
"summary":"","weight":2610.3,"duration":2610.3,"distance":41075.4}],"weight_name":"routability","weight":2610.3,"duration":2610.3,"distance":41075.4}],
"waypoints":[{
"hint":"5lxehP___38LAAAADgAAAAAAAAAAAAAAS_p1QeKQckAAAAAAAAAAAAsAAAAOAAAAAAAAAAAAAACTLAAAQuKoCNRCvv1E4qgI1EK-_QAA_wrnJDxl","distance":0.175967,"name":"Dorset Road",
"location":[145.285698,-37.8627]},{"hint":"PACTgf___38BAAAAAgAAAAQAAAAFAAAAUSUFQBLKsD4cMXtABSexQAEAAAACAAAABAAAAAUAAACTLAAA6gSkCEmiwP30BKQIQKLA_QEA7wLnJDxl","distance":1.332309,"name":"",
"location":[144.96689,-37.707191]
}]}
rsrsrsrs, ok, It's valid but that's not what I'm looking for. Obviously I need this to be automatic and in B4A
I need to find the best route between these points.
Hi, it's not a lot of points, it's 10 or 15 points, no more.
Does google maps itself not find the best path between these points? Does google maps not have this function of finding the best path and the shortest distance sequence?
to get the key have to pay even for few points? rsrsrsrs
other:Today might be your lucky day (if your app has an internet connection) :
https://project-osrm.org/docs/v5.24.0/api/#trip-service
View attachment 135764
I am pretty sure this has been added since 2018; sure would have saved me some programming.