Print cost in search result

wip/bound-for
Markus Koch 2021-03-13 13:07:33 +01:00
parent e01245cb98
commit 6ffee116c7
1 changed files with 2 additions and 2 deletions

View File

@ -315,9 +315,9 @@ int dijkstra_search_route_to_geojson(struct dijkstra_search *search,
sdprintf(buf, &offset, " \"properties\": {\n"
" \"heading\": \"%f\",\n"
" \"through\": \"%s\",\n"
" \"cost\": \"%d\",\n"
" \"type\": \"%d\",\n",
heading, path_to_next->name, path_to_next->net_meta->type);
heading, path_to_next->name, search->states[node->uid]->cost, path_to_next->net_meta->type);
sdprintf(buf, &offset, " \"description\": \"");
sdprintf(buf, &offset, format_str, relative_direction_str, search->states[node->uid]->cheapest_path->name);
sdprintf(buf, &offset, "\"\n");