<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JustRouting</title>
    <description>The latest articles on DEV Community by JustRouting (@justrouting).</description>
    <link>https://dev.to/justrouting</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4159688%2Fa16ee67a-57af-4443-8f33-578cdbaa1d8e.png</url>
      <title>DEV Community: JustRouting</title>
      <link>https://dev.to/justrouting</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/justrouting"/>
    <language>en</language>
    <item>
      <title>OpenStreetMap in Southeast Asia: Is It Good Enough for Production Routing?</title>
      <dc:creator>JustRouting</dc:creator>
      <pubDate>Sun, 29 Nov 2026 13:38:44 +0000</pubDate>
      <link>https://dev.to/justrouting/openstreetmap-in-southeast-asia-is-it-good-enough-for-production-routing-dae</link>
      <guid>https://dev.to/justrouting/openstreetmap-in-southeast-asia-is-it-good-enough-for-production-routing-dae</guid>
      <description>&lt;p&gt;If you're building a logistics platform, delivery application, fleet management system, or location-based service in Southeast Asia, you've probably considered using OpenStreetMap (OSM).&lt;/p&gt;

&lt;p&gt;It's free to use, openly accessible, and supported by a global community of contributors.&lt;/p&gt;

&lt;p&gt;But there's an important question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can OpenStreetMap actually support production-grade routing in Southeast Asia?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer is yes, but with some important qualifications.&lt;/p&gt;

&lt;p&gt;OSM is a very capable foundation for production routing. However, the quality of a routing service depends on much more than whether a road appears on the map.&lt;/p&gt;

&lt;p&gt;Let's look at what developers should understand before using OSM as the foundation of a commercial routing application.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. OpenStreetMap Is More Than a Free Map
&lt;/h2&gt;

&lt;p&gt;One common misconception is that OpenStreetMap is simply a free alternative to Google Maps.&lt;/p&gt;

&lt;p&gt;In reality, OSM is a collaborative geographic database.&lt;/p&gt;

&lt;p&gt;It contains much more than road geometry:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Road networks and road classifications&lt;/li&gt;
&lt;li&gt;One-way restrictions&lt;/li&gt;
&lt;li&gt;Turn restrictions&lt;/li&gt;
&lt;li&gt;Vehicle access restrictions&lt;/li&gt;
&lt;li&gt;Speed limits&lt;/li&gt;
&lt;li&gt;Road surfaces&lt;/li&gt;
&lt;li&gt;Bridges and tunnels&lt;/li&gt;
&lt;li&gt;Buildings and addresses&lt;/li&gt;
&lt;li&gt;Points of interest&lt;/li&gt;
&lt;li&gt;Administrative boundaries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For routing applications, these attributes are particularly important.&lt;/p&gt;

&lt;p&gt;Consider a road segment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;highway=primary
name=Example Road
oneway=yes
maxspeed=60
surface=asphalt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This information helps a routing engine understand not only where the road is, but also how vehicles should use it.&lt;/p&gt;

&lt;p&gt;A routing engine such as OSRM can process OSM data and convert it into a graph optimized for route calculations.&lt;/p&gt;

&lt;p&gt;The important distinction is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OSM provides the geographic data. The routing engine determines how to use that data.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A good map dataset alone does not automatically produce good routes.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. How Good Is OpenStreetMap Coverage in Southeast Asia?
&lt;/h2&gt;

&lt;p&gt;Southeast Asia is an interesting region for OSM.&lt;/p&gt;

&lt;p&gt;It contains highly developed urban centers, rapidly expanding cities, rural areas, islands, and regions with very different mapping conditions.&lt;/p&gt;

&lt;p&gt;There is no single OSM quality level that represents the entire region.&lt;/p&gt;

&lt;h3&gt;
  
  
  Indonesia
&lt;/h3&gt;

&lt;p&gt;Indonesia presents some particularly interesting challenges.&lt;/p&gt;

&lt;p&gt;Its geography consists of thousands of islands, with significant differences in road infrastructure between major urban centers and remote areas.&lt;/p&gt;

&lt;p&gt;In Jakarta, OSM provides a useful road network for urban routing, including major roads, secondary roads, and many local streets.&lt;/p&gt;

&lt;p&gt;However, several challenges remain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Complex road access restrictions&lt;/li&gt;
&lt;li&gt;Dense residential street networks&lt;/li&gt;
&lt;li&gt;Incomplete or inconsistent road attributes&lt;/li&gt;
&lt;li&gt;Toll road and motorcycle access restrictions&lt;/li&gt;
&lt;li&gt;Rapidly changing road infrastructure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For applications involving motorcycle delivery, interpreting road access restrictions correctly is especially important.&lt;/p&gt;

&lt;h3&gt;
  
  
  Vietnam
&lt;/h3&gt;

&lt;p&gt;Vietnam has a transportation environment where motorcycles play a major role.&lt;/p&gt;

&lt;p&gt;In cities such as Hanoi and Ho Chi Minh City, local roads and smaller connecting streets are important parts of the transportation network.&lt;/p&gt;

&lt;p&gt;A routing engine that only prioritizes major roads may not generate practical routes.&lt;/p&gt;

&lt;p&gt;Some challenges include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Complex urban street networks&lt;/li&gt;
&lt;li&gt;Narrow local roads&lt;/li&gt;
&lt;li&gt;Vehicle-specific access restrictions&lt;/li&gt;
&lt;li&gt;Inconsistent road classification&lt;/li&gt;
&lt;li&gt;Address and location data quality&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For motorcycle-oriented applications, local road coverage and accessibility information are particularly valuable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Thailand
&lt;/h3&gt;

&lt;p&gt;Thailand has a relatively extensive road network connecting major cities, suburban areas, and rural regions.&lt;/p&gt;

&lt;p&gt;Bangkok presents different challenges from less densely populated provinces.&lt;/p&gt;

&lt;p&gt;Potential issues include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Expressway access restrictions&lt;/li&gt;
&lt;li&gt;Complex urban intersections&lt;/li&gt;
&lt;li&gt;Road classification inconsistencies&lt;/li&gt;
&lt;li&gt;Local access restrictions&lt;/li&gt;
&lt;li&gt;Differences between urban and rural road characteristics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Again, a routing engine must interpret these attributes according to the vehicle being routed.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Bigger Picture
&lt;/h3&gt;

&lt;p&gt;OSM coverage should not be evaluated only at the country level.&lt;/p&gt;

&lt;p&gt;A country may have excellent mapping in its major cities but incomplete information in smaller towns or rural areas.&lt;/p&gt;

&lt;p&gt;For production applications, the relevant question is not:&lt;/p&gt;

&lt;p&gt;"Is OSM good in Indonesia?"&lt;/p&gt;

&lt;p&gt;It's:&lt;/p&gt;

&lt;p&gt;"Is OSM sufficiently complete and accurate in the specific areas where my application operates?"&lt;/p&gt;

&lt;p&gt;That distinction matters.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. The Real Problem: Missing or Incorrect Road Attributes
&lt;/h2&gt;

&lt;p&gt;Having a road on the map is only the first step.&lt;/p&gt;

&lt;p&gt;A road can exist in OSM but still lack important information required for accurate routing.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;highway=secondary
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tells us the road classification, but it doesn't tell us everything we need to know.&lt;/p&gt;

&lt;p&gt;Does it allow motorcycles?&lt;/p&gt;

&lt;p&gt;Is it one-way?&lt;/p&gt;

&lt;p&gt;What is its speed limit?&lt;/p&gt;

&lt;p&gt;Is it paved?&lt;/p&gt;

&lt;p&gt;Are there restrictions for certain vehicles?&lt;/p&gt;

&lt;p&gt;Some of these attributes may be missing.&lt;/p&gt;

&lt;p&gt;Other attributes may be incorrect or outdated.&lt;/p&gt;

&lt;p&gt;This creates several potential problems.&lt;/p&gt;

&lt;h3&gt;
  
  
  Incorrect vehicle accessibility
&lt;/h3&gt;

&lt;p&gt;If a road has incomplete access information, a routing engine may make assumptions based on its profile and access rules.&lt;/p&gt;

&lt;p&gt;Those assumptions can produce routes that are not legally accessible to a particular vehicle.&lt;/p&gt;

&lt;h3&gt;
  
  
  Incorrect travel-time estimates
&lt;/h3&gt;

&lt;p&gt;A routing engine needs speed assumptions to estimate travel time.&lt;/p&gt;

&lt;p&gt;When speed limits or other useful attributes are missing, it must rely on profile defaults or other assumptions.&lt;/p&gt;

&lt;p&gt;This can lead to inaccurate ETAs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Poor road preferences
&lt;/h3&gt;

&lt;p&gt;Two roads with the same highway classification may have very different characteristics.&lt;/p&gt;

&lt;p&gt;One might be a well-maintained arterial road.&lt;/p&gt;

&lt;p&gt;Another might be a narrow road passing through a residential area.&lt;/p&gt;

