Replace the wrong GPS Coordinate recorded
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Jaynik
2023 年 10 月 6 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Hypothesis Tests についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!