Hi Per, 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). 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. If you even change the projection in the source file, prepare to change large parts of the code base.
HTH, Jan Am 20.11.2014 um 11:21 schrieb Per Laas <[email protected]>: > Hi! > > 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. > > -Is it possible to make graphhopper service API work with this spatial > reference system? Maybe by creating a osm.bpf with this spatial reference > system? I do not know if it is possible at all, for example using ogr2osm. > > -Is 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 spatial reference > systems. > > -Is there somebody who know if anybody has used graphhopper service API with > OpenLayers? > > -Is there any documentation how to use graphhopper with your chosen spatial > reference system? > > Appreciate any answers > Thanks, Per > > ---------------------- > Per Låås > Valloxvägen 20 > 74142 Knivsta > Tel: +46-18-343561 > Mob: +46-725-196540 > [email protected] > ---------------------- > > > > > The Free Email with so much more! > =====> http://www.MuchoMail.com <===== > _______________________________________________ > GraphHopper mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/graphhopper
_______________________________________________ GraphHopper mailing list [email protected] https://lists.openstreetmap.org/listinfo/graphhopper
