<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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 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 href="mailto:per.laas@muchomail.com">per.laas@muchomail.com</a><br>----------------------<br><br><br><br> <br><hr>The Free Email with so much more!<br>=====> http://www.MuchoMail.com <=====</div>_______________________________________________<br>GraphHopper mailing list<br><a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>https://lists.openstreetmap.org/listinfo/graphhopper<br></blockquote></div><br></div></body></html>