123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <!DOCTYPE html>
- <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>GraphServer | Pleasant Programmer</title>
- <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
- <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
- <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
- <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
- <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
- <link rel="canonical" href="http://pleasantprogrammer.com/posts/graphserver.html">
- <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
- <link rel="prev" href="transit-wand.html" title="Transit Wand" type="text/html">
- <link rel="next" href="elevation-data-in-otp.html" title="Elevation Data in OTP" type="text/html">
- <meta property="og:site_name" content="Pleasant Programmer">
- <meta property="og:title" content="GraphServer">
- <meta property="og:url" content="http://pleasantprogrammer.com/posts/graphserver.html">
- <meta property="og:description" content="Link: http://graphserver.github.io/graphserver/
- One other routing webapp I saw was GraphServer. It's actually more of a general purpose Graph library which supports GTFS and OSM data than an actual de">
- <meta property="og:type" content="article">
- <meta property="article:published_time" content="2013-07-23T14:48:29+08:00">
- <meta property="article:tag" content="philippine-transit-app">
- <meta property="article:tag" content="programming">
- </head>
- <body>
- <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
-
- <header id="header" role="banner"><div class="thomas">
- <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
- </div>
-
- <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
- <span id="blog-title">Pleasant Programmer</span>
- </a></h1>
-
-
- <nav id="menu" role="navigation"><ul>
- <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
- <li><a href="../archive.html">Archives</a></li>
- <li><a href="../categories/index.html">Tags</a></li>
- <li><a href="../rss.xml">RSS</a></li>
-
-
- </ul></nav></header><div id="container">
- <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">GraphServer</a></h1>
- <small>
- <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-23T14:48:29+08:00" itemprop="datePublished" title="2013-07-23 14:48">2013-07-23 14:48</time></a></span>
- |
- More posts about
-
- <a class="tag p-category" href="../categories/philippine-transit-app.html" rel="tag">philippine-transit-app</a>
- <a class="tag p-category" href="../categories/programming.html" rel="tag">programming</a>
- </small>
-
- </header><div class="e-content entry-content" itemprop="articleBody text">
- <div>
- <p>Link: <a href="http://graphserver.github.io/graphserver/">http://graphserver.github.io/graphserver/</a></p>
- <p>One other routing webapp I saw was GraphServer. It's actually more of a general purpose Graph library which supports GTFS and OSM data than an actual dedicated routing software like OpenTripPlanner. It's also based off python and C instead of Java, so it feels a lot less heavy.</p>
- <p>The instructions on the website are already pretty good. There are just some minor errors with it. Where it says <code>gs_gtfsdb_build</code>, you should actually use <code>gs_gtfsdb_compile</code>. Also, when running <code>gs_osmdb_compile</code> you might need to use <code>-t</code> for tolerant in case you follow the instructions on chopping up the original OSM data.</p>
- <p>A nice suggestion from the GraphServer instructions was to crop the OSM data to minimize the graph size. This is actually quite helpful if you downloaded the entire Philippine OSM dump. It reduced the original 900MB file to 135MB which was a lot more workable. I did hit a problem with their instructions though. The linked version of osmosis is an old one, which doesn't support 64-bit ids. The <a href="http://wiki.openstreetmap.org/wiki/Osmosis">latest version of Osmosis</a> easily did the job though.</p>
- <p>The actual routing though, was not exactly good. I only tried one route which should normally take 1-2 transfers, it suggested a route which involved 4+ transfers. It also didn't provide any alternate routes aside from that one. I'm not sure if it's a limitation of the provided routeserver, but I didn't bother checking if it supported parameters which might provide better routes.</p>
- <p>I think graphserver could be useful, but it seems more involved than say OpenTripPlanner. There do seem to be people who use graphserver for their routing apps, but for the bounds of the contest, or just as a side project, it might require too much effort.</p>
- </div>
- </div>
- <aside class="postpromonav"><nav><ul class="pager clearfix">
- <li class="previous">
- <a href="transit-wand.html" rel="prev" title="Transit Wand">← Previous post</a>
- </li>
- <li class="next">
- <a href="elevation-data-in-otp.html" rel="next" title="Elevation Data in OTP">Next post →</a>
- </li>
- </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
- <script>
- var disqus_shortname ="pleasantprog",
- disqus_url="http://pleasantprogrammer.com/posts/graphserver.html",
- disqus_title="GraphServer",
- disqus_identifier="cache/posts/graphserver.html",
- disqus_config = function () {
- this.language = "en";
- };
- (function() {
- var dsq = document.createElement('script'); dsq.async = true;
- dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- })();
- </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
- </noscript>
- <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
- </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
-
- </footer>
- </div>
-
-
-
-
- <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
- var easter_egg = new Konami();
- easter_egg.code = function() {
- $(".thomas").toggleClass("whoa");
- $("body").scrollTop(0);
- }
- easter_egg.load();
- // love you, thomas!
- // yours, @_phi + @meggykawsek
- </script>
- </body>
- </html>
|