&lt;p&gt;If the routing profile treats them identically, the resulting route may not be optimal.&lt;/p&gt;

&lt;p&gt;This is why production routing requires more than importing OSM data and starting an HTTP server.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Map Completeness Does Not Equal Routing Accuracy
&lt;/h2&gt;

&lt;p&gt;This is probably the most important distinction for developers.&lt;/p&gt;

&lt;p&gt;Imagine two routing datasets.&lt;/p&gt;

&lt;p&gt;Dataset A has a very complete road network, including almost every local street.&lt;/p&gt;

&lt;p&gt;Dataset B has slightly less complete coverage but better road attributes, access restrictions, and turn restrictions.&lt;/p&gt;

&lt;p&gt;Which one produces better routes?&lt;/p&gt;

&lt;p&gt;It depends on the application.&lt;/p&gt;

&lt;p&gt;For some use cases, road coverage is the most important factor.&lt;/p&gt;

&lt;p&gt;For others, correct vehicle accessibility and road attributes matter more.&lt;/p&gt;

&lt;p&gt;A useful way to evaluate routing data is to consider several dimensions:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;What to evaluate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Road coverage&lt;/td&gt;
&lt;td&gt;Are the relevant roads mapped?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Road connectivity&lt;/td&gt;
&lt;td&gt;Are intersections and connections represented correctly?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Access restrictions&lt;/td&gt;
&lt;td&gt;Are vehicle restrictions correctly tagged?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Directionality&lt;/td&gt;
&lt;td&gt;Are one-way roads represented correctly?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Turn restrictions&lt;/td&gt;
&lt;td&gt;Are prohibited turns captured?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Road classification&lt;/td&gt;
&lt;td&gt;Are roads classified consistently?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Speed information&lt;/td&gt;
&lt;td&gt;Are speed limits and other useful attributes available?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Road surface&lt;/td&gt;
&lt;td&gt;Is surface information sufficiently complete?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Freshness&lt;/td&gt;
&lt;td&gt;How recently has the data been updated?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A high-quality routing dataset needs to perform well across these dimensions.&lt;/p&gt;

&lt;p&gt;A road network that looks complete on a map may still contain serious routing problems.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Why Routing Profiles Matter So Much
&lt;/h2&gt;

&lt;p&gt;Even with good OSM data, different applications need different routing behavior.&lt;/p&gt;

&lt;p&gt;A car routing application, motorcycle delivery platform, and truck logistics system should not necessarily use the same routing rules.&lt;/p&gt;

&lt;p&gt;This is where routing profiles become important.&lt;/p&gt;

&lt;p&gt;A routing profile determines how a routing engine interprets road attributes and calculates routing costs.&lt;/p&gt;

&lt;p&gt;For example, with OSRM, Lua profiles can define:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Road accessibility&lt;/li&gt;
&lt;li&gt;Road preferences&lt;/li&gt;
&lt;li&gt;Estimated speeds&lt;/li&gt;
&lt;li&gt;Turn penalties&lt;/li&gt;
&lt;li&gt;Vehicle-specific restrictions&lt;/li&gt;
&lt;li&gt;Routing weights&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Consider a simplified example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight lua"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;highway&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"motorway"&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="n"&gt;speed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt;
&lt;span class="k"&gt;elseif&lt;/span&gt; &lt;span class="n"&gt;highway&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"primary"&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="n"&gt;speed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;
&lt;span class="k"&gt;elseif&lt;/span&gt; &lt;span class="n"&gt;highway&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"residential"&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="n"&gt;speed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These values are illustrative, not recommended universal speeds.&lt;/p&gt;

&lt;p&gt;A production profile needs more sophisticated rules and should account for country-specific regulations and local road conditions.&lt;/p&gt;

&lt;p&gt;For example, motorcycle routing in Indonesia needs to consider toll road restrictions.&lt;/p&gt;

&lt;p&gt;A car-oriented profile and a motorcycle-oriented profile may interpret the same OSM road network very differently.&lt;/p&gt;

&lt;p&gt;This is one reason why simply using a default routing profile may not be sufficient for Southeast Asian applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The quality of a routing engine is determined not only by its map data, but also by how intelligently it interprets that data.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  6. OSM Does Not Provide Real-Time Traffic
&lt;/h2&gt;

&lt;p&gt;Another important limitation is traffic information.&lt;/p&gt;

&lt;p&gt;OpenStreetMap is primarily a geographic database.&lt;/p&gt;

&lt;p&gt;It does not provide comprehensive real-time traffic speeds for every road.&lt;/p&gt;

&lt;p&gt;It may contain static information such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Road classifications&lt;/li&gt;
&lt;li&gt;Speed limits&lt;/li&gt;
&lt;li&gt;Road access restrictions&lt;/li&gt;
&lt;li&gt;Road geometry&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But this is fundamentally different from knowing how fast vehicles are actually moving right now.&lt;/p&gt;

&lt;p&gt;For example, a road may have a speed limit of 60 km/h.&lt;/p&gt;

&lt;p&gt;During peak hours in Jakarta, the actual travel speed might be significantly lower.&lt;/p&gt;

&lt;p&gt;A routing engine using only static OSM information cannot automatically know this.&lt;/p&gt;

&lt;p&gt;To improve ETA accuracy, additional traffic information is needed.&lt;/p&gt;

&lt;p&gt;Possible sources include:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Historical traffic speeds collected from GPS traces.&lt;/li&gt;
&lt;li&gt;Real-time vehicle location data.&lt;/li&gt;
&lt;li&gt;Commercial traffic data providers.&lt;/li&gt;
&lt;li&gt;Aggregated speed observations from fleet operations.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These sources can be used to build a traffic-aware routing system on top of the OSM road network.&lt;/p&gt;

&lt;p&gt;This is an important architectural distinction:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OSM can provide the road network, while separate traffic data can provide the dynamic travel conditions.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You don't need to replace OSM to build a traffic-aware routing service.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. How to Validate OSM Before Using It in Production
&lt;/h2&gt;

&lt;p&gt;If you're planning to build a commercial routing application, I wouldn't recommend evaluating OSM only by looking at its map.&lt;/p&gt;

&lt;p&gt;You should test the actual routing results.&lt;/p&gt;

&lt;p&gt;Here are some practical approaches.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Check road coverage
&lt;/h3&gt;

&lt;p&gt;Choose representative areas where your application will operate.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Central Jakarta&lt;/li&gt;
&lt;li&gt;Greater Jakarta suburbs&lt;/li&gt;
&lt;li&gt;Ho Chi Minh City&lt;/li&gt;
&lt;li&gt;Hanoi&lt;/li&gt;
&lt;li&gt;Bangkok&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Inspect whether important roads, local streets, and connecting roads are present.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Check connectivity
&lt;/h3&gt;

&lt;p&gt;Look for disconnected roads, missing intersections, and incorrectly connected segments.&lt;/p&gt;

&lt;p&gt;These problems can cause routes to fail even when the roads appear on the map.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Test vehicle-specific restrictions
&lt;/h3&gt;

&lt;p&gt;Create test cases involving:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One-way roads&lt;/li&gt;
&lt;li&gt;Toll roads&lt;/li&gt;
&lt;li&gt;Restricted-access roads&lt;/li&gt;
&lt;li&gt;Motorcycle-inaccessible roads&lt;/li&gt;
&lt;li&gt;Prohibited turns&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Verify that the routing engine respects the relevant restrictions.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Compare routes with real journeys
&lt;/h3&gt;

&lt;p&gt;Collect GPS traces from actual journeys.&lt;/p&gt;

&lt;p&gt;Compare the returned routes with the roads that vehicles really use.&lt;/p&gt;

&lt;p&gt;Don't focus only on distance.&lt;/p&gt;

&lt;p&gt;Also examine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Route plausibility&lt;/li&gt;
&lt;li&gt;Travel time&lt;/li&gt;
&lt;li&gt;Road accessibility&lt;/li&gt;
&lt;li&gt;Detours&lt;/li&gt;
&lt;li&gt;ETA errors&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Monitor data changes
&lt;/h3&gt;

&lt;p&gt;OSM is continuously updated.&lt;/p&gt;

&lt;p&gt;That is one of its biggest advantages, but it also means production routing systems need a strategy for refreshing their underlying datasets.&lt;/p&gt;

&lt;p&gt;An outdated routing graph can continue returning outdated road information even when the corresponding OSM data has already been corrected.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Don't Forget Licensing and Attribution
&lt;/h2&gt;

&lt;p&gt;OSM is open data, but open does not mean without conditions.&lt;/p&gt;

&lt;p&gt;OpenStreetMap data is licensed under the Open Database License (ODbL).&lt;/p&gt;

&lt;p&gt;Commercial applications can use OSM data, but developers need to understand the licensing requirements.&lt;/p&gt;

