diff options
author | Pierre GRANDIN <pgrandin@users.noreply.github.com> | 2016-03-21 11:52:46 -0700 |
---|---|---|
committer | Pierre GRANDIN <pgrandin@users.noreply.github.com> | 2016-03-21 11:52:46 -0700 |
commit | 6f12e099b2486a1f2024020ed98db7b61717dbc5 (patch) | |
tree | d7d2ebc48514eb430695a3dd76cd6f0364fbed49 | |
parent | ebcbb10ba35bae0585c9b90a5ca2fe4d95d6cebf (diff) | |
parent | b7f0dfaeb9366deb76e6381da01e26c03368044c (diff) | |
download | navit-6f12e099b2486a1f2024020ed98db7b61717dbc5.tar.gz |
Merge pull request #88 from navit-gps/maptool_dest_fw_bwR6634
add destination forward/backward
-rw-r--r-- | navit/maptool/osm.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/navit/maptool/osm.c b/navit/maptool/osm.c index f049f67e1..131d7f0eb 100644 --- a/navit/maptool/osm.c +++ b/navit/maptool/osm.c @@ -106,6 +106,8 @@ enum attr_strings_type { attr_string_ref, attr_string_exit_to, attr_string_street_destination, + attr_string_street_destination_forward, + attr_string_street_destination_backward, attr_string_house_number, attr_string_label, attr_string_postal, @@ -1188,6 +1190,18 @@ osm_add_tag(char *k, char *v) attr_strings_save(attr_string_street_destination, v); level=5; } + if (! strcmp(k,"destination:forward")) + { + if (in_way) + attr_strings_save(attr_string_street_destination_forward, v); + level=5; + } + if (! strcmp(k,"destination:backward")) + { + if (in_way) + attr_strings_save(attr_string_street_destination_backward, v); + level=5; + } if (! strcmp(k,"exit_to")) { attr_strings_save(attr_string_exit_to, v); level=5; @@ -1781,6 +1795,8 @@ osm_end_way(struct maptool_osm *osm) item_bin_add_attr_string(item_bin, attr_street_name_systematic, attr_strings[attr_string_street_name_systematic]); item_bin_add_attr_string(item_bin, attr_street_name_systematic_nat, attr_strings[attr_string_street_name_systematic_nat]); item_bin_add_attr_string(item_bin, attr_street_destination, attr_strings[attr_string_street_destination]); + item_bin_add_attr_string(item_bin, attr_street_destination_forward, attr_strings[attr_string_street_destination_forward]); + item_bin_add_attr_string(item_bin, attr_street_destination_backward, attr_strings[attr_string_street_destination_backward]); item_bin_add_attr_longlong(item_bin, attr_osm_wayid, osmid_attr_value); if (debug_attr_buffer[0]) item_bin_add_attr_string(item_bin, attr_debug, debug_attr_buffer); |