Replace the wrong GPS Coordinate recorded
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
charbel lahoud
am 29 Jun. 2022
Beantwortet: Jaynik
am 6 Okt. 2023
How to solve the inaccuracy of GPS coordinates? is there any way to replace gps coordinates to the nearest one located on a road?
0 Kommentare
Akzeptierte Antwort
Jaynik
am 6 Okt. 2023
Hi Charbel,
I understand that you want to replace the gps coordinates to the nearest one on a road. I assume that you have the road data in the form of coordinates. For a given latitude and longitude, you can obtain the nearest coordinates with the help of the "knnsearch" function from the "Statistics and Machine Learning Toolbox".
% roadPoints is the coordinates of roads & gpsCoordinate is the inaccurate GPS coordinate input
nearestIdx = knnsearch(roadPoints, gpsCoordinate);
matchedCoordinate = roadPoints(nearestIdx, :);
Refer the following link to learn more about "knnsearch":
Hope this helps!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Automated Driving Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!