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

Florian Lohoff f at zz.de
Fri Sep 12 08:16:27 UTC 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20140912/8d1c10e9/attachment.sig>


More information about the OSRM-talk mailing list