[GraphHopper] Truncated routes

Bruno Carle bruno.carle at gmail.com
Fri Jun 20 10:57:36 UTC 2014


Hi Emden, I just tried your route locally with the texas pbf file and I get
same road as on graphhopper.com

Can you send the code you are using to call GH?

Here is the code I used to test it:

public void testMe() throws Exception{
        test("../../../maps/texas-latest.osm.pbf",
                new GHPlace(32.71201241907505, -96.92441816057254),
                new GHPlace(32.67352373055029, -97.02611101550494));


    }


    public void test(String osmFile,GHPlace from,GHPlace to) throws
Exception{
        GraphHopper graphHopper=new GraphHopper();
        graphHopper.setInMemory(true)
                    .setGraphHopperLocation("/tmp/ghosm2-test")
                    .setOSMFile(osmFile)
//                    .disableCHShortcuts()
                    .setEncodingManager(new EncodingManager("car"));
        graphHopper.importOrLoad();
        GHRequest request=new GHRequest(from, to);
          GHResponse response= graphHopper.route(request);

...


Bruno




On Wed, Jun 18, 2014 at 6:20 PM, Emden R. Gansner <erg at research.att.com>
wrote:

> I am only using the routing aspects of 0.3 graphhopper. I am using
> docs/core/routing.md as a template. For the OSM file,
> I am using a downloaded version of http://download.geofabrik.de/
> north-america/us/texas-latest.osm.pbf, and for the lat-lon
> endpoints I use S=(32.71201241907505 -96.92441816057254) and
> T=(32.67352373055029 -97.02611101550494). The resulting route
> starts close to S, but the last point is about 6.5km from T. When I
> compare my route from what I see when using
> http://graphhopper.com/maps/, the starts of both routes are identical,
> but the route I get is truncated about half way along.
>
> I would appreciate any help in pointing out what I am doing wrong? Thanks.
>
>     Emden
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140620/e58d20ff/attachment.html>


More information about the GraphHopper mailing list