[GraphHopper] Truncated routes
Bruno Carle
bruno.carle at gmail.com
Fri Jun 20 16:25:36 UTC 2014
BTW you are using the correct API :)
On Fri, Jun 20, 2014 at 6:24 PM, Bruno Carle <bruno.carle at gmail.com> wrote:
> Hi I ran your sample and the route seems ok... last point is
> 32.67386972604703,-97.0261107628865
> Here is the output that I get...
> 115 points
> distance from source to start 89.8181ms
> distance from end to target 38.4730ms
>
> Do you get the same output ?
>
> Bruno
>
>
> On Fri, Jun 20, 2014 at 3:27 PM, Emden R. Gansner <erg at research.att.com>
> wrote:
>
>> On 6/20/14, 6:57 AM, Bruno Carle wrote:
>>
>> 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);
>>
>> ...
>>
>> I have attached my code. It would be fine with me if I were told I was
>> using the API incorrectly. From the code you sent,
>> it certainly appears I am working at a lower level than necessary. Thanks
>> for helping.
>>
>> 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/9b153ace/attachment.html>
More information about the GraphHopper
mailing list