![]() |
|
osrm-backend - نسخة قابلة للطباعة +- delphi4arab منتديات دلفي للعرب (https://delphi4arab.net/forum) +-- قسم : منتديات دلفي للعرب التعليمية (https://delphi4arab.net/forum/forumdisplay.php?fid=3) +--- قسم : مصادر دلفي مفتوحة تعليمية (https://delphi4arab.net/forum/forumdisplay.php?fid=14) +--- الموضوع : osrm-backend (/showthread.php?tid=12339) |
osrm-backend - haniid - 08-07-2023 السلام عليكم كود : OSRM stands for Open Source Routing Machine, it is an open-source routing engine that provides fast, accurate, and customizable routing services.
Dennis Luxen initially developed it at the Karlsruhe Institute of Technology in Germany, and many organizations and communities around the world have adopted it.تثبيت osrm-backend كسرفر فى جهازك المحلى 1- تحميل osrm-backend على حسب نضام التشغيل لديك مثلا ويندوز كود : https://github.com/Project-OSRM/osrm-backend/releasesفك الضغط مثلا فى PHP كود : C:\OSRM C:\OSRM\binding تجد المجلد فى المرفقات 2- تحميل الخريطة OPENSTREETMAP كود : https://download.geofabrik.de/و وضعها فى المجلد C:\OSRM\binding 3- نفتح منفد الاوامر CMD و ننفد الاوامر التالية بالترتيب كود : cd C:\OSRM\bindingكود : osrm-extract algeria-latest.osm.pbf -p profiles/car.luaكود : osrm-partition algeria-latest.osm.pbfكود : osrm-customize algeria-latest.osm.pbfثم تنفيد HTTP SERVER كود : osrm-routed algeria-latest.osm --algorithm mldتنفيد http request يكون بالشكل التالى كود : http://localhost:5000/nearest/v1/driving/2.936507,36.731211osrm api كود : http://project-osrm.org/docs/v5.5.1/api/#general-options |