[OSRM-talk] json route_geometry format change? 0.3.8 -> 0.4.3

Dennis Luxen dennis at mapbox.com
Fri Sep 12 09:12:40 UTC 2014


Thanks for flagging this. Please file a ticket in the bug tracker.

--Dennis 

> Am 12.09.2014 um 10:16 schrieb Florian Lohoff <f at zz.de>:
> 
> 
> Hi,
> is it intentional that the route_geometry json field in the response changed from
> beeing an array of arrays to beeing an array of strings?
> 
> 0.4.3 output:
> 
> {
>  "hint_data" : {
>     "checksum" : 3513085911,
>     "locations" : [
>        "rU4RAP_baQDmJR4AHgAAAAcAAAAAAAAAEgAAAE6DDgC0TBEDyjFnAAAASQA",
>        "rU4RAP_baQDmJR4ACAAAAB0AAAA2AAAAAAAAAE6DDgCwThEDpzVnAAEAAAA"
>     ]
>  },
>  "route_summary" : {
>     "start_point" : "39370330|tertiary|",
>     "total_distance" : 89,
>     "total_time" : 0,
>     "end_point" : "39370330|tertiary|"
>  },
>  "via_points" : [
>     [
>        51.465397,
>        6.762954
>     ],
>     [
>        51.465904,
>        6.763943
>     ]
>  ],
>  "status" : 0,
>  "found_alternative" : false,
>  "route_geometry" : [
>     "51.465396,6.762954",
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     "51.465904,6.763943"
>  ],
>  "via_indices" : [
>     0,
>     2
>  ],
>  "status_message" : "Found route between points",
>  "route_name" : [
>     "",
>     ""
>  ]
> }
> 
> 
> Old 0.3 Version - I upgraded a production instance from 0.3.8 to 0.4.3
> and it failed immediatly :)
> 
> {
>  "hint_data" : {
>     "checksum" : -1845252855,
>     "locations" : [
>        "eYg3AFq9AABQAAAANgAAANdz_4MK-eI_rodOAMxRCgC",
>        "gYg3AFq9AAAZAAAAFAAAAF7_ogd21-E_4YdOADBSCgD"
>     ]
>  },
>  "via_points" : [
>     [
>        51.46542,
>        6.763
>     ],
>     [
>        51.46593,
>        6.764
>     ]
>  ],
>  "route_summary" : {
>     "start_point" : "Unter den Ulmen",
>     "total_time" : 9,
>     "total_distance" : 90,
>     "end_point" : "Unter den Ulmen"
>  },
>  "status" : 0,
>  "version" : 0.3,
>  "transactionId" : "OSRM Routing Engine JSON Descriptor (v0.3)",
>  "route_geometry" : [
>     [
>        51.46542,
>        6.763
>     ],
>     [
>        51.46577,
>        6.76368
>     ],
>     [
>        51.46593,
>        6.764
>     ]
>  ],
>  "route_name" : [
>     "",
>     ""
>  ],
>  "status_message" : "Found route between points",
>  "alternative_names" : [
>     [
>        "",
>        ""
>     ]
>  ],
>  "alternative_summaries" : [],
>  "alternative_instructions" : [],
>  "alternative_geometries" : [],
>  "route_instructions" : []
> }
> 
> 
> -- 
> Florian Lohoff                                                 f at zz.de
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk



More information about the OSRM-talk mailing list