&lt;p&gt;Important considerations include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Appropriate OpenStreetMap attribution.&lt;/li&gt;
&lt;li&gt;Compliance with ODbL when distributing derived databases.&lt;/li&gt;
&lt;li&gt;Understanding share-alike requirements for derivative databases.&lt;/li&gt;
&lt;li&gt;Keeping data provenance and licensing information documented.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is also an important distinction between using OSM data and using third-party services built on OSM.&lt;/p&gt;

&lt;p&gt;For example, the public OpenStreetMap tile service has its own usage policy.&lt;/p&gt;

&lt;p&gt;You should not assume that because OSM data is open, every service built around it is free for unrestricted commercial use.&lt;/p&gt;

&lt;p&gt;For production systems, using your own data infrastructure or a suitable commercial provider is generally a better approach than relying on community infrastructure for unlimited application traffic.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. So, Is OpenStreetMap Good Enough for Production Routing?
&lt;/h2&gt;

&lt;p&gt;My answer is yes.&lt;/p&gt;

&lt;p&gt;OpenStreetMap is a strong foundation for production routing in Southeast Asia.&lt;/p&gt;

&lt;p&gt;But I would not recommend treating raw OSM data as a finished routing product.&lt;/p&gt;

&lt;p&gt;A production routing system needs several layers:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Responsibility&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Map data&lt;/td&gt;
&lt;td&gt;Road geometry and geographic attributes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data processing&lt;/td&gt;
&lt;td&gt;Extracting, filtering, and preparing map data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Routing engine&lt;/td&gt;
&lt;td&gt;Calculating paths through the road network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Routing profiles&lt;/td&gt;
&lt;td&gt;Defining vehicle-specific routing behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Traffic data&lt;/td&gt;
&lt;td&gt;Improving travel-time estimates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validation&lt;/td&gt;
&lt;td&gt;Detecting incorrect or impractical routes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Infrastructure&lt;/td&gt;
&lt;td&gt;Serving requests reliably and efficiently&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;OSM primarily solves the first layer.&lt;/p&gt;

&lt;p&gt;The other layers determine how useful the final routing service will be.&lt;/p&gt;

&lt;p&gt;For a developer building a routing service, the real engineering work is not simply downloading an OSM extract.&lt;/p&gt;

&lt;p&gt;It's transforming that data into a reliable routing experience for actual users.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. Why We Use OpenStreetMap at JustRouting
&lt;/h2&gt;

&lt;p&gt;At JustRouting, OpenStreetMap is the foundation of our routing infrastructure.&lt;/p&gt;

&lt;p&gt;We focus on Southeast Asia, where transportation requirements can differ significantly from those in other regions.&lt;/p&gt;

&lt;p&gt;Rather than treating routing as a generic global problem, we pay attention to local road networks and vehicle requirements.&lt;/p&gt;

&lt;p&gt;Our routing services provide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Country-specific driving and motorcycle profiles.&lt;/strong&gt; Instead of applying a uniform routing profile across all regions, we develop customized profiles for each country, taking into account local road network characteristics, map data quality, and traffic conditions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Real-time traffic integration.&lt;/strong&gt; We integrate third-party real-time traffic data to provide more accurate travel time estimates (ETAs) that better reflect current road conditions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Regular map data updates.&lt;/strong&gt; We update our underlying map data every two weeks to keep road networks and routing information up to date.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Route calculations and distance matrices.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Geocoding and map matching.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Fleet and vehicle route optimization.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;APIs and SDKs for Python, Go, and JavaScript.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;MCP integration for AI agents.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We believe developers should be able to build location-aware applications without having to operate their own routing infrastructure.&lt;/p&gt;

&lt;p&gt;OSM provides an excellent foundation.&lt;/p&gt;

&lt;p&gt;The challenge is building the right routing technology on top of it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;OpenStreetMap is not perfect.&lt;/p&gt;

&lt;p&gt;Its coverage and data quality vary across countries, cities, and individual neighborhoods.&lt;/p&gt;

&lt;p&gt;Some road attributes are missing. Some restrictions are outdated. Some roads need correction.&lt;/p&gt;

&lt;p&gt;But these limitations don't make OSM unsuitable for production.&lt;/p&gt;

&lt;p&gt;They make data validation, routing profiles, and continuous improvement essential parts of a production routing system.&lt;/p&gt;

&lt;p&gt;For Southeast Asia, where motorcycles, dense urban streets, and diverse road networks are central to everyday transportation, understanding how to use OSM correctly is especially important.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The question isn't whether OpenStreetMap is perfect. It's whether you can build a reliable routing system with the data available.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And the answer is yes.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Building something with location intelligence?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JustRouting provides lightweight routing APIs designed for Southeast Asia.&lt;/p&gt;

&lt;p&gt;Explore the platform:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Website: &lt;a href="https://justrouting.tech/" rel="noopener noreferrer"&gt;https://justrouting.tech/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Documentation: &lt;a href="https://docs.justrouting.tech/" rel="noopener noreferrer"&gt;https://docs.justrouting.tech/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Get a free API key: &lt;a href="https://justrouting.tech/" rel="noopener noreferrer"&gt;https://justrouting.tech/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start building in 30 seconds for $0. No need to self-host a routing engine.&lt;/p&gt;

</description>
      <category>openstreetmap</category>
      <category>routing</category>
      <category>map</category>
      <category>geospatial</category>
    </item>
    <item>
      <title>Why Motorcycle Routing Is a Different Problem</title>
      <dc:creator>JustRouting</dc:creator>
      <pubDate>Sun, 29 Nov 2026 13:16:31 +0000</pubDate>
      <link>https://dev.to/justrouting/why-motorcycle-routing-is-a-different-problem-pim</link>
      <guid>https://dev.to/justrouting/why-motorcycle-routing-is-a-different-problem-pim</guid>
      <description>&lt;p&gt;In many parts of the world, routing means getting a car from point A to point B.&lt;/p&gt;

&lt;p&gt;But in Southeast Asia, that's only part of the transportation problem.&lt;/p&gt;

&lt;p&gt;Motorcycles are everywhere.&lt;/p&gt;

&lt;p&gt;In cities like Jakarta, Ho Chi Minh City, Bangkok, and Hanoi, motorcycles are not just an alternative way to travel. They are a fundamental part of daily transportation and logistics.&lt;/p&gt;

&lt;p&gt;Food delivery, parcel delivery, ride-hailing, and small-business logistics all depend heavily on two-wheel vehicles.&lt;/p&gt;

&lt;p&gt;Yet many routing systems still treat motorcycle routing as a variation of car routing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's a mistake.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Motorcycle routing is not simply car routing with a different average speed. It requires a different understanding of road accessibility, traffic regulations, road characteristics, and travel costs.&lt;/p&gt;

&lt;p&gt;Let's look at why.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Not Every Road Is Accessible to Every Vehicle
&lt;/h2&gt;

&lt;p&gt;The first challenge is road accessibility.&lt;/p&gt;

&lt;p&gt;A car and a motorcycle do not necessarily have the same legal access to a road.&lt;/p&gt;

&lt;p&gt;Consider Indonesia.&lt;/p&gt;

&lt;p&gt;Motorcycles are generally prohibited from using toll roads unless a physically separated motorcycle lane is provided. The Bali Mandara Toll Road is a notable exception.&lt;/p&gt;

&lt;p&gt;For a car, a toll road may be the fastest option.&lt;/p&gt;

&lt;p&gt;For a motorcycle, that same road may not be legally accessible.&lt;/p&gt;

&lt;p&gt;A routing engine that simply reuses car accessibility rules can generate completely invalid routes.&lt;/p&gt;

&lt;p&gt;This is not a minor difference in travel time. It's a fundamental difference in the road network available to each vehicle type.&lt;/p&gt;

&lt;p&gt;A routing engine needs to understand vehicle-specific restrictions, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;motor_vehicle=*&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;motorcycle=*&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;access=*&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;oneway=*&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;motorroad=*&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;OpenStreetMap provides these tags to describe road accessibility and restrictions.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;highway=motorway
motorcycle=no
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or a road where motorcycle access is explicitly permitted:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;highway=primary
motorcycle=yes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The routing engine must interpret these restrictions correctly rather than assuming that all motor vehicles share the same access rules.&lt;/p&gt;

&lt;p&gt;And there's another complication: traffic regulations are not identical across countries.&lt;/p&gt;

&lt;p&gt;A rule that makes sense in Indonesia may not apply in Thailand or Vietnam.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A good motorcycle routing profile needs to account for local traffic regulations, not just generic road classifications.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Road Hierarchy Does Not Tell the Whole Story
&lt;/h2&gt;

&lt;p&gt;Traditional car routing tends to favor roads with higher classifications.&lt;/p&gt;

&lt;p&gt;Highways, primary roads, and major arterial roads are often preferred because they offer higher speeds and more predictable driving conditions.&lt;/p&gt;

&lt;p&gt;But motorcycles operate differently.&lt;/p&gt;

