|
2 | 2 |
|
3 | 3 | import androidx.annotation.IntDef; |
4 | 4 | import androidx.annotation.StringDef; |
| 5 | +import com.mapbox.api.directions.v5.models.Amenity; |
5 | 6 |
|
6 | 7 | import java.lang.annotation.Retention; |
7 | 8 | import java.lang.annotation.RetentionPolicy; |
@@ -394,6 +395,79 @@ public final class DirectionsCriteria { |
394 | 395 | @SuppressWarnings("checkstyle:javadocvariable") |
395 | 396 | public static final String PAYMENT_METHOD_APP = "app"; |
396 | 397 |
|
| 398 | + /** |
| 399 | + * Gas station amenity type. |
| 400 | + */ |
| 401 | + public static final String AMENITY_TYPE_GAS_STATION = "gas_station"; |
| 402 | + /** |
| 403 | + * Electric charging station amenity type. |
| 404 | + */ |
| 405 | + public static final String AMENITY_TYPE_ELECTRIC_CHARGING_STATION = "electric_charging_station"; |
| 406 | + /** |
| 407 | + * Toilet amenity type. |
| 408 | + */ |
| 409 | + public static final String AMENITY_TYPE_TOILET = "toilet"; |
| 410 | + /** |
| 411 | + * Coffee amenity type. |
| 412 | + */ |
| 413 | + public static final String AMENITY_TYPE_COFFEE = "coffee"; |
| 414 | + /** |
| 415 | + * Restaurant amenity type. |
| 416 | + */ |
| 417 | + public static final String AMENITY_TYPE_RESTAURANT = "restaurant"; |
| 418 | + /** |
| 419 | + * Snack amenity type. |
| 420 | + */ |
| 421 | + public static final String AMENITY_TYPE_SNACK = "snack"; |
| 422 | + /** |
| 423 | + * ATM amenity type. |
| 424 | + */ |
| 425 | + public static final String AMENITY_TYPE_ATM = "ATM"; |
| 426 | + /** |
| 427 | + * Info amenity type. |
| 428 | + */ |
| 429 | + public static final String AMENITY_TYPE_INFO = "info"; |
| 430 | + /** |
| 431 | + * Baby care amenity type. |
| 432 | + */ |
| 433 | + public static final String AMENITY_TYPE_BABY_CARE = "baby_care"; |
| 434 | + /** |
| 435 | + * Facilities for disabled amenity type. |
| 436 | + */ |
| 437 | + public static final String AMENITY_TYPE_FACILITIES_FOR_DISABLED = "facilities_for_disabled"; |
| 438 | + /** |
| 439 | + * Shop amenity type. |
| 440 | + */ |
| 441 | + public static final String AMENITY_TYPE_SHOP = "shop"; |
| 442 | + /** |
| 443 | + * Telephone amenity type. |
| 444 | + */ |
| 445 | + public static final String AMENITY_TYPE_TELEPHONE = "telephone"; |
| 446 | + /** |
| 447 | + * Hotel amenity type. |
| 448 | + */ |
| 449 | + public static final String AMENITY_TYPE_HOTEL = "hotel"; |
| 450 | + /** |
| 451 | + * Hotspring amenity type. |
| 452 | + */ |
| 453 | + public static final String AMENITY_TYPE_HOTSPRING = "hotspring"; |
| 454 | + /** |
| 455 | + * Shower amenity type. |
| 456 | + */ |
| 457 | + public static final String AMENITY_TYPE_SHOWER = "shower"; |
| 458 | + /** |
| 459 | + * Picnic shelter amenity type. |
| 460 | + */ |
| 461 | + public static final String AMENITY_TYPE_PICNIC_SHELTER = "picnic_shelter"; |
| 462 | + /** |
| 463 | + * Post amenity type. |
| 464 | + */ |
| 465 | + public static final String AMENITY_TYPE_POST = "post"; |
| 466 | + /** |
| 467 | + * FAX amenity type. |
| 468 | + */ |
| 469 | + public static final String AMENITY_TYPE_FAX = "FAX"; |
| 470 | + |
397 | 471 | private DirectionsCriteria() { |
398 | 472 | //not called |
399 | 473 | } |
@@ -584,4 +658,31 @@ private DirectionsCriteria() { |
584 | 658 | }) |
585 | 659 | public @interface PaymentMethodsCriteria { |
586 | 660 | } |
| 661 | + |
| 662 | + /** |
| 663 | + * Supported amenity types. See {@link Amenity#type()}. |
| 664 | + */ |
| 665 | + @Retention(RetentionPolicy.CLASS) |
| 666 | + @StringDef({ |
| 667 | + AMENITY_TYPE_GAS_STATION, |
| 668 | + AMENITY_TYPE_ELECTRIC_CHARGING_STATION, |
| 669 | + AMENITY_TYPE_TOILET, |
| 670 | + AMENITY_TYPE_COFFEE, |
| 671 | + AMENITY_TYPE_RESTAURANT, |
| 672 | + AMENITY_TYPE_SNACK, |
| 673 | + AMENITY_TYPE_ATM, |
| 674 | + AMENITY_TYPE_INFO, |
| 675 | + AMENITY_TYPE_BABY_CARE, |
| 676 | + AMENITY_TYPE_FACILITIES_FOR_DISABLED, |
| 677 | + AMENITY_TYPE_SHOP, |
| 678 | + AMENITY_TYPE_TELEPHONE, |
| 679 | + AMENITY_TYPE_HOTEL, |
| 680 | + AMENITY_TYPE_HOTSPRING, |
| 681 | + AMENITY_TYPE_SHOWER, |
| 682 | + AMENITY_TYPE_PICNIC_SHELTER, |
| 683 | + AMENITY_TYPE_POST, |
| 684 | + AMENITY_TYPE_FAX, |
| 685 | + }) |
| 686 | + public @interface AmenityTypeCriteria { |
| 687 | + } |
587 | 688 | } |
0 commit comments