Opened 13 years ago
Closed 13 years ago
#598 closed defect/bug (fixed)
Please add ";" as is_in separator
Reported by: | tegzed | Owned by: | KaZeR |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | core | Version: | git master |
Severity: | Keywords: | ||
Cc: |
Description
Hello,
I think I found a possible improvement for the town search of Navit. In Hungary's (and possibly several other country's) OSM data most of the is_in values for towns are separated by ";" character instead of "," that Navit currently expects. Please consider adding ";" as separator to make town search work in these countries also. The below "patch" for maptool/osm.c fixes the problem and leaves the original search method operational also.
change line 1450 from:
1450 while ((tok=strtok(buf, ","))) {
to:
1450 while ((tok=strtok(buf, ",;"))) {
Please consider including this modification if it does not affect correct operation of Navit.
Please also supplement Hungary's entry with the local name in country_table from
{348,"Hungary"},
{348,"Hungary,Magyarország"},
Thanks, David Tegze
Change History (1)
comment:1 Changed 13 years ago by kazer
- Resolution set to fixed
- Status changed from new to closed
Applied in r3417. Thanks!