/***************************************
- $Header: /home/amb/routino/src/RCS/types.c,v 1.3 2010/05/27 17:25:23 amb Exp $
+ $Header: /home/amb/routino/src/RCS/types.c,v 1.6 2010/09/17 17:43:41 amb Exp $
Functions for handling the data types.
if(!strcmp(highway,"cycleway")) return(Way_Cycleway);
return(Way_Count);
+ case 'f':
+ if(!strcmp(highway,"ferry")) return(Way_Ferry);
+ return(Way_Count);
+
case 'm':
if(!strcmp(highway,"motorway")) return(Way_Motorway);
return(Way_Count);
switch(*property)
{
case 'b':
+ if(!strcmp(property,"bicycleroute"))
+ return(Property_BicycleRoute);
+
if(!strcmp(property,"bridge"))
return(Property_Bridge);
break;
+ case 'f':
+ if(!strcmp(property,"footroute"))
+ return(Property_FootRoute);
+ break;
+
case 'm':
if(!strcmp(property,"multilane"))
return(Property_Multilane);
return("path");
case Way_Steps:
return("steps");
+ case Way_Ferry:
+ return("ferry");
case Way_Count:
;
case Property_Tunnel:
return("tunnel");
+ case Property_FootRoute:
+ return("footroute");
+
+ case Property_BicycleRoute:
+ return("bicycleroute");
+
case Property_Count:
;
}
const char *AllowedNameList Returns the list of names.
- wayallow_t allowed The allowed type.
+ allow_t allowed The allowed type.
++++++++++++++++++++++++++++++++++++++*/
-const char *AllowedNameList(wayallow_t allowed)
+const char *AllowedNameList(allow_t allowed)
{
static char string[256];
strcat(string,"tunnel");
}
+ if(properties & Properties_FootRoute)
+ {
+ if(*string) strcat(string,", ");
+ strcat(string,"footroute");
+ }
+
+ if(properties & Properties_BicycleRoute)
+ {
+ if(*string) strcat(string,", ");
+ strcat(string,"bicycleroute");
+ }
+
return(string);
}
" cycleway = Cycleway\n"
" path = Path\n"
" steps = Steps\n"
+ " ferry = Ferry\n"
;
}
const char *PropertyList(void)
{
- return " paved = Paved (suitable for normal wheels)\n"
- " multilane = Multiple lanes\n"
- " bridge = Bridge\n"
- " Tunnel = Tunnel\n"
+ return " paved = Paved (suitable for normal wheels)\n"
+ " multilane = Multiple lanes\n"
+ " bridge = Bridge\n"
+ " tunnel = Tunnel\n"
+ " footroute = A route marked for foot travel\n"
+ " bicycleroute = A route marked for bicycle travel\n"
;
}