&lt;p&gt;In many Southeast Asian cities, motorcycles regularly use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Narrow residential streets&lt;/li&gt;
&lt;li&gt;Small connecting roads&lt;/li&gt;
&lt;li&gt;Local access roads&lt;/li&gt;
&lt;li&gt;Shortcuts through dense neighborhoods&lt;/li&gt;
&lt;li&gt;Roads that are inconvenient for larger vehicles&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A car routing engine might prefer a major road even when a smaller connecting road offers a much more practical motorcycle route.&lt;/p&gt;

&lt;p&gt;Of course, not every narrow road should be preferred.&lt;/p&gt;

&lt;p&gt;Some roads may be private, restricted, poorly maintained, or unsuitable for certain motorcycles.&lt;/p&gt;

&lt;p&gt;The important point is that road classification alone is not enough.&lt;/p&gt;

&lt;p&gt;A motorcycle routing engine needs to evaluate road characteristics from a different perspective.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Road characteristic&lt;/th&gt;
&lt;th&gt;Car routing&lt;/th&gt;
&lt;th&gt;Motorcycle routing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Major arterial roads&lt;/td&gt;
&lt;td&gt;Usually preferred&lt;/td&gt;
&lt;td&gt;Often preferred&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Narrow residential roads&lt;/td&gt;
&lt;td&gt;Sometimes penalized&lt;/td&gt;
&lt;td&gt;Can be useful&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local connecting roads&lt;/td&gt;
&lt;td&gt;May be deprioritized&lt;/td&gt;
&lt;td&gt;Often valuable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restricted-access roads&lt;/td&gt;
&lt;td&gt;Avoid if prohibited&lt;/td&gt;
&lt;td&gt;Apply motorcycle-specific rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Toll roads&lt;/td&gt;
&lt;td&gt;Depends on user preference&lt;/td&gt;
&lt;td&gt;Must respect motorcycle restrictions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Poor road surfaces&lt;/td&gt;
&lt;td&gt;May be penalized&lt;/td&gt;
&lt;td&gt;May require stronger penalties&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The goal isn't to make motorcycles use smaller roads whenever possible.&lt;/p&gt;

&lt;p&gt;It's to find roads that are legally accessible and practical for two-wheel transportation.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Travel Time Requires a Different Cost Model
&lt;/h2&gt;

&lt;p&gt;Even when cars and motorcycles use the same road, their travel times can be different.&lt;/p&gt;

&lt;p&gt;A simple routing model might calculate travel time using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;duration = distance / average_speed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But average speed is not a universal property of a road.&lt;/p&gt;

&lt;p&gt;It depends on several factors:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vehicle type&lt;/li&gt;
&lt;li&gt;Road classification&lt;/li&gt;
&lt;li&gt;Road geometry&lt;/li&gt;
&lt;li&gt;Road surface&lt;/li&gt;
&lt;li&gt;Traffic conditions&lt;/li&gt;
&lt;li&gt;Local driving behavior&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a motorcycle might travel more slowly than a car on a high-speed road but move more efficiently through certain congested urban environments.&lt;/p&gt;

&lt;p&gt;However, assuming that motorcycles are always faster in traffic would also be incorrect.&lt;/p&gt;

&lt;p&gt;A realistic motorcycle speed model should consider road types and local conditions separately.&lt;/p&gt;

&lt;p&gt;One possible approach is to define different speed assumptions:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Road type&lt;/th&gt;
&lt;th&gt;Car profile&lt;/th&gt;
&lt;th&gt;Motorcycle profile&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Motorway&lt;/td&gt;
&lt;td&gt;High speed&lt;/td&gt;
&lt;td&gt;Country-specific&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Primary road&lt;/td&gt;
&lt;td&gt;High speed&lt;/td&gt;
&lt;td&gt;High speed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Secondary road&lt;/td&gt;
&lt;td&gt;Medium speed&lt;/td&gt;
&lt;td&gt;Medium speed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Residential road&lt;/td&gt;
&lt;td&gt;Low speed&lt;/td&gt;
&lt;td&gt;Low to medium speed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local road&lt;/td&gt;
&lt;td&gt;Variable&lt;/td&gt;
&lt;td&gt;Variable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are illustrative categories, not universal speed values.&lt;/p&gt;

&lt;p&gt;The actual speed assumptions should be calibrated using local observations or historical travel data.&lt;/p&gt;

&lt;p&gt;There is also an important distinction between &lt;strong&gt;routing cost&lt;/strong&gt; and &lt;strong&gt;reported duration&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A routing engine may use one cost model to choose a route and another speed model to estimate the expected travel time.&lt;/p&gt;

&lt;p&gt;This separation allows developers to improve ETA estimates without necessarily changing the route selection algorithm.&lt;/p&gt;

&lt;p&gt;For motorcycle routing, this can be particularly useful.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Traffic Restrictions and Turn Rules Matter
&lt;/h2&gt;

&lt;p&gt;Road accessibility is not only about whether a vehicle can enter a road.&lt;/p&gt;

&lt;p&gt;It also includes how the vehicle can move through intersections.&lt;/p&gt;

&lt;p&gt;Consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One-way streets&lt;/li&gt;
&lt;li&gt;Prohibited turns&lt;/li&gt;
&lt;li&gt;Vehicle-specific turn restrictions&lt;/li&gt;
&lt;li&gt;Restricted road entrances&lt;/li&gt;
&lt;li&gt;Conditional access restrictions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;OpenStreetMap represents many of these rules using access tags and turn restriction relations.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;type=restriction
restriction=no_right_turn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Vehicle-specific restrictions can also be represented:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;restriction:motorcycle=no_right_turn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A routing engine must correctly interpret these restrictions when constructing and traversing its road network.&lt;/p&gt;

&lt;p&gt;Otherwise, it might produce a route that looks geographically reasonable but cannot actually be followed.&lt;/p&gt;

&lt;p&gt;This is particularly important in dense urban environments, where intersections and local traffic rules can have a significant impact on the final route.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Motorcycle Routing Is Especially Important for Last-Mile Delivery
&lt;/h2&gt;

&lt;p&gt;Why does all of this matter commercially?&lt;/p&gt;

&lt;p&gt;Because motorcycles are deeply integrated into Southeast Asian logistics.&lt;/p&gt;

&lt;p&gt;Consider a typical food delivery platform in Jakarta.&lt;/p&gt;

&lt;p&gt;A delivery system needs to answer several questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which rider should receive an order?&lt;/li&gt;
&lt;li&gt;Which rider can reach the restaurant fastest?&lt;/li&gt;
&lt;li&gt;How long will delivery take?&lt;/li&gt;
&lt;li&gt;What is the best sequence for multiple deliveries?&lt;/li&gt;
&lt;li&gt;How should orders be distributed across available riders?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are not simply mapping questions.&lt;/p&gt;

&lt;p&gt;They are operational decisions that directly affect delivery time, cost, and customer experience.&lt;/p&gt;

&lt;p&gt;If the routing engine uses car-oriented assumptions, several problems can occur:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Incorrect travel times&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A car-based ETA model may not accurately represent motorcycle travel behavior.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unreachable routes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The engine may recommend roads that motorcycles cannot legally access.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Poor driver assignment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The system may assign an order to a rider based on inaccurate travel-time estimates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inefficient delivery planning&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Incorrect travel-time matrices can lead to poor fleet optimization results.&lt;/p&gt;

&lt;p&gt;This last point is particularly important.&lt;/p&gt;

&lt;p&gt;Vehicle routing optimization is only as good as the travel costs provided to it.&lt;/p&gt;

&lt;p&gt;If the underlying matrix does not reflect motorcycle travel, even a sophisticated optimization algorithm can produce poor delivery plans.&lt;/p&gt;

&lt;p&gt;Garbage in, garbage out.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. What Does a Proper Motorcycle Routing Engine Need?
&lt;/h2&gt;

&lt;p&gt;Building a dedicated motorcycle routing profile involves more than changing a few speed values.&lt;/p&gt;

&lt;p&gt;At a minimum, I would consider five components.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Vehicle-specific road accessibility
&lt;/h3&gt;

&lt;p&gt;Interpret road access restrictions according to the motorcycle profile.&lt;/p&gt;

&lt;p&gt;This includes country-specific rules and exceptions.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Motorcycle-specific road preferences
&lt;/h3&gt;

&lt;p&gt;Evaluate road classifications and characteristics using motorcycle-oriented routing preferences.&lt;/p&gt;

&lt;p&gt;Do not blindly reuse car road preferences.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Independent speed assumptions
&lt;/h3&gt;

&lt;p&gt;Maintain a separate speed model for motorcycles.&lt;/p&gt;

&lt;p&gt;Calibrate it using real-world travel observations whenever possible.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Correct turn and direction restrictions
&lt;/h3&gt;

&lt;p&gt;Respect one-way streets, prohibited turns, and vehicle-specific restrictions.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Continuous validation
&lt;/h3&gt;

