<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Per,<br>
      <br>
      I completely agree with Jan. Also doing the transformation on the
      server side (e.g. in GraphHopperServlet) could be another
      solution.<br>
      <br>
      Regards,<br>
      Peter<br>
      <br>
      On 20.11.2014 11:29, Jan Torben Heuer wrote:<br>
    </div>
    <blockquote
      cite="mid:6B3E3CBD-5416-4F12-ACB5-EE5F27365798@komoot.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Hi Per,
      <div><br>
      </div>
      <div>I recommend to do it client side, it should be fairly easy to
        draw the graphhopper response (Google Polyline Encoding) with
        OpenLayers (which then takes care of projections).</div>
      <div>If you prefer a server-side solution, you can use geotools to
        covert between 4326 and 3011 before sending the result to the
        client. I don’t see much benefit in doing it server-side.</div>
      <div>If you even change the projection in the source file, prepare
        to change large parts of the code base.</div>
      <div><br>
      </div>
      <div>HTH,</div>
      <div><br>
      </div>
      <div>Jan</div>
      <div><br>
      </div>
      <div>
        <div>
          <div>Am 20.11.2014 um 11:21 schrieb Per Laas <<a
              moz-do-not-send="true"
              href="mailto:per.laas@muchomail.com">per.laas@muchomail.com</a>>:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <div style="font-family:Arial, sans-serif; font-size:10pt;"><font
                size="2">Hi!<br>
                <br>
                Very good work you have done with graphhopper. Uppsala
                local government in Sweden uses SWEREF 99 18 00 (SRID
                3011) as spatial reference system for most maps using
                among others Mapserver, geowebcache and OpenLayers. It
                could be nice to add some routing in these maps.<br>
                <br>
                -Is it possible to make graphhopper service API work
                with this spatial reference system? Maybe by creating a
                osm.bpf with this </font><font size="2"><font size="2">spatial
                  reference system?</font> I do not know if it is
                possible at all, for example using ogr2osm.<br>
                <br>
                -Is</font><font size="2"> it possible to make the
                graphhopper client to work with this spatial reference
                system? It seems the default client uses leaflet. I have
                read somewhere leaflet is not so strong handling
                different </font><font size="2">spatial reference
                systems.<br>
                <br>
                -Is there somebody who know if anybody has used
                graphhopper service API with OpenLayers?<br>
              </font><font size="2"><br>
                -Is there any documentation how to use graphhopper with
                your chosen spatial reference system?<br>
              </font><br>
              Appreciate any answers<br>
              Thanks, Per<br>
              <br>
              ----------------------<br>
              Per Låås<br>
              Valloxvägen 20<br>
              74142 Knivsta<br>
              Tel: +46-18-343561<br>
              Mob: +46-725-196540<br>
              <a moz-do-not-send="true"
                href="mailto:per.laas@muchomail.com">per.laas@muchomail.com</a><br>
              ----------------------<br>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>