{"id":2442,"date":"2024-11-01T09:57:37","date_gmt":"2024-11-01T00:57:37","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=2442"},"modified":"2024-11-01T09:57:37","modified_gmt":"2024-11-01T00:57:37","slug":"osrmopen-source-routing-machine-%ea%b2%bd%eb%a1%9c-%ec%84%9c%eb%b2%84-%ea%b5%ac%ec%b6%95","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=2442","title":{"rendered":"OSRM(Open Source Routing Machine) \uacbd\ub85c \uc11c\ubc84 \uad6c\ucd95"},"content":{"rendered":"<div><strong>I. \ubaa9\ud45c<\/strong><\/div>\n<div>\uc624\ud508\uc2a4\ud2b8\ub9ac\ud2b8\ub9f5 \uae30\ubc18\uc758 \uacbd\ub85c\uc11c\ubc84\uc778 OSRM(Open Source Routing Machine)\uc744 \uc6b0\ubd84\ud22c(Ubuntu 24.04 LTS) \ud658\uacbd \ud558\uc5d0\uc11c \uad6c\ucd95\ud574\ubcf8\ub2e4.<\/div>\n<div><\/div>\n<div><strong>II. \uc5f0\uad6c \ubc0f \uac1c\ubc1c\ub0b4\uc6a9<\/strong><\/div>\n<div>1. \uacc4\uc815\uc0dd\uc131<\/p>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">adduser osrm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div>2. \uc885\uc18d\uc131 \uc124\uce58<\/div>\n<div>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<div>sudo apt install build-essential git cmake pkg-config \\<\/div>\n<div>libbz2-dev libxml2-dev libzip-dev libboost-all-dev \\<\/div>\n<div>lua5.2 liblua5.2-dev libtbb-dev<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div>3. OSRM \ucef4\ud30c\uc77c<\/div>\n<div>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<div>makir Service<\/div>\n<div>cd Service<\/div>\n<div>git clone https:\/\/github.com\/Project-OSRM\/osrm-backend.git<\/div>\n<div>cd osrm-backend<\/div>\n<div>mkdir build<\/div>\n<div>cd build<\/div>\n<div>cmake ..<\/div>\n<div>sudo make install<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div>\uc774\ub584 \ucef4\ud30c\uc77c \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uc5ec CMakeLists.txt \ud30c\uc77c\uc5d0\uc11c \uc544\ub798\ub97c \ucc3e\uc544 \uc8fc\uc11d\ucc98\ub9ac\ud568.<\/div>\n<div>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<div># include(cmake\/warnings.cmake)<\/div>\n<div><\/div>\n<div># target_no_warning(MICROTAR unused-variable)<\/div>\n<div># target_no_warning(MICROTAR format)<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div>4. \ub9f5\ub370\uc774\ud130 \ub2e4\uc6b4\ub85c\ub4dc<\/div>\n<div><\/div>\n<div>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">wget -c https:\/\/download.geofabrik.de\/asia\/south-korea-latest.osm.pbf -P .\/Data\/20240910<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><\/div>\n<div>5. \uad50\ud1b5\uc218\ub2e8\ubcc4 \ub77c\uc6b0\ud305\uaddc\uce59\uacfc \uc870\uac74 \ucd94\ucd9c<\/div>\n<div>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<div>mkdir car<\/div>\n<div>cd car<\/div>\n<div>osrm-extract south-korea-latest.osm.pbf -p \/home\/osrm\/Service\/osrm-backend\/profiles\/car.lua<\/div>\n<div>osrm-contract south-korea-latest.osrm<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div>6. \ucd94\ucd9c\ub41c \ub370\uc774\ud130\ub97c \uc555\ucd95\ud558\uace0 \ucd5c\uc801\ud654<\/div>\n<div>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">osrm-contract south-korea-latest.osrm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div>7. Osrm \uc11c\ubc84 \uae30\ub3d9<\/div>\n<div>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">osrm-routed south-korea-latest.osrm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><\/div>\n<div>8. URL \ud638\ucd9c\ud14c\uc2a4\ud2b8<\/div>\n<div>Curl \ub610\ub294 \ud06c\ub86c\ub4f1\uc758 \ube0c\ub77c\uc6b0\uc838\uc5d0\uc11c \ud638\ucd9c \ud14c\uc2a4\ud2b8\ub97c \ud574\ubcf8\ub2e4.<\/div>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2443\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/11\/OSRM-300x199.png\" alt=\"\" width=\"553\" height=\"367\" srcset=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/11\/OSRM-300x199.png 300w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/11\/OSRM-1024x679.png 1024w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/11\/OSRM-768x509.png 768w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/11\/OSRM-1536x1019.png 1536w, http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2024\/11\/OSRM-2048x1358.png 2048w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/div>\n<div><\/div>\n<div><strong>III. \uacb0\ub860<\/strong><\/div>\n<div>\ud14c\uc2a4\ud2b8\ud574\ubcf4\ub2c8 \uc790\ub3d9\ucc28 \uae38\ucc3e\uae30\ub294 \uc624\ud508\uc2a4\ud2b8\ub9ac\ud2b8\ub9f5 \uae30\ubc18\uc774\ub2e4\ubcf4\ub2c8 TMAP, \uce74\uce74\uc624\ub0b4\ube44\uc5d0 \ube44\ud574 \ub9ce\uc774 \ubd80\uc871\ud558\uc600\uc73c\ub098, \ub3c4\ubcf4 \uae38\ucc3e\uae30\ub294 \uc5b4\ub290\uc815\ub3c4 \uc0ac\uc6a9\uac00\ub2a5\ud568\uc744 \uc54c\uc218 \uc788\uc5c8\ub2e4.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I. \ubaa9\ud45c \uc624\ud508\uc2a4\ud2b8\ub9ac\ud2b8\ub9f5 \uae30\ubc18\uc758 \uacbd\ub85c\uc11c\ubc84\uc778 OSRM(Open Source Routing Machine)\uc744 \uc6b0\ubd84\ud22c(Ubuntu 24.04 LTS) \ud658\uacbd \ud558\uc5d0\uc11c \uad6c\ucd95\ud574\ubcf8\ub2e4. II. \uc5f0\uad6c \ubc0f \uac1c\ubc1c\ub0b4\uc6a9 1. \uacc4\uc815\uc0dd\uc131 adduser osrm 2. \uc885\uc18d\uc131 \uc124\uce58 sudo apt install build-essential git cmake pkg-config \\ libbz2-dev libxml2-dev libzip-dev libboost-all-dev \\ lua5.2 liblua5.2-dev libtbb-dev 3. OSRM \ucef4\ud30c\uc77c makir Service cd Service git clone https:\/\/github.com\/Project-OSRM\/osrm-backend.git cd osrm-backend mkdir [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[5,2],"tags":[317,316,318],"class_list":["post-2442","post","type-post","status-publish","format-standard","hentry","category-gis","category-2","tag-open-source-routing-machine","tag-osrm","tag-318"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2442"}],"version-history":[{"count":1,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2442\/revisions"}],"predecessor-version":[{"id":2444,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2442\/revisions\/2444"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2442"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}