&lt;p&gt;Test routes against real journeys in the target market.&lt;/p&gt;

&lt;p&gt;Useful validation scenarios include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Routes crossing major highways&lt;/li&gt;
&lt;li&gt;Routes through dense residential areas&lt;/li&gt;
&lt;li&gt;Routes involving toll roads&lt;/li&gt;
&lt;li&gt;Routes through narrow local streets&lt;/li&gt;
&lt;li&gt;Routes with multiple delivery stops&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A routing profile that works well in Singapore does not automatically work well in Jakarta or Ho Chi Minh City.&lt;/p&gt;

&lt;p&gt;Local validation matters.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Why We Built Motorcycle Routing into JustRouting
&lt;/h2&gt;

&lt;p&gt;At JustRouting, we focus on providing routing infrastructure for Southeast Asia.&lt;/p&gt;

&lt;p&gt;We believe motorcycle routing should be a first-class routing capability in this region, rather than an afterthought.&lt;/p&gt;

&lt;p&gt;That's why JustRouting provides separate driving and motorcycle routing profiles.&lt;/p&gt;

&lt;p&gt;Developers can select the appropriate profile when calculating a route.&lt;/p&gt;

&lt;p&gt;For example, using our Python SDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;justrouting&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;route&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;routes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;RouteRequest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;106.8456&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.2088&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;106.8272&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.1751&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;profile&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"motorcycle"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Distance: {route.distance / 1000:.2f} km"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Duration: {route.duration / 60:.1f} minutes"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can use the same routing capabilities from Python, Go, JavaScript, or through our REST API.&lt;/p&gt;

&lt;p&gt;For delivery platforms and fleet applications, the same motorcycle profile can also be used as the foundation for distance matrices and vehicle routing optimization.&lt;/p&gt;

&lt;p&gt;No need to build and maintain your own routing infrastructure.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Motorcycle routing is not a minor feature for Southeast Asia.&lt;/p&gt;

&lt;p&gt;It is an important part of building transportation software that reflects how people actually move.&lt;/p&gt;

&lt;p&gt;A routing engine designed primarily for cars may produce reasonable results in many situations. But when motorcycles become the primary vehicle for transportation and delivery, different assumptions are required.&lt;/p&gt;

&lt;p&gt;Road accessibility, local regulations, road preferences, and travel-time models all matter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The right routing engine should understand the vehicle, not just the destination.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you're building delivery platforms, logistics software, ride-hailing applications, or fleet management systems in Southeast Asia, motorcycle routing deserves more attention than simply changing the speed profile.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Try JustRouting&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JustRouting provides lightweight routing APIs for Southeast Asia, with dedicated driving and motorcycle profiles.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Website: &lt;a href="https://justrouting.tech/" rel="noopener noreferrer"&gt;https://justrouting.tech/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Documentation: &lt;a href="https://docs.justrouting.tech/" rel="noopener noreferrer"&gt;https://docs.justrouting.tech/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Free API key: &lt;a href="https://justrouting.tech/" rel="noopener noreferrer"&gt;https://justrouting.tech/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start building without running your own routing infrastructure.&lt;/p&gt;

</description>
      <category>routing</category>
      <category>motorcycle</category>
      <category>logistics</category>
      <category>map</category>
    </item>
    <item>
      <title>Build a Delivery AI Agent with MCP and Routing APIs</title>
      <dc:creator>JustRouting</dc:creator>
      <pubDate>Mon, 12 Oct 2026 14:47:00 +0000</pubDate>
      <link>https://dev.to/justrouting/build-a-delivery-ai-agent-with-mcp-and-routing-apis-aa4</link>
      <guid>https://dev.to/justrouting/build-a-delivery-ai-agent-with-mcp-and-routing-apis-aa4</guid>
      <description>&lt;p&gt;AI agents are getting better at understanding requests, reasoning about problems, and completing complex tasks.&lt;/p&gt;

&lt;p&gt;But real-world operations need more than language.&lt;/p&gt;

&lt;p&gt;A delivery assistant needs to answer questions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which driver should handle this order?&lt;/li&gt;
&lt;li&gt;How long will delivery take?&lt;/li&gt;
&lt;li&gt;What is the most efficient route?&lt;/li&gt;
&lt;li&gt;How should multiple vehicles be assigned?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are not text problems.&lt;/p&gt;

&lt;p&gt;They are routing problems.&lt;/p&gt;

&lt;p&gt;In this tutorial, we will build a delivery AI agent that uses the Model Context Protocol (MCP) to access routing capabilities.&lt;/p&gt;

&lt;p&gt;The agent will be able to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;convert addresses into coordinates&lt;/li&gt;
&lt;li&gt;compare drivers by travel time&lt;/li&gt;
&lt;li&gt;calculate routes&lt;/li&gt;
&lt;li&gt;optimize multiple deliveries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The final architecture:&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    U[User Request]
        --&amp;gt; A[AI Agent]

    A --&amp;gt; M[MCP Server]

    M --&amp;gt; G[Geocoding]
    M --&amp;gt; R[Routing]
    M --&amp;gt; O[Optimization]

    G --&amp;gt; J[JustRouting API]
    R --&amp;gt; J
    O --&amp;gt; J&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;The stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MCP for connecting AI agents with tools&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://justrouting.tech/" rel="noopener noreferrer"&gt;JustRouting&lt;/a&gt; MCP server for routing capabilities&lt;/li&gt;
&lt;li&gt;Southeast Asia routing data&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why delivery agents need routing tools
&lt;/h2&gt;

&lt;p&gt;A language model can understand:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Which driver should deliver this order?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But it does not know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;road distances&lt;/li&gt;
&lt;li&gt;travel times&lt;/li&gt;
&lt;li&gt;geographic relationships&lt;/li&gt;
&lt;li&gt;delivery optimization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The AI agent decides what to do.&lt;/p&gt;

&lt;p&gt;The routing system calculates what is physically possible.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;LLM = reasoning

Routing engine = transportation intelligence
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This separation is important.&lt;/p&gt;

&lt;p&gt;The AI agent handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;user intent&lt;/li&gt;
&lt;li&gt;business rules&lt;/li&gt;
&lt;li&gt;decision making&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The routing layer handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;maps&lt;/li&gt;
&lt;li&gt;distances&lt;/li&gt;
&lt;li&gt;travel time&lt;/li&gt;
&lt;li&gt;optimization&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Install the MCP routing server
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://justrouting.tech/" rel="noopener noreferrer"&gt;JustRouting&lt;/a&gt; provides an MCP server that exposes Southeast Asia routing capabilities to AI clients.&lt;/p&gt;

&lt;p&gt;Install:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/justrouting/mcp/main/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Configure your MCP client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"justrouting"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"justrouting-mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"JUSTROUTING_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The MCP server provides four tools:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;geocode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Convert addresses into coordinates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;route&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Calculate routes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;table&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Compare travel times&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;optimize&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Plan vehicle routes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Example 1: Assign the closest driver
&lt;/h2&gt;

&lt;p&gt;A dispatcher asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Assign the closest driver to Mondrian Singapore Duxton.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Available drivers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;D1: Marina Bay Sands
D2: Waterford Residence
D3: IKEA Alexandra
D4: VivoCity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI agent creates a workflow:&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart LR
    A[Customer Address]
        --&amp;gt; B[Geocode]

    B --&amp;gt; C[Calculate Travel Times]

    C --&amp;gt; D[Compare Drivers]

    D --&amp;gt; E[Recommend Driver]&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;The routing result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Driver   Location              Distance    Drive time

D1       Marina Bay Sands      3.60 km     ~8 min
D2       Waterford Residence   2.78 km     ~6 min
D3       IKEA Alexandra        5.33 km     ~13 min
D4       VivoCity              3.30 km     ~7 min
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent responds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Assign D2.

Reason:
- Shortest driving distance: 2.78 km
- Estimated arrival: ~6 minutes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI agent handles the business question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Who should deliver this order?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The routing layer provides the transportation intelligence:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"These are the actual driving costs."&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Example 2: Route planning
&lt;/h2&gt;

&lt;p&gt;A user asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;How long does it take to drive from Marina Bay Sands Singapore to Changi Airport?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The AI agent calls the &lt;code&gt;route&lt;/code&gt; tool.&lt;/p&gt;

&lt;p&gt;Result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Distance:
~19.1 km

Duration:
~23 minutes

Main roads:
East Coast Parkway
Airport Boulevard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent can explain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The fastest driving route takes about 23 minutes.

The route uses ECP and Airport Boulevard.
ERP charges may apply.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The user asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if I'm riding a motorcycle?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent changes routing profiles:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Car:

Distance: ~19.1 km
Time: ~23.6 min


Motorcycle:

Distance: ~19.1 km
Time: ~26.5 min
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The user adds:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if I want to avoid tolls?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent applies a routing constraint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Motorcycle with tolls:

