Skip to content

Distance tables give negative / infinite numbers? #1055

@hdevalence

Description

@hdevalence

I've installed OSRM, and I tried creating distance tables, but I'm a bit confused about what's going on when I create distance tables. For instance, I can get negative numbers or INT_MAX, but the output JSON page doesn't have any information on the table format, so I'm not really sure what's going on.

~/t/a/Project-OSRM $ curl 'http://127.0.0.1:5000/table?loc=43.500000,-79.300000&loc=43.500000,-79.366667&loc=43.500000,-79.433333&loc=43.500000,-79.500000&loc=43.566667,-79.300000&loc=43.566667,-79.366667&loc=43.566667,-79.433333&loc=43.566667,-79.500000&loc=43.633333,-79.300000&loc=43.633333,-79.366667&loc=43.633333,-79.433333&loc=43.633333,-79.500000&loc=43.700000,-79.300000&loc=43.700000,-79.366667&loc=43.700000,-79.433333&loc=43.700000,-79.500000'
{"distance_table":[[0,103993,103993,241818,-157,102889,104022,185714,24560,83010,110138,159182,90261,2147483647,130272,170005],[103993,0,0,197970,103836,4383,129,141866,81565,31607,65617,117745,110184,2147483647,95595,134374],[103993,0,0,197970,103836,4383,129,141866,81565,31607,65617,117745,110184,2147483647,95595,134374],[241867,198019,198019,0,241710,196915,198048,73118,219439,177036,131786,104931,238298,2147483647,184734,159227],[-163,103830,103830,241655,0,102726,103859,185551,24397,82847,109975,159019,90098,2147483647,130109,169842],[102889,4383,4383,196866,102732,0,4412,140762,80461,27224,64513,116641,109080,2147483647,94491,133270],[104022,129,129,197999,103865,4412,0,141895,81594,31636,65646,117774,110213,2147483647,95624,134403],[185714,141866,141866,73069,185557,140762,141895,0,163286,120883,75633,49438,182145,2147483647,129030,109059],[23806,80811,80811,218636,23649,79707,80840,162532,0,59828,86956,136000,67079,2147483647,107090,146823],[83640,32237,32237,177617,83483,27854,32266,121513,61212,0,45264,97392,89831,2147483647,75242,114021],[110754,66233,66233,132353,110597,65129,66262,76249,88326,45250,0,52128,114258,2147483647,65696,75287],[159182,117745,117745,104882,159025,116641,117774,49438,136754,96762,51512,0,153837,2147483647,93500,68193],[90278,110201,110201,238266,90121,109097,110230,182162,67850,89218,113659,153854,0,2147483647,88203,132643],[2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,0,2147483647,2147483647],[130273,95596,95596,184686,130116,94492,95625,129031,107845,74613,65081,93501,88187,2147483647,0,45356],[169931,134300,134300,159104,169774,133196,134329,108985,147503,113317,74597,68119,132552,2147483647,45281,0]]}⏎

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions