… | |
… | |
59 | int flags; |
59 | int flags; |
60 | }; |
60 | }; |
61 | |
61 | |
62 | struct item busy_item; |
62 | struct item busy_item; |
63 | |
63 | |
64 | struct default_flags default_flags2[] = { { type_street_nopass, AF_PBH }, { type_street_0, AF_ALL }, { type_street_1_city, AF_ALL }, { type_street_2_city, AF_ALL }, { type_street_3_city, AF_ALL }, { type_street_4_city, AF_ALL }, { type_highway_city, AF_MOTORIZED_FAST }, { type_street_1_land, AF_ALL }, { type_street_2_land, AF_ALL }, { type_street_3_land, AF_ALL }, { type_street_4_land, AF_ALL }, { type_street_n_lanes, AF_MOTORIZED_FAST }, { type_highway_land, AF_MOTORIZED_FAST }, { type_ramp, AF_MOTORIZED_FAST }, { type_roundabout, AF_ALL }, { type_ferry, AF_ALL }, { type_cycleway, AF_PBH }, { type_track_paved, AF_ALL }, { type_track_gravelled, AF_ALL }, { type_track_unpaved, AF_ALL }, { type_track_ground, AF_ALL }, { type_track_grass, AF_ALL }, { type_footway, AF_PBH }, { type_living_street, AF_ALL }, { type_street_service, AF_ALL }, { type_street_parking_lane, AF_ALL }, { type_bridleway, AF_PBH }, { type_path, AF_PBH }, { type_steps, AF_PBH }, { type_street_pedestrian, AF_PBH }, }; |
64 | struct default_flags default_flags2[] = { { type_street_nopass, NAVIT_AF_PBH }, { type_street_0, NAVIT_AF_ALL }, { type_street_1_city, NAVIT_AF_ALL }, { type_street_2_city, NAVIT_AF_ALL }, { type_street_3_city, NAVIT_AF_ALL }, { type_street_4_city, NAVIT_AF_ALL }, { type_highway_city, NAVIT_AF_MOTORIZED_FAST }, { type_street_1_land, NAVIT_AF_ALL }, { type_street_2_land, NAVIT_AF_ALL }, { type_street_3_land, NAVIT_AF_ALL }, { type_street_4_land, NAVIT_AF_ALL }, { type_street_n_lanes, NAVIT_AF_MOTORIZED_FAST }, { type_highway_land, NAVIT_AF_MOTORIZED_FAST }, { type_ramp, NAVIT_AF_MOTORIZED_FAST }, { type_roundabout, NAVIT_AF_ALL }, { type_ferry, NAVIT_AF_ALL }, { type_cycleway, NAVIT_AF_PBH }, { type_track_paved, NAVIT_AF_ALL }, { type_track_gravelled, NAVIT_AF_ALL }, { type_track_unpaved, NAVIT_AF_ALL }, { type_track_ground, NAVIT_AF_ALL }, { type_track_grass, NAVIT_AF_ALL }, { type_footway, NAVIT_AF_PBH }, { type_living_street, NAVIT_AF_ALL }, { type_street_service, NAVIT_AF_ALL }, { type_street_parking_lane, NAVIT_AF_ALL }, { type_bridleway, NAVIT_AF_PBH }, { type_path, NAVIT_AF_PBH }, { type_steps, NAVIT_AF_PBH }, { type_street_pedestrian, NAVIT_AF_PBH }, }; |
65 | |
65 | |
66 | struct item_name item_names[] = { |
66 | struct item_name item_names[] = { |
67 | #define ITEM2(x,y) ITEM(y) |
67 | #define ITEM2(x,y) ITEM(y) |
68 | #define ITEM(x) { type_##x, #x }, |
68 | #define ITEM(x) { type_##x, #x }, |
69 | #include "item_def.h" |
69 | #include "item_def.h" |
… | |
… | |
214 | |
214 | |
215 | } |
215 | } |
216 | */ |
216 | */ |
217 | // not working yet!!!!! ------ |
217 | // not working yet!!!!! ------ |
218 | |
218 | |
|
|
219 | // return: 1 -> don't put it into search index |
|
|
220 | // 0 -> yes, put it into search index |
|
|
221 | int item_not_for_search_index(enum item_type i_type) |
|
|
222 | { |
|
|
223 | |
|
|
224 | if (i_type == type_house_number_interpolation_even) |
|
|
225 | { |
|
|
226 | return 1; |
|
|
227 | } |
|
|
228 | // exclude "unknown street" types from search index --> dont do this, otherwise we dont find all the good things :-) |
|
|
229 | //else if (i_type == type_street_unkn) |
|
|
230 | //{ |
|
|
231 | // return 1; |
|
|
232 | //} |
|
|
233 | else if (i_type == type_house_number_interpolation_odd) |
|
|
234 | { |
|
|
235 | return 1; |
|
|
236 | } |
|
|
237 | else if (i_type == type_house_number_interpolation_all) |
|
|
238 | { |
|
|
239 | return 1; |
|
|
240 | } |
|
|
241 | else if (i_type == type_house_number_interpolation_alphabetic) |
|
|
242 | { |
|
|
243 | return 1; |
|
|
244 | } |
|
|
245 | else if (i_type == type_poly_airport) |
|
|
246 | { |
|
|
247 | return 1; |
|
|
248 | } |
|
|
249 | else if (i_type == type_poly_apron) |
|
|
250 | { |
|
|
251 | return 1; |
|
|
252 | } |
|
|
253 | else if (i_type == type_poly_terminal) |
|
|
254 | { |
|
|
255 | return 1; |
|
|
256 | } |
|
|
257 | else if (i_type == type_border_national_park) |
|
|
258 | { |
|
|
259 | return 1; |
|
|
260 | } |
|
|
261 | else if (i_type == type_border_political) |
|
|
262 | { |
|
|
263 | return 1; |
|
|
264 | } |
|
|
265 | else if (i_type == type_height_line_1) |
|
|
266 | { |
|
|
267 | return 1; |
|
|
268 | } |
|
|
269 | else if (i_type == type_height_line_2) |
|
|
270 | { |
|
|
271 | return 1; |
|
|
272 | } |
|
|
273 | else if (i_type == type_height_line_3) |
|
|
274 | { |
|
|
275 | return 1; |
|
|
276 | } |
|
|
277 | else if (i_type == type_poly_wood) |
|
|
278 | { |
|
|
279 | return 1; |
|
|
280 | } |
|
|
281 | else if (i_type == type_poly_greenfield) |
|
|
282 | { |
|
|
283 | return 1; |
|
|
284 | } |
|
|
285 | else if (i_type == type_poly_reservoir) |
|
|
286 | { |
|
|
287 | return 1; |
|
|
288 | } |
|
|
289 | else if (i_type == type_poly_playground) |
|
|
290 | { |
|
|
291 | return 1; |
|
|
292 | } |
|
|
293 | else if (i_type == type_poly_land) |
|
|
294 | { |
|
|
295 | return 1; |
|
|
296 | } |
|
|
297 | else if (i_type == type_poly_marsh) |
|
|
298 | { |
|
|
299 | return 1; |
|
|
300 | } |
|
|
301 | else if (i_type == type_poly_mud) |
|
|
302 | { |
|
|
303 | return 1; |
|
|
304 | } |
|
|
305 | else if (i_type == type_poly_water) |
|
|
306 | { |
|
|
307 | return 1; |
|
|
308 | } |
|
|
309 | else if (i_type == type_poly_wood) |
|
|
310 | { |
|
|
311 | return 1; |
|
|
312 | } |
|
|
313 | else if (i_type == type_poly_place1) |
|
|
314 | { |
|
|
315 | return 1; |
|
|
316 | } |
|
|
317 | else if (i_type == type_poly_place2) |
|
|
318 | { |
|
|
319 | return 1; |
|
|
320 | } |
|
|
321 | else if (i_type == type_poly_place3) |
|
|
322 | { |
|
|
323 | return 1; |
|
|
324 | } |
|
|
325 | else if (i_type == type_poly_place4) |
|
|
326 | { |
|
|
327 | return 1; |
|
|
328 | } |
|
|
329 | else if (i_type == type_poly_place5) |
|
|
330 | { |
|
|
331 | return 1; |
|
|
332 | } |
|
|
333 | else if (i_type == type_poly_place6) |
|
|
334 | { |
|
|
335 | return 1; |
|
|
336 | } |
|
|
337 | else if (i_type == type_ferry) |
|
|
338 | { |
|
|
339 | return 1; |
|
|
340 | } |
|
|
341 | else if (i_type == type_water_canal) |
|
|
342 | { |
|
|
343 | return 1; |
|
|
344 | } |
|
|
345 | else if (i_type == type_water_drain) |
|
|
346 | { |
|
|
347 | return 1; |
|
|
348 | } |
|
|
349 | else if (i_type == type_water_river) |
|
|
350 | { |
|
|
351 | return 1; |
|
|
352 | } |
|
|
353 | else if (i_type == type_poly_water) |
|
|
354 | { |
|
|
355 | return 1; |
|
|
356 | } |
|
|
357 | else if (i_type == type_water_stream) |
|
|
358 | { |
|
|
359 | return 1; |
|
|
360 | } |
|
|
361 | else |
|
|
362 | { |
|
|
363 | return 0; |
|
|
364 | } |
|
|
365 | |
|
|
366 | return 0; |
|
|
367 | } |
|
|
368 | |
|
|
369 | int item_is_town_label_major(enum item_type i_type) |
|
|
370 | { |
|
|
371 | if (i_type == type_town_label_1e6) |
|
|
372 | { |
|
|
373 | return 1; |
|
|
374 | } |
|
|
375 | else if (i_type == type_town_label_2e6) |
|
|
376 | { |
|
|
377 | return 1; |
|
|
378 | } |
|
|
379 | else if (i_type == type_town_label_5e6) |
|
|
380 | { |
|
|
381 | return 1; |
|
|
382 | } |
|
|
383 | else if (i_type == type_town_label_1e7) |
|
|
384 | { |
|
|
385 | return 1; |
|
|
386 | } |
|
|
387 | else |
|
|
388 | { |
|
|
389 | return 0; |
|
|
390 | } |
|
|
391 | |
|
|
392 | return 0; |
|
|
393 | } |
|
|
394 | |
|
|
395 | int item_is_town_label_no_major(enum item_type i_type) |
|
|
396 | { |
|
|
397 | if (i_type == type_town_label_0e0) |
|
|
398 | { |
|
|
399 | return 1; |
|
|
400 | } |
|
|
401 | else if (i_type == type_town_label_1e0) |
|
|
402 | { |
|
|
403 | return 1; |
|
|
404 | } |
|
|
405 | else if (i_type == type_town_label_2e0) |
|
|
406 | { |
|
|
407 | return 1; |
|
|
408 | } |
|
|
409 | else if (i_type == type_town_label_5e0) |
|
|
410 | { |
|
|
411 | return 1; |
|
|
412 | } |
|
|
413 | else if (i_type == type_town_label_1e1) |
|
|
414 | { |
|
|
415 | return 1; |
|
|
416 | } |
|
|
417 | else if (i_type == type_town_label_2e1) |
|
|
418 | { |
|
|
419 | return 1; |
|
|
420 | } |
|
|
421 | else if (i_type == type_town_label_5e1) |
|
|
422 | { |
|
|
423 | return 1; |
|
|
424 | } |
|
|
425 | else if (i_type == type_town_label_1e2) |
|
|
426 | { |
|
|
427 | return 1; |
|
|
428 | } |
|
|
429 | else if (i_type == type_town_label_2e2) |
|
|
430 | { |
|
|
431 | return 1; |
|
|
432 | } |
|
|
433 | else if (i_type == type_town_label_5e2) |
|
|
434 | { |
|
|
435 | return 1; |
|
|
436 | } |
|
|
437 | else if (i_type == type_town_label_1e3) |
|
|
438 | { |
|
|
439 | return 1; |
|
|
440 | } |
|
|
441 | else if (i_type == type_town_label_2e3) |
|
|
442 | { |
|
|
443 | return 1; |
|
|
444 | } |
|
|
445 | else if (i_type == type_town_label_5e3) |
|
|
446 | { |
|
|
447 | return 1; |
|
|
448 | } |
|
|
449 | else if (i_type == type_town_label_1e4) |
|
|
450 | { |
|
|
451 | return 1; |
|
|
452 | } |
|
|
453 | else if (i_type == type_town_label_2e4) |
|
|
454 | { |
|
|
455 | return 1; |
|
|
456 | } |
|
|
457 | else if (i_type == type_town_label_5e4) |
|
|
458 | { |
|
|
459 | return 1; |
|
|
460 | } |
|
|
461 | else if (i_type == type_town_label_1e5) |
|
|
462 | { |
|
|
463 | return 1; |
|
|
464 | } |
|
|
465 | else if (i_type == type_town_label_2e5) |
|
|
466 | { |
|
|
467 | return 1; |
|
|
468 | } |
|
|
469 | else if (i_type == type_town_label_5e5) |
|
|
470 | { |
|
|
471 | return 1; |
|
|
472 | } |
|
|
473 | else if (i_type == type_town_label) |
|
|
474 | { |
|
|
475 | return 1; |
|
|
476 | } |
|
|
477 | /* major town */ |
|
|
478 | /* |
|
|
479 | else if (i_type == type_town_label_1e6) |
|
|
480 | { |
|
|
481 | return 1; |
|
|
482 | } |
|
|
483 | else if (i_type == type_town_label_2e6) |
|
|
484 | { |
|
|
485 | return 1; |
|
|
486 | } |
|
|
487 | else if (i_type == type_town_label_5e6) |
|
|
488 | { |
|
|
489 | return 1; |
|
|
490 | } |
|
|
491 | else if (i_type == type_town_label_1e7) |
|
|
492 | { |
|
|
493 | return 1; |
|
|
494 | } |
|
|
495 | */ |
|
|
496 | else |
|
|
497 | { |
|
|
498 | return 0; |
|
|
499 | } |
|
|
500 | |
|
|
501 | return 0; |
|
|
502 | } |
|
|
503 | |
|
|
504 | int item_is_district_label(enum item_type i_type) |
|
|
505 | { |
|
|
506 | if (i_type == type_district_label_0e0) |
|
|
507 | { |
|
|
508 | return 1; |
|
|
509 | } |
|
|
510 | else if (i_type == type_district_label_1e0) |
|
|
511 | { |
|
|
512 | return 1; |
|
|
513 | } |
|
|
514 | else if (i_type == type_district_label_2e0) |
|
|
515 | { |
|
|
516 | return 1; |
|
|
517 | } |
|
|
518 | else if (i_type == type_district_label_5e0) |
|
|
519 | { |
|
|
520 | return 1; |
|
|
521 | } |
|
|
522 | else if (i_type == type_district_label_1e1) |
|
|
523 | { |
|
|
524 | return 1; |
|
|
525 | } |
|
|
526 | else if (i_type == type_district_label_2e1) |
|
|
527 | { |
|
|
528 | return 1; |
|
|
529 | } |
|
|
530 | else if (i_type == type_district_label_5e1) |
|
|
531 | { |
|
|
532 | return 1; |
|
|
533 | } |
|
|
534 | else if (i_type == type_district_label_1e2) |
|
|
535 | { |
|
|
536 | return 1; |
|
|
537 | } |
|
|
538 | else if (i_type == type_district_label_2e2) |
|
|
539 | { |
|
|
540 | return 1; |
|
|
541 | } |
|
|
542 | else if (i_type == type_district_label_5e2) |
|
|
543 | { |
|
|
544 | return 1; |
|
|
545 | } |
|
|
546 | else if (i_type == type_district_label_1e3) |
|
|
547 | { |
|
|
548 | return 1; |
|
|
549 | } |
|
|
550 | else if (i_type == type_district_label_2e3) |
|
|
551 | { |
|
|
552 | return 1; |
|
|
553 | } |
|
|
554 | else if (i_type == type_district_label_5e3) |
|
|
555 | { |
|
|
556 | return 1; |
|
|
557 | } |
|
|
558 | else if (i_type == type_district_label_1e4) |
|
|
559 | { |
|
|
560 | return 1; |
|
|
561 | } |
|
|
562 | else if (i_type == type_district_label_2e4) |
|
|
563 | { |
|
|
564 | return 1; |
|
|
565 | } |
|
|
566 | else if (i_type == type_district_label_5e4) |
|
|
567 | { |
|
|
568 | return 1; |
|
|
569 | } |
|
|
570 | else if (i_type == type_district_label_1e5) |
|
|
571 | { |
|
|
572 | return 1; |
|
|
573 | } |
|
|
574 | else if (i_type == type_district_label_2e5) |
|
|
575 | { |
|
|
576 | return 1; |
|
|
577 | } |
|
|
578 | else if (i_type == type_district_label_5e5) |
|
|
579 | { |
|
|
580 | return 1; |
|
|
581 | } |
|
|
582 | else if (i_type == type_district_label_1e6) |
|
|
583 | { |
|
|
584 | return 1; |
|
|
585 | } |
|
|
586 | else if (i_type == type_district_label_2e6) |
|
|
587 | { |
|
|
588 | return 1; |
|
|
589 | } |
|
|
590 | else if (i_type == type_district_label_5e6) |
|
|
591 | { |
|
|
592 | return 1; |
|
|
593 | } |
|
|
594 | else if (i_type == type_district_label_1e7) |
|
|
595 | { |
|
|
596 | return 1; |
|
|
597 | } |
|
|
598 | else if (i_type == type_district_label) |
|
|
599 | { |
|
|
600 | return 1; |
|
|
601 | } |
|
|
602 | else |
|
|
603 | { |
|
|
604 | return 0; |
|
|
605 | } |
|
|
606 | |
|
|
607 | return 0; |
|
|
608 | } |
|
|
609 | |
|
|
610 | int item_is_poi(enum item_type i_type) |
|
|
611 | // int item_is_poi(int item_type i_type) |
|
|
612 | { |
|
|
613 | if (i_type == type_poi_lake) |
|
|
614 | { |
|
|
615 | return 1; |
|
|
616 | } |
|
|
617 | else if (i_type == type_poi_island) |
|
|
618 | { |
|
|
619 | return 1; |
|
|
620 | } |
|
|
621 | else if (i_type == type_poi_land_feature) |
|
|
622 | { |
|
|
623 | return 1; |
|
|
624 | } |
|
|
625 | else if (i_type == type_poi_cape) |
|
|
626 | { |
|
|
627 | return 1; |
|
|
628 | } |
|
|
629 | else if (i_type == type_poi_rock) |
|
|
630 | { |
|
|
631 | return 1; |
|
|
632 | } |
|
|
633 | else if (i_type == type_poi_airport) |
|
|
634 | { |
|
|
635 | return 1; |
|
|
636 | } |
|
|
637 | else if (i_type == type_poi_toll_booth) |
|
|
638 | { |
|
|
639 | return 1; |
|
|
640 | } |
|
|
641 | else if (i_type == type_poi_fuel) |
|
|
642 | { |
|
|
643 | return 1; |
|
|
644 | } |
|
|
645 | else if (i_type == type_poi_hotel) |
|
|
646 | { |
|
|
647 | return 1; |
|
|
648 | } |
|
|
649 | else if (i_type == type_poi_camp_rv) |
|
|
650 | { |
|
|
651 | return 1; |
|
|
652 | } |
|
|
653 | else if (i_type == type_poi_marina) |
|
|
654 | { |
|
|
655 | return 1; |
|
|
656 | } |
|
|
657 | else if (i_type == type_poi_attraction) |
|
|
658 | { |
|
|
659 | return 1; |
|
|
660 | } |
|
|
661 | else if (i_type == type_poi_museum_history) |
|
|
662 | { |
|
|
663 | return 1; |
|
|
664 | } |
|
|
665 | else if (i_type == type_poi_shopping) |
|
|
666 | { |
|
|
667 | return 1; |
|
|
668 | } |
|
|
669 | else if (i_type == type_poi_car_dealer_parts) |
|
|
670 | { |
|
|
671 | return 1; |
|
|
672 | } |
|
|
673 | else if (i_type == type_poi_car_parking) |
|
|
674 | { |
|
|
675 | return 1; |
|
|
676 | } |
|
|
677 | else if (i_type == type_poi_wreck) |
|
|
678 | { |
|
|
679 | return 1; |
|
|
680 | } |
|
|
681 | else if (i_type == type_poi_building) |
|
|
682 | { |
|
|
683 | return 1; |
|
|
684 | } |
|
|
685 | else if (i_type == type_poi_bridge) |
|
|
686 | { |
|
|
687 | return 1; |
|
|
688 | } |
|
|
689 | else if (i_type == type_poi_park) |
|
|
690 | { |
|
|
691 | return 1; |
|
|
692 | } |
|
|
693 | else if (i_type == type_poi_water_feature) |
|
|
694 | { |
|
|
695 | return 1; |
|
|
696 | } |
|
|
697 | else if (i_type == type_poi_bar) |
|
|
698 | { |
|
|
699 | return 1; |
|
|
700 | } |
|
|
701 | else if (i_type == type_poi_picnic) |
|
|
702 | { |
|
|
703 | return 1; |
|
|
704 | } |
|
|
705 | else if (i_type == type_poi_hospital) |
|
|
706 | { |
|
|
707 | return 1; |
|
|
708 | } |
|
|
709 | else if (i_type == type_poi_camping) |
|
|
710 | { |
|
|
711 | return 1; |
|
|
712 | } |
|
|
713 | else if (i_type == type_poi_public_utilities) |
|
|
714 | { |
|
|
715 | return 1; |
|
|
716 | } |
|
|
717 | else if (i_type == type_poi_burgerking) |
|
|
718 | { |
|
|
719 | return 1; |
|
|
720 | } |
|
|
721 | else if (i_type == type_poi_kfc) |
|
|
722 | { |
|
|
723 | return 1; |
|
|
724 | } |
|
|
725 | else if (i_type == type_poi_mcdonalds) |
|
|
726 | { |
|
|
727 | return 1; |
|
|
728 | } |
|
|
729 | else if (i_type == type_poi_wienerwald) |
|
|
730 | { |
|
|
731 | return 1; |
|
|
732 | } |
|
|
733 | else if (i_type == type_poi_dining) |
|
|
734 | { |
|
|
735 | return 1; |
|
|
736 | } |
|
|
737 | else if (i_type == type_poi_fastfood) |
|
|
738 | { |
|
|
739 | return 1; |
|
|
740 | } |
|
|
741 | else if (i_type == type_poi_police) |
|
|
742 | { |
|
|
743 | return 1; |
|
|
744 | } |
|
|
745 | else if (i_type == type_poi_auto_club) |
|
|
746 | { |
|
|
747 | return 1; |
|
|
748 | } |
|
|
749 | else if (i_type == type_poi_autoservice) |
|
|
750 | { |
|
|
751 | return 1; |
|
|
752 | } |
|
|
753 | else if (i_type == type_poi_bank) |
|
|
754 | { |
|
|
755 | return 1; |
|
|
756 | } |
|
|
757 | else if (i_type == type_poi_bay) |
|
|
758 | { |
|
|
759 | return 1; |
|
|
760 | } |
|
|
761 | else if (i_type == type_poi_bend) |
|
|
762 | { |
|
|
763 | return 1; |
|
|
764 | } |
|
|
765 | else if (i_type == type_poi_boat_ramp) |
|
|
766 | { |
|
|
767 | return 1; |
|
|
768 | } |
|
|
769 | else if (i_type == type_poi_border_station) |
|
|
770 | { |
|
|
771 | return 1; |
|
|
772 | } |
|
|
773 | else if (i_type == type_poi_bowling) |
|
|
774 | { |
|
|
775 | return 1; |
|
|
776 | } |
|
|
777 | else if (i_type == type_poi_bus_station) |
|
|
778 | { |
|
|
779 | return 1; |
|
|
780 | } |
|
|
781 | else if (i_type == type_poi_bus_stop) |
|
|
782 | { |
|
|
783 | return 1; |
|
|
784 | } |
|
|
785 | else if (i_type == type_poi_business_service) |
|
|
786 | { |
|
|
787 | return 1; |
|
|
788 | } |
|
|
789 | else if (i_type == type_poi_car_rent) |
|
|
790 | { |
|
|
791 | return 1; |
|
|
792 | } |
|
|
793 | else if (i_type == type_poi_car_wash) |
|
|
794 | { |
|
|
795 | return 1; |
|
|
796 | } |
|
|
797 | else if (i_type == type_poi_casino) |
|
|
798 | { |
|
|
799 | return 1; |
|
|
800 | } |
|
|
801 | else if (i_type == type_poi_cemetery) |
|
|
802 | { |
|
|
803 | return 1; |
|
|
804 | } |
|
|
805 | else if (i_type == type_poi_church) |
|
|
806 | { |
|
|
807 | return 1; |
|
|
808 | } |
|
|
809 | else if (i_type == type_poi_cinema) |
|
|
810 | { |
|
|
811 | return 1; |
|
|
812 | } |
|
|
813 | else if (i_type == type_poi_civil_removeme) |
|
|
814 | { |
|
|
815 | return 1; |
|
|
816 | } |
|
|
817 | else if (i_type == type_poi_communication) |
|
|
818 | { |
|
|
819 | return 1; |
|
|
820 | } |
|
|
821 | else if (i_type == type_poi_concert) |
|
|
822 | { |
|
|
823 | return 1; |
|
|
824 | } |
|
|
825 | else if (i_type == type_poi_cove) |
|
|
826 | { |
|
|
827 | return 1; |
|
|
828 | } |
|
|
829 | else if (i_type == type_poi_crossing) |
|
|
830 | { |
|
|
831 | return 1; |
|
|
832 | } |
|
|
833 | else if (i_type == type_poi_dam) |
|
|
834 | { |
|
|
835 | return 1; |
|
|
836 | } |
|
|
837 | else if (i_type == type_poi_danger_area) |
|
|
838 | { |
|
|
839 | return 1; |
|
|
840 | } |
|
|
841 | else if (i_type == type_poi_danger_sea_wreck) |
|
|
842 | { |
|
|
843 | return 1; |
|
|
844 | } |
|
|
845 | else if (i_type == type_poi_daymark) |
|
|
846 | { |
|
|
847 | return 1; |
|
|
848 | } |
|
|
849 | else if (i_type == type_poi_diving) |
|
|
850 | { |
|
|
851 | return 1; |
|
|
852 | } |
|
|
853 | else if (i_type == type_poi_drinking_water) |
|
|
854 | { |
|
|
855 | return 1; |
|
|
856 | } |
|
|
857 | else if (i_type == type_poi_emergency) |
|
|
858 | { |
|
|
859 | return 1; |
|
|
860 | } |
|
|
861 | else if (i_type == type_poi_fair) |
|
|
862 | { |
|
|
863 | return 1; |
|
|
864 | } |
|
|
865 | else if (i_type == type_poi_firebrigade) |
|
|
866 | { |
|
|
867 | return 1; |
|
|
868 | } |
|
|
869 | else if (i_type == type_poi_fish) |
|
|
870 | { |
|
|
871 | return 1; |
|
|
872 | } |
|
|
873 | else if (i_type == type_poi_forbidden_area) |
|
|
874 | { |
|
|
875 | return 1; |
|
|
876 | } |
|
|
877 | else if (i_type == type_poi_shop_gps) |
|
|
878 | { |
|
|
879 | return 1; |
|
|
880 | } |
|
|
881 | else if (i_type == type_poi_golf) |
|
|
882 | { |
|
|
883 | return 1; |
|
|
884 | } |
|
|
885 | else if (i_type == type_poi_government_building) |
|
|
886 | { |
|
|
887 | return 1; |
|
|
888 | } |
|
|
889 | else if (i_type == type_poi_height) |
|
|
890 | { |
|
|
891 | return 1; |
|
|
892 | } |
|
|
893 | else if (i_type == type_poi_heliport) |
|
|
894 | { |
|
|
895 | return 1; |
|
|
896 | } |
|
|
897 | else if (i_type == type_poi_hotspring) |
|
|
898 | { |
|
|
899 | return 1; |
|
|
900 | } |
|
|
901 | else if (i_type == type_poi_icesport) |
|
|
902 | { |
|
|
903 | return 1; |
|
|
904 | } |
|
|
905 | else if (i_type == type_poi_information) |
|
|
906 | { |
|
|
907 | return 1; |
|
|
908 | } |
|
|
909 | else if (i_type == type_poi_justice) |
|
|
910 | { |
|
|
911 | return 1; |
|
|
912 | } |
|
|
913 | else if (i_type == type_poi_landmark) |
|
|
914 | { |
|
|
915 | return 1; |
|
|
916 | } |
|
|
917 | else if (i_type == type_poi_levee) |
|
|
918 | { |
|
|
919 | return 1; |
|
|
920 | } |
|
|
921 | else if (i_type == type_poi_library) |
|
|
922 | { |
|
|
923 | return 1; |
|
|
924 | } |
|
|
925 | else if (i_type == type_poi_locale) |
|
|
926 | { |
|
|
927 | return 1; |
|
|
928 | } |
|
|
929 | else if (i_type == type_poi_loudspeaker) |
|
|
930 | { |
|
|
931 | return 1; |
|
|
932 | } |
|
|
933 | else if (i_type == type_poi_mall) |
|
|
934 | { |
|
|
935 | return 1; |
|
|
936 | } |
|
|
937 | else if (i_type == type_poi_manmade_feature) |
|
|
938 | { |
|
|
939 | return 1; |
|
|
940 | } |
|
|
941 | else if (i_type == type_poi_marine) |
|
|
942 | { |
|
|
943 | return 1; |
|
|
944 | } |
|
|
945 | else if (i_type == type_poi_marine_type) |
|
|
946 | { |
|
|
947 | return 1; |
|
|
948 | } |
|
|
949 | else if (i_type == type_poi_mark) |
|
|
950 | { |
|
|
951 | return 1; |
|
|
952 | } |
|
|
953 | else if (i_type == type_poi_military) |
|
|
954 | { |
|
|
955 | return 1; |
|
|
956 | } |
|
|
957 | else if (i_type == type_poi_mine) |
|
|
958 | { |
|
|
959 | return 1; |
|
|
960 | } |
|
|
961 | else if (i_type == type_poi_nondangerous) |
|
|
962 | { |
|
|
963 | return 1; |
|
|
964 | } |
|
|
965 | else if (i_type == type_poi_oil_field) |
|
|
966 | { |
|
|
967 | return 1; |
|
|
968 | } |
|
|
969 | else if (i_type == type_poi_personal_service) |
|
|
970 | { |
|
|
971 | return 1; |
|
|
972 | } |
|
|
973 | else if (i_type == type_poi_pharmacy) |
|
|
974 | { |
|
|
975 | return 1; |
|
|
976 | } |
|
|
977 | else if (i_type == type_poi_post_removeme) |
|
|
978 | { |
|
|
979 | return 1; |
|
|
980 | } |
|
|
981 | else if (i_type == type_poi_public_office) |
|
|
982 | { |
|
|
983 | return 1; |
|
|
984 | } |
|
|
985 | else if (i_type == type_poi_repair_service) |
|
|
986 | { |
|
|
987 | return 1; |
|
|
988 | } |
|
|
989 | else if (i_type == type_poi_resort) |
|
|
990 | { |
|
|
991 | return 1; |
|
|
992 | } |
|
|
993 | else if (i_type == type_poi_rest_room_removeme) |
|
|
994 | { |
|
|
995 | return 1; |
|
|
996 | } |
|
|
997 | else if (i_type == type_poi_restaurant) |
|
|
998 | { |
|
|
999 | return 1; |
|
|
1000 | } |
|
|
1001 | else if (i_type == type_poi_restricted_area) |
|
|
1002 | { |
|
|
1003 | return 1; |
|
|
1004 | } |
|
|
1005 | else if (i_type == type_poi_restroom) |
|
|
1006 | { |
|
|
1007 | return 1; |
|
|
1008 | } |
|
|
1009 | else if (i_type == type_poi_sailing) |
|
|
1010 | { |
|
|
1011 | return 1; |
|
|
1012 | } |
|
|
1013 | else if (i_type == type_poi_scenic_area) |
|
|
1014 | { |
|
|
1015 | return 1; |
|
|
1016 | } |
|
|
1017 | else if (i_type == type_poi_school) |
|
|
1018 | { |
|
|
1019 | return 1; |
|
|
1020 | } |
|
|
1021 | else if (i_type == type_poi_service) |
|
|
1022 | { |
|
|
1023 | return 1; |
|
|
1024 | } |
|
|
1025 | else if (i_type == type_poi_shop_apparel) |
|
|
1026 | { |
|
|
1027 | return 1; |
|
|
1028 | } |
|
|
1029 | else if (i_type == type_poi_shop_computer) |
|
|
1030 | { |
|
|
1031 | return 1; |
|
|
1032 | } |
|
|
1033 | else if (i_type == type_poi_shop_department) |
|
|
1034 | { |
|
|
1035 | return 1; |
|
|
1036 | } |
|
|
1037 | else if (i_type == type_poi_shop_furnish_removeme) |
|
|
1038 | { |
|
|
1039 | return 1; |
|
|
1040 | } |
|
|
1041 | else if (i_type == type_poi_shop_grocery) |
|
|
1042 | { |
|
|
1043 | return 1; |
|
|
1044 | } |
|
|
1045 | else if (i_type == type_poi_shop_handg) |
|
|
1046 | { |
|
|
1047 | return 1; |
|
|
1048 | } |
|
|
1049 | else if (i_type == type_poi_shop_merchandise) |
|
|
1050 | { |
|
|
1051 | return 1; |
|
|
1052 | } |
|
|
1053 | else if (i_type == type_poi_shop_retail) |
|
|
1054 | { |
|
|
1055 | return 1; |
|
|
1056 | } |
|
|
1057 | else if (i_type == type_poi_shower) |
|
|
1058 | { |
|
|
1059 | return 1; |
|
|
1060 | } |
|
|
1061 | else if (i_type == type_poi_skiing) |
|
|
1062 | { |
|
|
1063 | return 1; |
|
|
1064 | } |
|
|
1065 | else if (i_type == type_poi_social_service) |
|
|
1066 | { |
|
|
1067 | return 1; |
|
|
1068 | } |
|
|
1069 | else if (i_type == type_poi_sounding) |
|
|
1070 | { |
|
|
1071 | return 1; |
|
|
1072 | } |
|
|
1073 | else if (i_type == type_poi_sport) |
|
|
1074 | { |
|
|
1075 | return 1; |
|
|
1076 | } |
|
|
1077 | else if (i_type == type_poi_stadium) |
|
|
1078 | { |
|
|
1079 | return 1; |
|
|
1080 | } |
|
|
1081 | else if (i_type == type_poi_subdivision_removeme) |
|
|
1082 | { |
|
|
1083 | return 1; |
|
|
1084 | } |
|
|
1085 | else if (i_type == type_poi_swimming) |
|
|
1086 | { |
|
|
1087 | return 1; |
|
|
1088 | } |
|
|
1089 | else if (i_type == type_poi_telephone) |
|
|
1090 | { |
|
|
1091 | return 1; |
|
|
1092 | } |
|
|
1093 | else if (i_type == type_poi_theater) |
|
|
1094 | { |
|
|
1095 | return 1; |
|
|
1096 | } |
|
|
1097 | else if (i_type == type_poi_tide) |
|
|
1098 | { |
|
|
1099 | return 1; |
|
|
1100 | } |
|
|
1101 | else if (i_type == type_poi_tower) |
|
|
1102 | { |
|
|
1103 | return 1; |
|
|
1104 | } |
|
|
1105 | else if (i_type == type_poi_trail) |
|
|
1106 | { |
|
|
1107 | return 1; |
|
|
1108 | } |
|
|
1109 | else if (i_type == type_poi_truck_stop) |
|
|
1110 | { |
|
|
1111 | return 1; |
|
|
1112 | } |
|
|
1113 | else if (i_type == type_poi_tunnel) |
|
|
1114 | { |
|
|
1115 | return 1; |
|
|
1116 | } |
|
|
1117 | else if (i_type == type_poi_wine) |
|
|
1118 | { |
|
|
1119 | return 1; |
|
|
1120 | } |
|
|
1121 | else if (i_type == type_poi_worship) |
|
|
1122 | { |
|
|
1123 | return 1; |
|
|
1124 | } |
|
|
1125 | else if (i_type == type_poi_wrecker) |
|
|
1126 | { |
|
|
1127 | return 1; |
|
|
1128 | } |
|
|
1129 | else if (i_type == type_poi_zoo) |
|
|
1130 | { |
|
|
1131 | return 1; |
|
|
1132 | } |
|
|
1133 | else if (i_type == type_poi_gc_multi) |
|
|
1134 | { |
|
|
1135 | return 1; |
|
|
1136 | } |
|
|
1137 | else if (i_type == type_poi_gc_tradi) |
|
|
1138 | { |
|
|
1139 | return 1; |
|
|
1140 | } |
|
|
1141 | else if (i_type == type_poi_gc_event) |
|
|
1142 | { |
|
|
1143 | return 1; |
|
|
1144 | } |
|
|
1145 | else if (i_type == type_poi_gc_mystery) |
|
|
1146 | { |
|
|
1147 | return 1; |
|
|
1148 | } |
|
|
1149 | else if (i_type == type_poi_gc_question) |
|
|
1150 | { |
|
|
1151 | return 1; |
|
|
1152 | } |
|
|
1153 | else if (i_type == type_poi_gc_stages) |
|
|
1154 | { |
|
|
1155 | return 1; |
|
|
1156 | } |
|
|
1157 | else if (i_type == type_poi_gc_reference) |
|
|
1158 | { |
|
|
1159 | return 1; |
|
|
1160 | } |
|
|
1161 | else if (i_type == type_poi_gc_webcam) |
|
|
1162 | { |
|
|
1163 | return 1; |
|
|
1164 | } |
|
|
1165 | else if (i_type == type_poi_cafe) |
|
|
1166 | { |
|
|
1167 | return 1; |
|
|
1168 | } |
|
|
1169 | else if (i_type == type_poi_peak) |
|
|
1170 | { |
|
|
1171 | return 1; |
|
|
1172 | } |
|
|
1173 | else if (i_type == type_poi_rail_station) |
|
|
1174 | { |
|
|
1175 | return 1; |
|
|
1176 | } |
|
|
1177 | else if (i_type == type_poi_image) |
|
|
1178 | { |
|
|
1179 | return 1; |
|
|
1180 | } |
|
|
1181 | else if (i_type == type_poi_townhall) |
|
|
1182 | { |
|
|
1183 | return 1; |
|
|
1184 | } |
|
|
1185 | else if (i_type == type_poi_level_crossing) |
|
|
1186 | { |
|
|
1187 | return 1; |
|
|
1188 | } |
|
|
1189 | else if (i_type == type_poi_rail_halt) |
|
|
1190 | { |
|
|
1191 | return 1; |
|
|
1192 | } |
|
|
1193 | else if (i_type == type_poi_rail_tram_stop) |
|
|
1194 | { |
|
|
1195 | return 1; |
|
|
1196 | } |
|
|
1197 | else if (i_type == type_poi_wifi) |
|
|
1198 | { |
|
|
1199 | return 1; |
|
|
1200 | } |
|
|
1201 | else if (i_type == type_poi_bench) |
|
|
1202 | { |
|
|
1203 | return 1; |
|
|
1204 | } |
|
|
1205 | else if (i_type == type_poi_biergarten) |
|
|
1206 | { |
|
|
1207 | return 1; |
|
|
1208 | } |
|
|
1209 | else if (i_type == type_poi_boundary_stone) |
|
|
1210 | { |
|
|
1211 | return 1; |
|
|
1212 | } |
|
|
1213 | else if (i_type == type_poi_castle) |
|
|
1214 | { |
|
|
1215 | return 1; |
|
|
1216 | } |
|
|
1217 | else if (i_type == type_poi_hunting_stand) |
|
|
1218 | { |
|
|
1219 | return 1; |
|
|
1220 | } |
|
|
1221 | else if (i_type == type_poi_memorial) |
|
|
1222 | { |
|
|
1223 | return 1; |
|
|
1224 | } |
|
|
1225 | else if (i_type == type_poi_monument) |
|
|
1226 | { |
|
|
1227 | return 1; |
|
|
1228 | } |
|
|
1229 | else if (i_type == type_poi_shelter) |
|
|
1230 | { |
|
|
1231 | return 1; |
|
|
1232 | } |
|
|
1233 | else if (i_type == type_poi_fountain) |
|
|
1234 | { |
|
|
1235 | return 1; |
|
|
1236 | } |
|
|
1237 | else if (i_type == type_poi_potable_water) |
|
|
1238 | { |
|
|
1239 | return 1; |
|
|
1240 | } |
|
|
1241 | else if (i_type == type_poi_toilets) |
|
|
1242 | { |
|
|
1243 | return 1; |
|
|
1244 | } |
|
|
1245 | else if (i_type == type_poi_viewpoint) |
|
|
1246 | { |
|
|
1247 | return 1; |
|
|
1248 | } |
|
|
1249 | else if (i_type == type_poi_ruins) |
|
|
1250 | { |
|
|
1251 | return 1; |
|
|
1252 | } |
|
|
1253 | else if (i_type == type_poi_post_box) |
|
|
1254 | { |
|
|
1255 | return 1; |
|
|
1256 | } |
|
|
1257 | else if (i_type == type_poi_post_office) |
|
|
1258 | { |
|
|
1259 | return 1; |
|
|
1260 | } |
|
|
1261 | else if (i_type == type_poi_school_university) |
|
|
1262 | { |
|
|
1263 | return 1; |
|
|
1264 | } |
|
|
1265 | else if (i_type == type_poi_school_college) |
|
|
1266 | { |
|
|
1267 | return 1; |
|
|
1268 | } |
|
|
1269 | else if (i_type == type_poi_motel) |
|
|
1270 | { |
|
|
1271 | return 1; |
|
|
1272 | } |
|
|
1273 | else if (i_type == type_poi_guesthouse) |
|
|
1274 | { |
|
|
1275 | return 1; |
|
|
1276 | } |
|
|
1277 | else if (i_type == type_poi_hostel) |
|
|
1278 | { |
|
|
1279 | return 1; |
|
|
1280 | } |
|
|
1281 | else if (i_type == type_poi_taxi) |
|
|
1282 | { |
|
|
1283 | return 1; |
|
|
1284 | } |
|
|
1285 | else if (i_type == type_poi_prison) |
|
|
1286 | { |
|
|
1287 | return 1; |
|
|
1288 | } |
|
|
1289 | else if (i_type == type_poi_kindergarten) |
|
|
1290 | { |
|
|
1291 | return 1; |
|
|
1292 | } |
|
|
1293 | else if (i_type == type_poi_shop_butcher) |
|
|
1294 | { |
|
|
1295 | return 1; |
|
|
1296 | } |
|
|
1297 | else if (i_type == type_poi_shop_baker) |
|
|
1298 | { |
|
|
1299 | return 1; |
|
|
1300 | } |
|
|
1301 | else if (i_type == type_poi_shop_kiosk) |
|
|
1302 | { |
|
|
1303 | return 1; |
|
|
1304 | } |
|
|
1305 | else if (i_type == type_poi_soccer) |
|
|
1306 | { |
|
|
1307 | return 1; |
|
|
1308 | } |
|
|
1309 | else if (i_type == type_poi_basketball) |
|
|
1310 | { |
|
|
1311 | return 1; |
|
|
1312 | } |
|
|
1313 | else if (i_type == type_poi_baseball) |
|
|
1314 | { |
|
|
1315 | return 1; |
|
|
1316 | } |
|
|
1317 | else if (i_type == type_poi_climbing) |
|
|
1318 | { |
|
|
1319 | return 1; |
|
|
1320 | } |
|
|
1321 | else if (i_type == type_poi_motor_sport) |
|
|
1322 | { |
|
|
1323 | return 1; |
|
|
1324 | } |
|
|
1325 | else if (i_type == type_poi_tennis) |
|
|
1326 | { |
|
|
1327 | return 1; |
|
|
1328 | } |
|
|
1329 | else if (i_type == type_poi_playground) |
|
|
1330 | { |
|
|
1331 | return 1; |
|
|
1332 | } |
|
|
1333 | else if (i_type == type_poi_vending_machine) |
|
|
1334 | { |
|
|
1335 | return 1; |
|
|
1336 | } |
|
|
1337 | else if (i_type == type_poi_recycling) |
|
|
1338 | { |
|
|
1339 | return 1; |
|
|
1340 | } |
|
|
1341 | else if (i_type == type_poi_hairdresser) |
|
|
1342 | { |
|
|
1343 | return 1; |
|
|
1344 | } |
|
|
1345 | else if (i_type == type_poi_shop_fruit) |
|
|
1346 | { |
|
|
1347 | return 1; |
|
|
1348 | } |
|
|
1349 | else if (i_type == type_poi_shop_bicycle) |
|
|
1350 | { |
|
|
1351 | return 1; |
|
|
1352 | } |
|
|
1353 | else if (i_type == type_poi_shop_florist) |
|
|
1354 | { |
|
|
1355 | return 1; |
|
|
1356 | } |
|
|
1357 | else if (i_type == type_poi_shop_optician) |
|
|
1358 | { |
|
|
1359 | return 1; |
|
|
1360 | } |
|
|
1361 | else if (i_type == type_poi_shop_beverages) |
|
|
1362 | { |
|
|
1363 | return 1; |
|
|
1364 | } |
|
|
1365 | else if (i_type == type_poi_nightclub) |
|
|
1366 | { |
|
|
1367 | return 1; |
|
|
1368 | } |
|
|
1369 | else if (i_type == type_poi_shop_shoes) |
|
|
1370 | { |
|
|
1371 | return 1; |
|
|
1372 | } |
|
|
1373 | else if (i_type == type_poi_tree) |
|
|
1374 | { |
|
|
1375 | return 1; |
|
|
1376 | } |
|
|
1377 | else if (i_type == type_poi_shop_furniture) |
|
|
1378 | { |
|
|
1379 | return 1; |
|
|
1380 | } |
|
|
1381 | else if (i_type == type_poi_shop_parfum) |
|
|
1382 | { |
|
|
1383 | return 1; |
|
|
1384 | } |
|
|
1385 | else if (i_type == type_poi_shop_drugstore) |
|
|
1386 | { |
|
|
1387 | return 1; |
|
|
1388 | } |
|
|
1389 | else if (i_type == type_poi_shop_photo) |
|
|
1390 | { |
|
|
1391 | return 1; |
|
|
1392 | } |
|
|
1393 | else if (i_type == type_poi_atm) |
|
|
1394 | { |
|
|
1395 | return 1; |
|
|
1396 | } |
|
|
1397 | else if (i_type == type_poi_custom1) |
|
|
1398 | { |
|
|
1399 | return 1; |
|
|
1400 | } |
|
|
1401 | else if (i_type == type_poi_custom2) |
|
|
1402 | { |
|
|
1403 | return 1; |
|
|
1404 | } |
|
|
1405 | else if (i_type == type_poi_custom3) |
|
|
1406 | { |
|
|
1407 | return 1; |
|
|
1408 | } |
|
|
1409 | else if (i_type == type_poi_custom4) |
|
|
1410 | { |
|
|
1411 | return 1; |
|
|
1412 | } |
|
|
1413 | else if (i_type == type_poi_custom5) |
|
|
1414 | { |
|
|
1415 | return 1; |
|
|
1416 | } |
|
|
1417 | else if (i_type == type_poi_custom6) |
|
|
1418 | { |
|
|
1419 | return 1; |
|
|
1420 | } |
|
|
1421 | else if (i_type == type_poi_custom7) |
|
|
1422 | { |
|
|
1423 | return 1; |
|
|
1424 | } |
|
|
1425 | else if (i_type == type_poi_custom8) |
|
|
1426 | { |
|
|
1427 | return 1; |
|
|
1428 | } |
|
|
1429 | else if (i_type == type_poi_custom9) |
|
|
1430 | { |
|
|
1431 | return 1; |
|
|
1432 | } |
|
|
1433 | else if (i_type == type_poi_customa) |
|
|
1434 | { |
|
|
1435 | return 1; |
|
|
1436 | } |
|
|
1437 | else if (i_type == type_poi_customb) |
|
|
1438 | { |
|
|
1439 | return 1; |
|
|
1440 | } |
|
|
1441 | else if (i_type == type_poi_customc) |
|
|
1442 | { |
|
|
1443 | return 1; |
|
|
1444 | } |
|
|
1445 | else if (i_type == type_poi_customd) |
|
|
1446 | { |
|
|
1447 | return 1; |
|
|
1448 | } |
|
|
1449 | else if (i_type == type_poi_custome) |
|
|
1450 | { |
|
|
1451 | return 1; |
|
|
1452 | } |
|
|
1453 | else if (i_type == type_poi_customf) |
|
|
1454 | { |
|
|
1455 | return 1; |
|
|
1456 | } |
|
|
1457 | else |
|
|
1458 | { |
|
|
1459 | return 0; |
|
|
1460 | } |
|
|
1461 | |
|
|
1462 | return 0; |
|
|
1463 | } |
|
|
1464 | |
219 | |
1465 | |
220 | enum item_type item_from_name(const char *name) |
1466 | enum item_type item_from_name(const char *name) |
221 | { |
1467 | { |
222 | int i; |
1468 | int i; |
223 | |
1469 | |