Distance: ~19.1 km
Time: ~26.5 min


Motorcycle without tolls:

Distance: ~21.6 km
Time: ~35 min
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI agent understands:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"drive" → driving profile&lt;/li&gt;
&lt;li&gt;"motorcycle" → motorcycle profile&lt;/li&gt;
&lt;li&gt;"avoid tolls" → routing constraint&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The routing layer handles the geography.&lt;/p&gt;




&lt;h2&gt;
  
  
  Example 3: Fleet optimization
&lt;/h2&gt;

&lt;p&gt;Single-driver dispatch is useful.&lt;/p&gt;

&lt;p&gt;But real logistics problems are more complex.&lt;/p&gt;

&lt;p&gt;A dispatcher asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I have two vans and six pickup locations. Create today's routes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Vehicles:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;V1: 249 Sixth Ave, Singapore

V2: 8 Harlyn Rd, Singapore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Customers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C1: 75 Jln Kelabu Asap

C2: 20 Mount Sinai Rd

C3: 10 Bin Tong Park

C4: 9 Cluny Park

C5: 28 Nassim Rd

C6: 30 Chancery Ln
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI agent calls:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;optimize
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The optimization engine returns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Van V1

Start: 249 Sixth Ave

Route: C2 → C1 → C3

Total: ~19.4 minutes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Van V2

Start: 8 Harlyn Rd

Route: C6 → C5 → C4

Total: ~29.0 minutes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Final answer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;All six deliveries assigned.

No customer left unserved.

Combined fleet driving time:

~48.5 minutes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI agent does not manually solve the vehicle routing problem.&lt;/p&gt;

&lt;p&gt;It delegates mathematical optimization to a specialized routing engine.&lt;/p&gt;




&lt;h2&gt;
  
  
  The complete delivery AI architecture
&lt;/h2&gt;



&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    U[User]
        --&amp;gt; A[AI Agent]

    A --&amp;gt; M[MCP Server]

    M --&amp;gt; G[Geocode]
    M --&amp;gt; R[Route]
    M --&amp;gt; T[Travel Time Matrix]
    M --&amp;gt; O[Optimize]

    G --&amp;gt; J[JustRouting]
    R --&amp;gt; J
    T --&amp;gt; J
    O --&amp;gt; J&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;Each component has a clear responsibility.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI Agent
&lt;/h3&gt;

&lt;p&gt;Understands:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;user requests&lt;/li&gt;
&lt;li&gt;business rules&lt;/li&gt;
&lt;li&gt;priorities&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  MCP
&lt;/h3&gt;

&lt;p&gt;Provides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;standardized tool access&lt;/li&gt;
&lt;li&gt;discoverable capabilities&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Routing API
&lt;/h3&gt;

&lt;p&gt;Handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;maps&lt;/li&gt;
&lt;li&gt;distances&lt;/li&gt;
&lt;li&gt;travel times&lt;/li&gt;
&lt;li&gt;optimization&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why MCP changes application architecture
&lt;/h2&gt;

&lt;p&gt;Before MCP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AI application

      |

Custom integration

      |

External services
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every AI application needs to build its own connectors.&lt;/p&gt;

&lt;p&gt;With MCP:&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    A[AI Application]
        --&amp;gt; M[MCP Tools]

    M --&amp;gt; C[Reusable Capabilities]

    C --&amp;gt; R[Routing]
    C --&amp;gt; S[Search]
    C --&amp;gt; P[Payments]&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;A routing server becomes a reusable capability that can be used by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;delivery agents&lt;/li&gt;
&lt;li&gt;fleet assistants&lt;/li&gt;
&lt;li&gt;travel planners&lt;/li&gt;
&lt;li&gt;field service systems&lt;/li&gt;
&lt;li&gt;logistics copilots&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Beyond delivery
&lt;/h2&gt;

&lt;p&gt;The same pattern applies to many physical-world applications.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ride-hailing
&lt;/h3&gt;

&lt;p&gt;Question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which driver should accept this passenger?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;geocoding&lt;/li&gt;
&lt;li&gt;ETA calculation&lt;/li&gt;
&lt;li&gt;distance comparison&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Field service
&lt;/h3&gt;

&lt;p&gt;Question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which technician should visit this customer?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;location matching&lt;/li&gt;
&lt;li&gt;scheduling&lt;/li&gt;
&lt;li&gt;routing&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Emergency response
&lt;/h3&gt;

&lt;p&gt;Question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which vehicle can arrive fastest?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;route calculation&lt;/li&gt;
&lt;li&gt;travel-time estimation&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Build AI applications that understand the physical world
&lt;/h2&gt;

&lt;p&gt;Large language models provide reasoning.&lt;/p&gt;

&lt;p&gt;MCP provides tool access.&lt;/p&gt;

&lt;p&gt;Routing provides location intelligence.&lt;/p&gt;

&lt;p&gt;Together they enable AI systems that can make decisions in the real world.&lt;/p&gt;

&lt;p&gt;A delivery AI agent is not just a chatbot.&lt;/p&gt;

&lt;p&gt;It is a system that can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;understand a request&lt;/li&gt;
&lt;li&gt;call specialized tools&lt;/li&gt;
&lt;li&gt;evaluate options&lt;/li&gt;
&lt;li&gt;take action&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The next generation of logistics software will not only show routes.&lt;/p&gt;

&lt;p&gt;It will reason about movement.&lt;/p&gt;




&lt;p&gt;Learn more:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JustRouting: &lt;a href="https://justrouting.tech" rel="noopener noreferrer"&gt;https://justrouting.tech&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;MCP Server: &lt;a href="https://github.com/justrouting/mcp" rel="noopener noreferrer"&gt;https://github.com/justrouting/mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Documentation: &lt;a href="https://docs.justrouting.tech" rel="noopener noreferrer"&gt;https://docs.justrouting.tech&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>mcp</category>
      <category>logistics</category>
    </item>
    <item>
      <title>AI Agents Need a Routing Layer: Building Location Intelligence for Southeast Asia</title>
      <dc:creator>JustRouting</dc:creator>
      <pubDate>Mon, 12 Oct 2026 14:26:49 +0000</pubDate>
      <link>https://dev.to/justrouting/ai-agents-need-a-routing-layer-building-location-intelligence-for-southeast-asia-50gp</link>
      <guid>https://dev.to/justrouting/ai-agents-need-a-routing-layer-building-location-intelligence-for-southeast-asia-50gp</guid>
      <description>&lt;p&gt;AI agents are becoming better at understanding users, planning tasks, and making decisions.&lt;/p&gt;

&lt;p&gt;But there is one important limitation:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI agents do not understand the physical world by default.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They know language.&lt;/p&gt;

&lt;p&gt;They can reason about goals.&lt;/p&gt;

&lt;p&gt;They can call tools.&lt;/p&gt;

&lt;p&gt;But they still need external capabilities to answer questions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Which driver should deliver this order?"&lt;/li&gt;
&lt;li&gt;"What is the fastest way to visit these five locations?"&lt;/li&gt;
&lt;li&gt;"How long will it take to reach the airport?"&lt;/li&gt;
&lt;li&gt;"Which warehouse is closest to this customer?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are not language problems.&lt;/p&gt;

&lt;p&gt;They are routing problems.&lt;/p&gt;

&lt;p&gt;And routing is becoming a fundamental capability for AI agents operating in the real world.&lt;/p&gt;

&lt;h2&gt;
  
  
  From API calls to agent capabilities
&lt;/h2&gt;

&lt;p&gt;Traditional software integration looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Application → API → Response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A developer writes code:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;collect coordinates&lt;/li&gt;
&lt;li&gt;call a routing API&lt;/li&gt;
&lt;li&gt;parse the response&lt;/li&gt;
&lt;li&gt;implement business logic&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This works well for traditional applications.&lt;/p&gt;

&lt;p&gt;But AI agents introduce a different model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AI Agent → Tools → Capabilities
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent does not need to know every API detail.&lt;/p&gt;

&lt;p&gt;It needs tools it can discover and use.&lt;/p&gt;

&lt;p&gt;This is where the Model Context Protocol (MCP) becomes interesting.&lt;/p&gt;

&lt;p&gt;MCP provides a standard way for AI applications to connect with external capabilities.&lt;/p&gt;

&lt;p&gt;Instead of building custom integrations for every agent, developers can expose tools that agents can call when needed.&lt;/p&gt;

&lt;p&gt;Routing becomes one of those tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why AI agents need routing
&lt;/h2&gt;

&lt;p&gt;Many real-world tasks require spatial reasoning.&lt;/p&gt;

&lt;p&gt;Consider a delivery assistant:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"I have 20 orders in Jakarta. Assign them to three drivers and optimize today's routes."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A general-purpose AI model cannot solve this alone.&lt;/p&gt;

&lt;p&gt;It needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;address → coordinates conversion&lt;/li&gt;
&lt;li&gt;road network knowledge&lt;/li&gt;
&lt;li&gt;travel time estimation&lt;/li&gt;
&lt;li&gt;distance matrix calculation&lt;/li&gt;
&lt;li&gt;vehicle routing optimization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A routing layer provides these capabilities.&lt;/p&gt;

&lt;p&gt;The AI agent handles the reasoning:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"We have three drivers, 20 deliveries, and a priority customer."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The routing system handles the geography:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"These are the realistic driving times and optimized sequences."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Together they create a complete workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Southeast Asia needs a specialized routing layer
&lt;/h2&gt;

&lt;p&gt;Most global mapping platforms are designed for global coverage.&lt;/p&gt;

&lt;p&gt;That is useful.&lt;/p&gt;

&lt;p&gt;But Southeast Asia has unique routing challenges:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;motorcycles are a primary transportation mode&lt;/li&gt;
&lt;li&gt;dense urban areas create complex travel patterns&lt;/li&gt;
&lt;li&gt;delivery businesses depend heavily on two-wheel vehicles&lt;/li&gt;
&lt;li&gt;addresses are often less structured than Western markets&lt;/li&gt;
&lt;li&gt;local road access rules matter&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A routing layer optimized for Southeast Asia can provide better building blocks for applications such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;food delivery&lt;/li&gt;
&lt;li&gt;last-mile logistics&lt;/li&gt;
&lt;li&gt;fleet management&lt;/li&gt;
&lt;li&gt;ride-hailing&lt;/li&gt;
&lt;li&gt;e-commerce fulfillment&lt;/li&gt;
&lt;li&gt;field service operations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is not to replace global maps.&lt;/p&gt;

&lt;p&gt;The goal is to provide the right routing capability for the region where your users actually operate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introducing JustRouting MCP Server
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://justrouting.tech/" rel="noopener noreferrer"&gt;JustRouting&lt;/a&gt; provides an MCP server that exposes Southeast Asia routing capabilities to AI agents.&lt;/p&gt;

&lt;p&gt;The server provides four core tools:&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;route&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Calculate a route between locations.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"How long does it take to drive from Marina Bay Sands to Changi Airport?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent can geocode the locations and request the driving route.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;geocode&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Convert human places into coordinates.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Find the location of this customer address."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent does not need users to provide latitude and longitude manually.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;table&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Calculate travel-time matrices.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Which warehouse is closest to these five customers?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent can compare multiple origins and destinations efficiently.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;optimize&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Solve vehicle routing problems.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Plan today's delivery routes for five drivers."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent can use optimization tools instead of manually reasoning through hundreds of possible routes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing the MCP server
&lt;/h2&gt;

&lt;p&gt;Installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/justrouting/mcp/main/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Configure your MCP client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"justrouting"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"justrouting-mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"JUSTROUTING_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now an MCP-compatible AI client can access routing capabilities directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three examples: from answering questions to making decisions
&lt;/h2&gt;

&lt;p&gt;A routing layer becomes more valuable when an AI agent can use it as a tool.&lt;/p&gt;

&lt;p&gt;The agent does not need to understand road graphs, coordinates, or optimization algorithms.&lt;/p&gt;

&lt;p&gt;It only needs to understand the user's intent and call the right capability.&lt;/p&gt;

&lt;p&gt;Here are three examples.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Route: answering real-world travel questions
&lt;/h3&gt;

&lt;p&gt;User:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;How long does it take to drive from Marina Bay Sands Singapore to Changi Airport?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The AI agent can use the &lt;code&gt;route&lt;/code&gt; tool:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User request
      |
      v
  geocode places
      |
      v
  calculate route
      |
      v
  explain result
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Driving from Marina Bay Sands to Changi Airport takes about
23-24 minutes, covering roughly 19 km.

Route details:
- Main roads: East Coast Parkway (ECP), Airport Boulevard
- Distance: ~19.1 km
- Time: ~23 min 36 s
- Tolls: Yes (ERP charges may apply)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same question can include transportation preferences:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if I'm riding a motorcycle?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent can switch routing profiles:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;Car&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;Distance&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;~19.1 km&lt;/span&gt;
  &lt;span class="na"&gt;Time&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;~23.6 min&lt;/span&gt;

&lt;span class="na"&gt;Motorcycle&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;Distance&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;~19.1 km&lt;/span&gt;
  &lt;span class="na"&gt;Time&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;~26.5 min&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or apply constraints:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if I want to avoid tolls?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent can request a different route:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;Motorcycle with tolls&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;Distance&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;~19.1 km&lt;/span&gt;
  &lt;span class="na"&gt;Time&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;~26.5 min&lt;/span&gt;

&lt;span class="na"&gt;Motorcycle without tolls&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;Distance&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;~21.6 km&lt;/span&gt;
  &lt;span class="na"&gt;Time&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;~35 min&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important part is not the API call.&lt;/p&gt;

&lt;p&gt;The agent understands the intent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"drive" → driving profile&lt;/li&gt;
&lt;li&gt;"motorcycle" → motorcycle profile&lt;/li&gt;
&lt;li&gt;"avoid tolls" → routing constraint&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The routing layer handles the geography.&lt;/p&gt;




&lt;h3&gt;
  
  
  2. Dispatch: making operational decisions
&lt;/h3&gt;

&lt;p&gt;Now consider a logistics assistant.&lt;/p&gt;

&lt;p&gt;A dispatcher asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I need to assign a delivery to the closest available driver by driving distance.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Customer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Mondrian Singapore Duxton
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Available drivers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;D1: Marina Bay Sands
D2: Waterford Residence
D3: IKEA Alexandra
D4: VivoCity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A human might estimate based on a map.&lt;/p&gt;

&lt;p&gt;An AI agent can calculate the actual driving distance:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Driver  Location              Distance    Drive time

D1      Marina Bay Sands      3.60 km     ~8 min
D2      Waterford Residence   2.78 km     ~6 min
D3      IKEA Alexandra        5.33 km     ~13 min
D4      VivoCity              3.30 km     ~7 min
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Recommendation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Assign D2.

Reason:
- Shortest driving distance: 2.78 km
- Fastest estimated arrival: ~6 minutes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI agent handles the business reasoning:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Find the closest available driver."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The routing layer provides the transportation intelligence:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"These are the real driving costs."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This pattern applies to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;food delivery&lt;/li&gt;
&lt;li&gt;courier dispatch&lt;/li&gt;
&lt;li&gt;field service&lt;/li&gt;
&lt;li&gt;ride-hailing&lt;/li&gt;
&lt;li&gt;emergency response&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  3. Optimize: planning an entire fleet
&lt;/h3&gt;

&lt;p&gt;The next level is multi-vehicle optimization.&lt;/p&gt;

&lt;p&gt;User:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I have two vans available to pick up packages from six customers. How should these pickup tasks be assigned and ordered?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Vehicles:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;V1:
249 Sixth Ave, Singapore

V2:
8 Harlyn Rd, Singapore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Customers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C1: 75 Jln Kelabu Asap
C2: 20 Mount Sinai Rd
C3: 10 Bin Tong Park
C4: 9 Cluny Park
C5: 28 Nassim Rd
C6: 30 Chancery Ln
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI agent calls the &lt;code&gt;optimize&lt;/code&gt; tool.&lt;/p&gt;

&lt;p&gt;The routing optimizer returns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Van V1

Start:
249 Sixth Ave

Route:
C2 → C1 → C3

Total:
~19.4 minutes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Van V2

Start:
8 Harlyn Rd

Route:
C6 → C5 → C4

Total:
~29.0 minutes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Final plan:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;All 6 jobs assigned.
No customer left unserved.

Combined fleet driving time:
~48.5 minutes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI agent did not manually solve the vehicle routing problem.&lt;/p&gt;

&lt;p&gt;It delegated the mathematical optimization to a specialized routing engine.&lt;/p&gt;

&lt;p&gt;That is the future architecture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AI Agent
    |
    |
    +---- Understand user goal
    |
    +---- Call routing tools
              |
              +---- Geocode
              |
              +---- Route
              |
              +---- Matrix
              |
              +---- Optimize
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Large language models are good at reasoning.&lt;/p&gt;

&lt;p&gt;Routing engines are good at transportation mathematics.&lt;/p&gt;

&lt;p&gt;Together they create AI systems that can operate in the physical world.&lt;/p&gt;

&lt;h2&gt;
  
  
  The future architecture: AI + specialized infrastructure
&lt;/h2&gt;

&lt;p&gt;The future of AI applications will not be one giant model doing everything.&lt;/p&gt;

&lt;p&gt;It will look more like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                 AI Agent

                    |
        ---------------------------
        |            |            |
    Routing       Payments      Search
      Tool          Tool         Tool

        |
  Specialized Infrastructure
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Large language models provide reasoning.&lt;/p&gt;

&lt;p&gt;Specialized services provide reliable capabilities.&lt;/p&gt;

&lt;p&gt;Routing is one of those capabilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the physical world layer for AI
&lt;/h2&gt;

&lt;p&gt;The next generation of AI applications will interact with the real world:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;robots&lt;/li&gt;
&lt;li&gt;delivery systems&lt;/li&gt;
&lt;li&gt;transportation networks&lt;/li&gt;
&lt;li&gt;warehouses&lt;/li&gt;
&lt;li&gt;field operations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They will need more than text generation.&lt;/p&gt;

&lt;p&gt;They will need location intelligence.&lt;/p&gt;

&lt;p&gt;A routing layer gives AI agents the ability to understand movement, distance, and time.&lt;/p&gt;

&lt;p&gt;For Southeast Asia, that means providing routing capabilities designed around the region's transportation reality.&lt;/p&gt;

&lt;p&gt;The future AI agent will not only answer questions.&lt;/p&gt;

&lt;p&gt;It will make decisions in the physical world.&lt;/p&gt;

&lt;p&gt;And every physical decision needs a map.&lt;/p&gt;




&lt;p&gt;Learn more:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JustRouting: &lt;a href="https://justrouting.tech" rel="noopener noreferrer"&gt;https://justrouting.tech&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;MCP Server: &lt;a href="https://github.com/justrouting/mcp" rel="noopener noreferrer"&gt;https://github.com/justrouting/mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Documentation: &lt;a href="https://docs.justrouting.tech" rel="noopener noreferrer"&gt;https://docs.justrouting.tech&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>mcp</category>
      <category>routing</category>
    </item>
    <item>
      <title>Route planning for Southeast Asia without self-hosting OSRM</title>
      <dc:creator>JustRouting</dc:creator>
      <pubDate>Sat, 03 Oct 2026 12:05:28 +0000</pubDate>
      <link>https://dev.to/justrouting/route-planning-for-southeast-asia-without-self-hosting-osrm-33b1</link>
      <guid>https://dev.to/justrouting/route-planning-for-southeast-asia-without-self-hosting-osrm-33b1</guid>
      <description>&lt;p&gt;Ask anyone who has operated OSRM in production and they will tell you the same thing: the routing engine is excellent, but running the infrastructure behind it is not trivial.&lt;/p&gt;

&lt;p&gt;A global OpenStreetMap graph can require serious hardware and long preprocessing times. Even a Southeast Asia extract — the region many applications actually need — still means managing large map files, running &lt;code&gt;osrm-extract&lt;/code&gt; and &lt;code&gt;osrm-contract&lt;/code&gt;, monitoring memory usage, and rebuilding everything whenever OpenStreetMap data changes.&lt;/p&gt;

&lt;p&gt;The hidden cost is not only the server.&lt;/p&gt;

&lt;p&gt;Someone has to maintain the pipeline:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;download updated OSM extracts&lt;/li&gt;
&lt;li&gt;rebuild routing graphs&lt;/li&gt;
&lt;li&gt;monitor failed preprocessing jobs&lt;/li&gt;
&lt;li&gt;keep production instances healthy&lt;/li&gt;
&lt;li&gt;remember how everything works months later&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For many teams, routing is not the product. It is just a capability inside a logistics app, delivery platform, marketplace, or AI agent.&lt;/p&gt;

&lt;p&gt;You need routes. You do not want to become a routing infrastructure company.&lt;/p&gt;

&lt;h2&gt;
  
  
  The alternative: managed routing infrastructure
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://justrouting.tech" rel="noopener noreferrer"&gt;JustRouting&lt;/a&gt; is a hosted routing API focused on Southeast Asia.&lt;/p&gt;

&lt;p&gt;Instead of running your own routing stack, you get ready-to-use APIs for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;directions&lt;/li&gt;
&lt;li&gt;distance matrices&lt;/li&gt;
&lt;li&gt;map matching&lt;/li&gt;
&lt;li&gt;nearest-road lookup&lt;/li&gt;
&lt;li&gt;geocoding&lt;/li&gt;
&lt;li&gt;fleet optimization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The underlying routing engines are powered by open-source technology, but the infrastructure work — servers, preprocessing, updates, and operations — is handled for you.&lt;/p&gt;

&lt;p&gt;The important parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Driving and motorcycle profiles.&lt;/strong&gt; Motorcycle routing matters in Southeast Asia, where two-wheel delivery and transportation are everywhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A simple REST API.&lt;/strong&gt; Use it from any language with JSON requests.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Official SDKs for Python, JavaScript/TypeScript, and Go.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A free tier for experiments and small projects.&lt;/strong&gt; No credit card required.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Five lines of Python
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;justrouting&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;YOUR_API_KEY&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;route&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;routes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;RouteRequest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;106.8146&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.1352&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;       &lt;span class="c1"&gt;# Jakarta Kota
&lt;/span&gt;    &lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;107.6191&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.9175&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;  &lt;span class="c1"&gt;# Bandung
&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;route&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;distance&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; km, &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;route&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;duration&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; min&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Need a motorcycle route?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;route&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;routes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;RouteRequest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;106.8146&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.1352&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;107.6191&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.9175&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;profile&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;motorcycle&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Distance matrices are also available:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;matrix&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;matrix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MatrixRequest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;coordinates&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;depot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stop_a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stop_b&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;sources&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;destinations&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can request only the rows and columns you need instead of calculating a full N×N matrix.&lt;/p&gt;

&lt;p&gt;For delivery fleets, use optimization:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;plan&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;optimization&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;solve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OptimizationRequest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;vehicles&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Vehicle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;106.8146&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.1352&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
            &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;106.8146&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.1352&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;jobs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="n"&gt;justrouting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Job&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;101&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;106.8451&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.2146&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The API returns the optimized sequence for each vehicle.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same routing capability from Node.js
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Client&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@justrouting/client&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;YOUR_API_KEY&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;route&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;routes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;106.8146&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.1352&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="na"&gt;destination&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;107.6191&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;6.9175&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${(&lt;/span&gt;&lt;span class="nx"&gt;route&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;distance&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;toFixed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;&lt;span class="s2"&gt; km`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both SDKs are lightweight and dependency-free.&lt;/p&gt;

&lt;h2&gt;
  
  
  Routing for AI agents: introducing MCP
&lt;/h2&gt;

&lt;p&gt;Traditional applications call routing APIs directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Application → Routing API → Route result
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But AI applications work differently.&lt;/p&gt;

&lt;p&gt;An AI agent needs tools it can discover and call dynamically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AI Agent → Tools → Routing capability
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is where the Model Context Protocol (MCP) becomes interesting.&lt;/p&gt;

&lt;p&gt;Instead of writing custom glue code that converts addresses into coordinates, calls geocoding, builds matrices, and parses routing responses, an MCP-compatible agent can use routing as a native capability.&lt;/p&gt;

&lt;p&gt;JustRouting provides an official &lt;a href="https://github.com/justrouting/mcp" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Install it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/justrouting/mcp/main/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Configure your MCP client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"justrouting"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"justrouting-mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"JUSTROUTING_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server provides four tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;route&lt;/code&gt; — calculate driving routes&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;geocode&lt;/code&gt; — convert places into coordinates&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;table&lt;/code&gt; — calculate travel-time matrices&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;optimize&lt;/code&gt; — solve vehicle routing problems&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now an AI assistant can reason about real-world transportation problems.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Which driver should deliver this order in Jakarta?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent can:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;geocode the customer's address&lt;/li&gt;
&lt;li&gt;calculate travel times from multiple drivers&lt;/li&gt;
&lt;li&gt;compare routes&lt;/li&gt;
&lt;li&gt;select the closest driver&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No manual coordinate lookup.&lt;br&gt;
No custom API integration.&lt;br&gt;
No routing-specific code.&lt;/p&gt;

&lt;p&gt;Routing becomes a capability that AI agents can use directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it before building infrastructure
&lt;/h2&gt;

&lt;p&gt;The interactive demo in &lt;a href="https://justrouting.tech" rel="noopener noreferrer"&gt;JustRouting&lt;/a&gt; lets you test routes, matrices, and fleet optimization directly from your browser.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.justrouting.tech" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; includes API references and examples.&lt;/p&gt;

&lt;p&gt;A free API key takes about thirty seconds.&lt;/p&gt;

&lt;p&gt;To be clear about the trade-off:&lt;/p&gt;

&lt;p&gt;If you need global coverage, offline routing, or complete control over your routing graph, self-hosting OSRM is still a great option.&lt;/p&gt;

&lt;p&gt;But if your users are in Southeast Asia and you simply need reliable routing capabilities, a managed API removes a large amount of operational work.&lt;/p&gt;

&lt;p&gt;Keep the open-source routing technology.&lt;/p&gt;

&lt;p&gt;Skip the server farm.&lt;/p&gt;

&lt;p&gt;Build your product.&lt;/p&gt;

</description>
      <category>osrm</category>
      <category>routing</category>
      <category>api</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
