From f5a4a3e37c89838179290bb72fe5a0afe49c06c8 Mon Sep 17 00:00:00 2001 From: minchao Date: Sat, 24 Apr 2021 10:19:03 +0800 Subject: [PATCH] chore: openapi specifications update and workarounds --- CHANGELOG.md | 16 +- ...d_t_o_shared_specification_v2_base_news.go | 2 +- .../city_bus_api_route_network1_parameters.go | 416 + .../city_bus_api_route_network1_responses.go | 130 + .../city_bus_api_route_network_parameters.go | 36 +- .../city_bus_api_route_network_responses.go | 16 +- bus/v2/client/city_bus/city_bus_client.go | 90 +- .../inter_city_bus/inter_city_bus_client.go | 2 +- ..._d_t_o_bus_specification_v2_bus_a1_data.go | 26 +- ..._d_t_o_bus_specification_v2_bus_a2_data.go | 32 +- ...ce_d_t_o_bus_specification_v2_bus_alert.go | 18 +- ...s_specification_v2_bus_discount_periods.go | 6 +- ...cification_v2_bus_display_stop_of_route.go | 10 +- ...ice_d_t_o_bus_specification_v2_bus_fare.go | 8 +- ...ecification_v2_bus_first_last_trip_info.go | 18 +- ...v2_bus_first_last_trip_info_service_day.go | 22 +- ..._t_o_bus_specification_v2_bus_frequency.go | 8 +- ...s_specification_v2_bus_n1_estimate_time.go | 32 +- ...ice_d_t_o_bus_specification_v2_bus_news.go | 20 +- ...d_t_o_bus_specification_v2_bus_o_d_fare.go | 190 + ...ce_d_t_o_bus_specification_v2_bus_route.go | 38 +- ...t_o_bus_specification_v2_bus_route_fare.go | 75 +- ...s_specification_v2_bus_route_fare_fare.go} | 30 +- ...s_specification_v2_bus_route_fare_stop.go} | 30 +- ..._bus_specification_v2_bus_route_network.go | 219 + ...cification_v2_bus_route_network_segment.go | 130 + ...s_specification_v2_bus_s2_s_travel_time.go | 12 +- ...d_t_o_bus_specification_v2_bus_schedule.go | 22 +- ...ce_d_t_o_bus_specification_v2_bus_shape.go | 20 +- ...ce_d_t_o_bus_specification_v2_bus_stage.go | 4 +- ...t_o_bus_specification_v2_bus_stage_fare.go | 8 +- ..._d_t_o_bus_specification_v2_bus_station.go | 21 +- ..._bus_specification_v2_bus_station_group.go | 8 +- ...ice_d_t_o_bus_specification_v2_bus_stop.go | 26 +- ..._bus_specification_v2_bus_stop_of_route.go | 22 +- ..._t_o_bus_specification_v2_bus_stop_time.go | 10 +- ..._t_o_bus_specification_v2_bus_sub_route.go | 22 +- ..._t_o_bus_specification_v2_bus_timetable.go | 8 +- ...o_bus_specification_v2_bus_vehicle_info.go | 4 +- ..._d_t_o_bus_specification_v2_date_period.go | 4 +- ...pecification_v2_embedded_route_operator.go | 8 +- ...s_specification_v2_embedded_service_day.go | 16 +- ..._t_o_bus_specification_v2_embedded_stop.go | 16 +- ..._o_bus_specification_v2_first_last_trip.go | 6 +- ..._d_t_o_bus_specification_v2_n1_estimate.go | 4 +- ...ervice_d_t_o_bus_specification_v2_scope.go | 12 +- ...t_o_bus_specification_v2_scope_operator.go | 4 +- ..._d_t_o_bus_specification_v2_scope_route.go | 6 +- ..._t_o_bus_specification_v2_scope_station.go | 4 +- ...e_d_t_o_bus_specification_v2_scope_stop.go | 6 +- ..._o_bus_specification_v2_scope_sub_route.go | 6 +- ...e_d_t_o_bus_specification_v2_scope_trip.go | 10 +- ...d_t_o_bus_specification_v2_section_fare.go | 4 +- ...ecification_v2_section_fare_buffer_zone.go | 14 +- ...d_t_o_bus_specification_v2_service_time.go | 2 +- ..._d_t_o_bus_specification_v2_special_day.go | 8 +- ...d_t_o_bus_specification_v2_station_stop.go | 12 +- ..._d_t_o_bus_specification_v2_travel_time.go | 8 +- ..._shared_specification_v2_base_name_type.go | 4 +- ...o_shared_specification_v2_base_operator.go | 24 +- ...shared_specification_v2_base_point_type.go | 2 +- ...ed_specification_v3_base_display_health.go | 8 +- ..._o_shared_specification_v3_base_inbound.go | 4 +- ...o_shared_specification_v3_base_outbound.go | 4 +- .../city_bus_api_route_network2_parameters.go | 428 + .../city_bus_api_route_network2_responses.go | 132 + bus/v3/client/city_bus/city_bus_client.go | 16 +- ...vice_d_t_o_bus_specification_v3_a1_data.go | 34 +- ...vice_d_t_o_bus_specification_v3_a2_data.go | 40 +- ...ervice_d_t_o_bus_specification_v3_alert.go | 12 +- ...o_bus_specification_v3_daily_time_table.go | 20 +- ...ervice_d_t_o_bus_specification_v3_depot.go | 12 +- ..._specification_v3_display_stop_of_route.go | 10 +- ...ification_v3_display_stop_of_route_stop.go | 8 +- ...s_specification_v3_first_last_trip_info.go | 18 +- ...v3_first_last_trip_info_first_last_trip.go | 6 +- ...ion_v3_first_last_trip_info_service_day.go | 2 +- ...vice_d_t_o_bus_specification_v3_n1_data.go | 32 +- ...vice_d_t_o_bus_specification_v3_network.go | 8 +- ..._specification_v3_network_l_b_s_map_url.go | 8 +- ..._o_bus_specification_v3_network_map_url.go | 4 +- ...service_d_t_o_bus_specification_v3_news.go | 16 +- ...ice_d_t_o_bus_specification_v3_operator.go | 24 +- ...ervice_d_t_o_bus_specification_v3_route.go | 36 +- ...e_d_t_o_bus_specification_v3_route_fare.go | 26 +- ...us_specification_v3_route_fare_o_d_fare.go | 8 +- ...ication_v3_route_fare_o_d_fare_fare_o_d.go | 8 +- ...pecification_v3_route_fare_o_d_fare_o_d.go | 12 +- ...pecification_v3_route_fare_section_fare.go | 4 +- ..._v3_route_fare_section_fare_buffer_zone.go | 24 +- ...oute_fare_section_fare_fare_buffer_zone.go | 12 +- ...v3_route_fare_section_fare_fare_section.go | 8 +- ..._specification_v3_route_fare_stage_fare.go | 8 +- ...3_route_fare_stage_fare_discount_period.go | 14 +- ...ion_v3_route_fare_stage_fare_fare_stage.go | 18 +- ...on_v3_route_fare_stage_fare_service_day.go | 50 +- ...fication_v3_route_fare_stage_fare_stage.go | 14 +- ..._t_o_bus_specification_v3_route_network.go | 8 +- ..._specification_v3_route_network_segment.go | 4 +- ...t_o_bus_specification_v3_route_operator.go | 8 +- ...e_d_t_o_bus_specification_v3_route_stop.go | 4 +- ...o_bus_specification_v3_s2_s_travel_time.go | 10 +- ...ication_v3_s2_s_travel_time_travel_time.go | 4 +- ...ice_d_t_o_bus_specification_v3_schedule.go | 22 +- ...s_specification_v3_schedule_date_period.go | 4 +- ...s_specification_v3_schedule_service_day.go | 24 +- ...s_specification_v3_schedule_special_day.go | 8 +- ...bus_specification_v3_schedule_stop_time.go | 10 +- ...us_specification_v3_schedule_time_table.go | 10 +- ...ervice_d_t_o_bus_specification_v3_scope.go | 8 +- ..._d_t_o_bus_specification_v3_scope_route.go | 4 +- ...e_d_t_o_bus_specification_v3_scope_stop.go | 4 +- ..._o_bus_specification_v3_scope_sub_route.go | 4 +- ...e_d_t_o_bus_specification_v3_scope_trip.go | 2 +- ...ervice_d_t_o_bus_specification_v3_shape.go | 16 +- ...vice_d_t_o_bus_specification_v3_station.go | 16 +- ...service_d_t_o_bus_specification_v3_stop.go | 26 +- ..._t_o_bus_specification_v3_stop_of_route.go | 18 +- ...specification_v3_stop_of_route_operator.go | 8 +- ...bus_specification_v3_stop_of_route_stop.go | 12 +- ...ce_d_t_o_bus_specification_v3_stop_time.go | 10 +- ...ce_d_t_o_bus_specification_v3_sub_route.go | 28 +- ...bus_specification_v3_sub_route_operator.go | 8 +- ...t_o_bus_specification_v3_sub_route_stop.go | 4 +- ...e_d_t_o_bus_specification_v3_time_table.go | 4 +- ...vice_d_t_o_bus_specification_v3_vehicle.go | 12 +- ..._t_o_bus_specification_v3_vehicle_depot.go | 6 +- ..._specification_v3_vehicle_depot_vehicle.go | 2 +- ..._t_o_bus_specification_v3_vehicle_route.go | 14 +- ...ice_d_t_o_bus_specification_v3_schedule.go | 8 +- ...ervice_d_t_o_bus_specification_v3_depot.go | 4 +- ..._specification_v3_display_stop_of_route.go | 4 +- ...s_specification_v3_first_last_trip_info.go | 4 +- ...vice_d_t_o_bus_specification_v3_network.go | 4 +- ...ice_d_t_o_bus_specification_v3_operator.go | 4 +- ...ervice_d_t_o_bus_specification_v3_route.go | 4 +- ..._t_o_bus_specification_v3_route_network.go | 4 +- ...o_bus_specification_v3_s2_s_travel_time.go | 4 +- ...ervice_d_t_o_bus_specification_v3_shape.go | 4 +- ...vice_d_t_o_bus_specification_v3_station.go | 4 +- ...service_d_t_o_bus_specification_v3_stop.go | 4 +- ..._t_o_bus_specification_v3_stop_of_route.go | 4 +- ...ce_d_t_o_bus_specification_v3_sub_route.go | 4 +- ...vice_d_t_o_bus_specification_v3_vehicle.go | 4 +- ..._t_o_bus_specification_v3_vehicle_depot.go | 4 +- ..._t_o_bus_specification_v3_vehicle_route.go | 4 +- ...vice_d_t_o_bus_specification_v3_a1_data.go | 4 +- ...vice_d_t_o_bus_specification_v3_a2_data.go | 4 +- ...ervice_d_t_o_bus_specification_v3_alert.go | 4 +- ...o_bus_specification_v3_daily_time_table.go | 4 +- ...vice_d_t_o_bus_specification_v3_n1_data.go | 4 +- ...service_d_t_o_bus_specification_v3_news.go | 4 +- ...e_d_t_o_bus_specification_v3_route_fare.go | 4 +- ...ed_specification_v3_base_display_health.go | 8 +- ..._o_shared_specification_v3_base_inbound.go | 4 +- ..._shared_specification_v3_base_name_type.go | 4 +- ...o_shared_specification_v3_base_outbound.go | 4 +- oas.basic.v2.json | 91 +- oas.bus.v2.json | 5708 ++++++----- oas.bus.v3.json | 7602 +++++++++------ oas.rail.v2.json | 8495 ++++++++++------- oas.rail.v3.json | 6916 ++++++++------ .../metro/metro_api_station_parameters.go | 34 + .../t_h_s_r/t_h_s_r_api_station_parameters.go | 34 + .../t_r_a/t_r_a_api_station_parameters.go | 34 + ...d_t_o_rail_specification_v2_metro_alert.go | 4 +- ...ification_v2_metro_m_r_t_news_list_news.go | 4 +- ...ification_v2_t_h_s_r_old_available_seat.go | 2 +- ...specification_v2_t_h_s_r_available_seat.go | 4 +- ...ification_v2_t_h_s_r_o_d_available_seat.go | 4 +- ...d_t_o_rail_specification_v2_metro_alert.go | 20 +- ...pecification_v2_metro_drinking_fountain.go | 4 +- ..._o_rail_specification_v2_metro_elevator.go | 4 +- ...ification_v2_metro_first_last_timetable.go | 20 +- ...o_rail_specification_v2_metro_frequency.go | 12 +- ...specification_v2_metro_information_spot.go | 4 +- ..._d_t_o_rail_specification_v2_metro_line.go | 10 +- ...il_specification_v2_metro_line_transfer.go | 24 +- ..._rail_specification_v2_metro_live_board.go | 18 +- ...n_v2_metro_m_r_t_alert_list_alert_scope.go | 12 +- ...metro_m_r_t_alert_list_alert_scope_line.go | 4 +- ...r_t_alert_list_alert_scope_line_section.go | 12 +- ...ro_m_r_t_alert_list_alert_scope_network.go | 2 +- ...etro_m_r_t_alert_list_alert_scope_route.go | 4 +- ...ro_m_r_t_alert_list_alert_scope_station.go | 4 +- ...etro_m_r_t_alert_list_alert_scope_train.go | 2 +- ...ification_v2_metro_m_r_t_news_list_news.go | 16 +- ...rail_specification_v2_metro_metro_shape.go | 10 +- ...t_o_rail_specification_v2_metro_network.go | 12 +- ...ication_v2_metro_network_sub_class_line.go | 4 +- ..._o_rail_specification_v2_metro_o_d_fare.go | 10 +- ...d_t_o_rail_specification_v2_metro_route.go | 18 +- ...specification_v2_metro_s2_s_travel_time.go | 8 +- ...t_o_rail_specification_v2_metro_station.go | 18 +- ...ail_specification_v2_metro_station_exit.go | 12 +- ...specification_v2_metro_station_facility.go | 12 +- ..._specification_v2_metro_station_of_line.go | 6 +- ...specification_v2_metro_station_of_route.go | 10 +- ...ecification_v2_metro_station_time_table.go | 20 +- ...l_specification_v2_metro_sub_class_fare.go | 4 +- ...pecification_v2_metro_sub_class_headway.go | 6 +- ...ation_v2_metro_sub_class_operation_time.go | 4 +- ...fication_v2_metro_sub_class_service_day.go | 2 +- ...fication_v2_metro_sub_class_special_day.go | 2 +- ...pecification_v2_metro_sub_class_station.go | 4 +- ...cification_v2_metro_sub_class_timetable.go | 6 +- ...fication_v2_metro_sub_class_travel_time.go | 8 +- ..._t_o_rail_specification_v2_metro_toilet.go | 4 +- ..._d_t_o_rail_specification_v2_point_type.go | 2 +- ...ail_specification_v2_t_h_s_r_alert_info.go | 14 +- ...specification_v2_t_h_s_r_available_seat.go | 18 +- ...cification_v2_t_h_s_r_general_timetable.go | 6 +- ..._t_o_rail_specification_v2_t_h_s_r_news.go | 12 +- ...ification_v2_t_h_s_r_o_d_available_seat.go | 18 +- ...ification_v2_t_h_s_r_old_available_seat.go | 16 +- ...ication_v2_t_h_s_r_rail_daily_timetable.go | 6 +- ...cation_v2_t_h_s_r_rail_daily_train_info.go | 14 +- ...ation_v2_t_h_s_r_rail_general_timetable.go | 6 +- ...tion_v2_t_h_s_r_rail_general_train_info.go | 14 +- ...ion_v2_t_h_s_r_rail_o_d_daily_timetable.go | 8 +- ..._specification_v2_t_h_s_r_rail_o_d_fare.go | 12 +- ...l_specification_v2_t_h_s_r_rail_station.go | 24 +- ...ation_v2_t_h_s_r_rail_station_timetable.go | 22 +- ...specification_v2_t_h_s_r_rail_stop_time.go | 8 +- ...il_specification_v2_t_h_s_r_service_day.go | 14 +- ...l_specification_v2_t_h_s_r_station_exit.go | 12 +- ...l_specification_v2_t_h_s_r_stop_station.go | 16 +- ..._specification_v2_t_h_s_r_t_h_s_r_shape.go | 8 +- ...t_h_s_r_time_info_rail_daily_train_info.go | 14 +- ...pecification_v2_t_r_a_general_timetable.go | 6 +- ..._d_t_o_rail_specification_v2_t_r_a_line.go | 14 +- ...rail_specification_v2_t_r_a_line_simple.go | 4 +- ...ail_specification_v2_t_r_a_line_station.go | 4 +- ...t_o_rail_specification_v2_t_r_a_network.go | 16 +- ...ification_v2_t_r_a_rail_daily_timetable.go | 6 +- ...fication_v2_t_r_a_rail_daily_train_info.go | 40 +- ...ication_v2_t_r_a_rail_general_timetable.go | 2 +- ...cation_v2_t_r_a_rail_general_train_info.go | 36 +- ..._specification_v2_t_r_a_rail_live_board.go | 24 +- ...fication_v2_t_r_a_rail_live_train_delay.go | 6 +- ...ation_v2_t_r_a_rail_o_d_daily_timetable.go | 8 +- ...il_specification_v2_t_r_a_rail_o_d_fare.go | 12 +- ...ail_specification_v2_t_r_a_rail_station.go | 26 +- ...ication_v2_t_r_a_rail_station_timetable.go | 30 +- ...l_specification_v2_t_r_a_rail_stop_time.go | 8 +- ...rail_specification_v2_t_r_a_service_day.go | 14 +- ..._specification_v2_t_r_a_station_of_line.go | 6 +- ...rail_specification_v2_t_r_a_t_r_a_shape.go | 10 +- ...2_t_r_a_time_info_rail_daily_train_info.go | 38 +- ...t_r_a_time_info_rail_general_train_info.go | 36 +- ..._rail_specification_v2_t_r_a_train_type.go | 6 +- ...d_t_o_shared_specification_v2_base_fare.go | 2 +- ..._shared_specification_v2_base_name_type.go | 4 +- ...o_shared_specification_v2_base_operator.go | 24 +- ...shared_specification_v2_base_point_type.go | 2 +- ...ontroller_api_controller_get_parameters.go | 28 + rail/v3/client/t_r_a/tra_client.go | 2 +- ..._d_t_o_rail_specification_v3_t_r_a_line.go | 4 +- ...tion_v3_t_r_a_line_network_line_network.go | 4 +- ...il_specification_v3_t_r_a_line_transfer.go | 4 +- ..._specification_v3_t_r_a_network_network.go | 4 +- ..._o_rail_specification_v3_t_r_a_operator.go | 4 +- ...d_t_o_rail_specification_v3_t_r_a_shape.go | 4 +- ...t_o_rail_specification_v3_t_r_a_station.go | 4 +- ...tion_v3_t_r_a_station_exit_station_exit.go | 4 +- ...t_r_a_station_facility_station_facility.go | 4 +- ...3_t_r_a_station_of_line_station_of_line.go | 4 +- ...t_r_a_station_transfer_station_transfer.go | 4 +- ..._rail_specification_v3_t_r_a_train_type.go | 4 +- ...ion_timetable_general_station_timetable.go | 10 +- ...cation_v3_t_r_a_general_train_timetable.go | 10 +- ...pecification_v3_t_r_a_o_d_fare_o_d_fare.go | 10 +- ...ication_v3_t_r_a_t_r_a_alert_list_alert.go | 4 +- ...ification_v3_t_r_a_t_r_a_news_list_news.go | 4 +- ...tion_live_board_list_station_live_board.go | 4 +- ..._train_live_board_list_train_live_board.go | 4 +- ...ation_v3_t_r_a_specific_train_timetable.go | 10 +- ...ly_station_time_table_station_timetable.go | 6 +- ..._daily_train_time_table_train_timetable.go | 6 +- ...ecification_v3_t_r_a_common_service_day.go | 24 +- ...ecification_v3_t_r_a_common_special_day.go | 6 +- ...specification_v3_t_r_a_common_stop_time.go | 8 +- ...pecification_v3_t_r_a_common_train_info.go | 44 +- ...ly_station_time_table_station_timetable.go | 10 +- ...r_a_daily_station_time_table_time_table.go | 16 +- ...ly_train_time_table_dining_flag_section.go | 4 +- ..._a_daily_train_time_table_section_among.go | 4 +- ..._t_r_a_daily_train_time_table_stop_time.go | 8 +- ...t_r_a_daily_train_time_table_train_info.go | 46 +- ..._daily_train_time_table_train_timetable.go | 4 +- ...ion_timetable_general_station_timetable.go | 12 +- ...a_general_station_timetable_service_day.go | 2 +- ...r_a_general_station_timetable_timetable.go | 16 +- ...cation_v3_t_r_a_general_train_timetable.go | 6 +- ..._d_t_o_rail_specification_v3_t_r_a_line.go | 14 +- ...tion_v3_t_r_a_line_network_line_network.go | 6 +- ...tion_v3_t_r_a_line_network_line_segment.go | 10 +- ...il_specification_v3_t_r_a_line_transfer.go | 18 +- ...ail_specification_v3_t_r_a_network_line.go | 4 +- ...fication_v3_t_r_a_network_map_name_type.go | 6 +- ..._specification_v3_t_r_a_network_network.go | 12 +- ...pecification_v3_t_r_a_o_d_fare_o_d_fare.go | 12 +- ..._o_rail_specification_v3_t_r_a_operator.go | 18 +- ...d_t_o_rail_specification_v3_t_r_a_shape.go | 8 +- ...ation_v3_t_r_a_specific_train_timetable.go | 6 +- ...t_o_rail_specification_v3_t_r_a_station.go | 18 +- ...pecification_v3_t_r_a_station_exit_exit.go | 12 +- ...tion_v3_t_r_a_station_exit_exit_map_url.go | 6 +- ...tion_v3_t_r_a_station_exit_station_exit.go | 8 +- ...v3_t_r_a_station_facility_facility_info.go | 4 +- ...t_r_a_station_facility_facility_map_url.go | 6 +- ...t_r_a_station_facility_station_facility.go | 14 +- ...n_v3_t_r_a_station_of_line_line_station.go | 4 +- ...3_t_r_a_station_of_line_station_of_line.go | 6 +- ...t_r_a_station_transfer_airport_transfer.go | 14 +- ...v3_t_r_a_station_transfer_bike_transfer.go | 14 +- ..._v3_t_r_a_station_transfer_bus_transfer.go | 22 +- ...3_t_r_a_station_transfer_ferry_transfer.go | 14 +- ...ation_v3_t_r_a_station_transfer_map_url.go | 6 +- ...t_r_a_station_transfer_parking_transfer.go | 10 +- ...v3_t_r_a_station_transfer_rail_transfer.go | 14 +- ...t_r_a_station_transfer_station_transfer.go | 12 +- ...v3_t_r_a_station_transfer_taxi_transfer.go | 10 +- ...tion_v3_t_r_a_station_transfer_transfer.go | 18 +- ...ication_v3_t_r_a_t_r_a_alert_list_alert.go | 20 +- ...n_v3_t_r_a_t_r_a_alert_list_alert_scope.go | 12 +- ...t_r_a_t_r_a_alert_list_alert_scope_line.go | 4 +- ...r_a_alert_list_alert_scope_line_section.go | 12 +- ..._a_t_r_a_alert_list_alert_scope_network.go | 4 +- ..._r_a_t_r_a_alert_list_alert_scope_route.go | 4 +- ..._a_t_r_a_alert_list_alert_scope_station.go | 4 +- ..._r_a_t_r_a_alert_list_alert_scope_train.go | 2 +- ...ification_v3_t_r_a_t_r_a_news_list_news.go | 16 +- ...tion_live_board_list_station_live_board.go | 28 +- ..._train_live_board_list_train_live_board.go | 14 +- ..._rail_specification_v3_t_r_a_train_type.go | 6 +- ..._shared_specification_v3_base_name_type.go | 4 +- spec/main.go | 86 + test/integration/bus_v3_test.go | 4 +- 339 files changed, 20951 insertions(+), 13400 deletions(-) create mode 100644 bus/v2/client/city_bus/city_bus_api_route_network1_parameters.go create mode 100644 bus/v2/client/city_bus/city_bus_api_route_network1_responses.go rename bus/{v3 => v2}/client/city_bus/city_bus_api_route_network_parameters.go (92%) rename bus/{v3 => v2}/client/city_bus/city_bus_api_route_network_responses.go (85%) create mode 100644 bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_o_d_fare.go rename bus/v2/models/{p_t_x_service_d_t_o_bus_specification_v2_section_fare_fare.go => p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare_fare.go} (63%) rename bus/v2/models/{p_t_x_service_d_t_o_bus_specification_v2_section_fare_stop.go => p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare_stop.go} (54%) create mode 100644 bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_network.go create mode 100644 bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_network_segment.go create mode 100644 bus/v3/client/city_bus/city_bus_api_route_network2_parameters.go create mode 100644 bus/v3/client/city_bus/city_bus_api_route_network2_responses.go diff --git a/CHANGELOG.md b/CHANGELOG.md index c7b31976..3e3fe0ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,19 @@ ## [Unreleased] +## [0.10.0] - 2021-04-24 + +### Added +- 臺中市公車新資料服務上架 +- 公車新資料服務上架 + +### Changed +- 公車站位資料服務內容更新 +- 公車 V2 API 函數名稱修改 + +### Workaround +- 修正公車 V2 多處 Direction 型別錯誤 + ## [0.9.0] - 2021-02-02 ### Added @@ -122,7 +135,8 @@ ### Added - 首次發行,提供基本、航空、公車、軌道、自行車與觀光等 PTX API 用戶端程式庫。 -[Unreleased]: https://github.com/minchao/go-ptx/compare/v0.9.0...HEAD +[Unreleased]: https://github.com/minchao/go-ptx/compare/v0.10.0...HEAD +[0.10.0]: https://github.com/minchao/go-ptx/compare/v0.9.0...v0.10.0 [0.9.0]: https://github.com/minchao/go-ptx/compare/v0.8.0...v0.9.0 [0.8.0]: https://github.com/minchao/go-ptx/compare/v0.7.0...v0.8.0 [0.7.0]: https://github.com/minchao/go-ptx/compare/v0.6.0...v0.7.0 diff --git a/basic/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_news.go b/basic/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_news.go index 2520e839..a762d30c 100644 --- a/basic/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_news.go +++ b/basic/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_news.go @@ -51,7 +51,7 @@ type PTXServiceDTOSharedSpecificationV2BaseNews struct { // integer // // 消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他'] - NewsCategory int32 `json:"NewsCategory,omitempty"` + NewsCategory string `json:"NewsCategory,omitempty"` // Guid // diff --git a/bus/v2/client/city_bus/city_bus_api_route_network1_parameters.go b/bus/v2/client/city_bus/city_bus_api_route_network1_parameters.go new file mode 100644 index 00000000..fd7286e9 --- /dev/null +++ b/bus/v2/client/city_bus/city_bus_api_route_network1_parameters.go @@ -0,0 +1,416 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package city_bus + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewCityBusAPIRouteNetwork1Params creates a new CityBusAPIRouteNetwork1Params object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCityBusAPIRouteNetwork1Params() *CityBusAPIRouteNetwork1Params { + return &CityBusAPIRouteNetwork1Params{ + timeout: cr.DefaultTimeout, + } +} + +// NewCityBusAPIRouteNetwork1ParamsWithTimeout creates a new CityBusAPIRouteNetwork1Params object +// with the ability to set a timeout on a request. +func NewCityBusAPIRouteNetwork1ParamsWithTimeout(timeout time.Duration) *CityBusAPIRouteNetwork1Params { + return &CityBusAPIRouteNetwork1Params{ + timeout: timeout, + } +} + +// NewCityBusAPIRouteNetwork1ParamsWithContext creates a new CityBusAPIRouteNetwork1Params object +// with the ability to set a context for a request. +func NewCityBusAPIRouteNetwork1ParamsWithContext(ctx context.Context) *CityBusAPIRouteNetwork1Params { + return &CityBusAPIRouteNetwork1Params{ + Context: ctx, + } +} + +// NewCityBusAPIRouteNetwork1ParamsWithHTTPClient creates a new CityBusAPIRouteNetwork1Params object +// with the ability to set a custom HTTPClient for a request. +func NewCityBusAPIRouteNetwork1ParamsWithHTTPClient(client *http.Client) *CityBusAPIRouteNetwork1Params { + return &CityBusAPIRouteNetwork1Params{ + HTTPClient: client, + } +} + +/* CityBusAPIRouteNetwork1Params contains all the parameters to send to the API endpoint + for the city bus Api route network 1 operation. + + Typically these are written to a http.Request. +*/ +type CityBusAPIRouteNetwork1Params struct { + + /* DollarFilter. + + 過濾 + */ + DollarFilter *string + + /* DollarFormat. + + 指定來源格式 + */ + DollarFormat string + + /* DollarOrderby. + + 排序 + */ + DollarOrderby *string + + /* DollarSelect. + + 挑選 + */ + DollarSelect *string + + /* DollarSkip. + + 跳過前幾筆 + */ + DollarSkip *string + + /* DollarTop. + + 取前幾筆 + + Default: 30 + */ + DollarTop *int64 + + /* City. + + 欲查詢縣市 + */ + City string + + /* RouteName. + + 繁體中文路線名稱,如'307' + */ + RouteName string + + /* Health. + + 加入參數'?health=true'即可查詢此API服務的健康狀態 + */ + Health *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the city bus Api route network 1 params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CityBusAPIRouteNetwork1Params) WithDefaults() *CityBusAPIRouteNetwork1Params { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the city bus Api route network 1 params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CityBusAPIRouteNetwork1Params) SetDefaults() { + var ( + dollarTopDefault = int64(30) + ) + + val := CityBusAPIRouteNetwork1Params{ + DollarTop: &dollarTopDefault, + } + + val.timeout = o.timeout + val.Context = o.Context + val.HTTPClient = o.HTTPClient + *o = val +} + +// WithTimeout adds the timeout to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithTimeout(timeout time.Duration) *CityBusAPIRouteNetwork1Params { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithContext(ctx context.Context) *CityBusAPIRouteNetwork1Params { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithHTTPClient(client *http.Client) *CityBusAPIRouteNetwork1Params { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithDollarFilter adds the dollarFilter to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRouteNetwork1Params { + o.SetDollarFilter(dollarFilter) + return o +} + +// SetDollarFilter adds the dollarFilter to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetDollarFilter(dollarFilter *string) { + o.DollarFilter = dollarFilter +} + +// WithDollarFormat adds the dollarFormat to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithDollarFormat(dollarFormat string) *CityBusAPIRouteNetwork1Params { + o.SetDollarFormat(dollarFormat) + return o +} + +// SetDollarFormat adds the dollarFormat to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetDollarFormat(dollarFormat string) { + o.DollarFormat = dollarFormat +} + +// WithDollarOrderby adds the dollarOrderby to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRouteNetwork1Params { + o.SetDollarOrderby(dollarOrderby) + return o +} + +// SetDollarOrderby adds the dollarOrderby to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetDollarOrderby(dollarOrderby *string) { + o.DollarOrderby = dollarOrderby +} + +// WithDollarSelect adds the dollarSelect to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRouteNetwork1Params { + o.SetDollarSelect(dollarSelect) + return o +} + +// SetDollarSelect adds the dollarSelect to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetDollarSelect(dollarSelect *string) { + o.DollarSelect = dollarSelect +} + +// WithDollarSkip adds the dollarSkip to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRouteNetwork1Params { + o.SetDollarSkip(dollarSkip) + return o +} + +// SetDollarSkip adds the dollarSkip to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetDollarSkip(dollarSkip *string) { + o.DollarSkip = dollarSkip +} + +// WithDollarTop adds the dollarTop to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithDollarTop(dollarTop *int64) *CityBusAPIRouteNetwork1Params { + o.SetDollarTop(dollarTop) + return o +} + +// SetDollarTop adds the dollarTop to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetDollarTop(dollarTop *int64) { + o.DollarTop = dollarTop +} + +// WithCity adds the city to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithCity(city string) *CityBusAPIRouteNetwork1Params { + o.SetCity(city) + return o +} + +// SetCity adds the city to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetCity(city string) { + o.City = city +} + +// WithRouteName adds the routeName to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithRouteName(routeName string) *CityBusAPIRouteNetwork1Params { + o.SetRouteName(routeName) + return o +} + +// SetRouteName adds the routeName to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetRouteName(routeName string) { + o.RouteName = routeName +} + +// WithHealth adds the health to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) WithHealth(health *string) *CityBusAPIRouteNetwork1Params { + o.SetHealth(health) + return o +} + +// SetHealth adds the health to the city bus Api route network 1 params +func (o *CityBusAPIRouteNetwork1Params) SetHealth(health *string) { + o.Health = health +} + +// WriteToRequest writes these params to a swagger request +func (o *CityBusAPIRouteNetwork1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.DollarFilter != nil { + + // query param $filter + var qrDollarFilter string + + if o.DollarFilter != nil { + qrDollarFilter = *o.DollarFilter + } + qDollarFilter := qrDollarFilter + if qDollarFilter != "" { + + if err := r.SetQueryParam("$filter", qDollarFilter); err != nil { + return err + } + } + } + + // query param $format + qrDollarFormat := o.DollarFormat + qDollarFormat := qrDollarFormat + if qDollarFormat != "" { + + if err := r.SetQueryParam("$format", qDollarFormat); err != nil { + return err + } + } + + if o.DollarOrderby != nil { + + // query param $orderby + var qrDollarOrderby string + + if o.DollarOrderby != nil { + qrDollarOrderby = *o.DollarOrderby + } + qDollarOrderby := qrDollarOrderby + if qDollarOrderby != "" { + + if err := r.SetQueryParam("$orderby", qDollarOrderby); err != nil { + return err + } + } + } + + if o.DollarSelect != nil { + + // query param $select + var qrDollarSelect string + + if o.DollarSelect != nil { + qrDollarSelect = *o.DollarSelect + } + qDollarSelect := qrDollarSelect + if qDollarSelect != "" { + + if err := r.SetQueryParam("$select", qDollarSelect); err != nil { + return err + } + } + } + + if o.DollarSkip != nil { + + // query param $skip + var qrDollarSkip string + + if o.DollarSkip != nil { + qrDollarSkip = *o.DollarSkip + } + qDollarSkip := qrDollarSkip + if qDollarSkip != "" { + + if err := r.SetQueryParam("$skip", qDollarSkip); err != nil { + return err + } + } + } + + if o.DollarTop != nil { + + // query param $top + var qrDollarTop int64 + + if o.DollarTop != nil { + qrDollarTop = *o.DollarTop + } + qDollarTop := swag.FormatInt64(qrDollarTop) + if qDollarTop != "" { + + if err := r.SetQueryParam("$top", qDollarTop); err != nil { + return err + } + } + } + + // path param City + if err := r.SetPathParam("City", o.City); err != nil { + return err + } + + // path param RouteName + if err := r.SetPathParam("RouteName", o.RouteName); err != nil { + return err + } + + if o.Health != nil { + + // query param health + var qrHealth string + + if o.Health != nil { + qrHealth = *o.Health + } + qHealth := qrHealth + if qHealth != "" { + + if err := r.SetQueryParam("health", qHealth); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/bus/v2/client/city_bus/city_bus_api_route_network1_responses.go b/bus/v2/client/city_bus/city_bus_api_route_network1_responses.go new file mode 100644 index 00000000..b4a9717d --- /dev/null +++ b/bus/v2/client/city_bus/city_bus_api_route_network1_responses.go @@ -0,0 +1,130 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package city_bus + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/minchao/go-ptx/bus/v2/models" +) + +// CityBusAPIRouteNetwork1Reader is a Reader for the CityBusAPIRouteNetwork1 structure. +type CityBusAPIRouteNetwork1Reader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CityBusAPIRouteNetwork1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCityBusAPIRouteNetwork1OK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 299: + result := NewCityBusAPIRouteNetwork1Status299() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 304: + result := NewCityBusAPIRouteNetwork1NotModified() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCityBusAPIRouteNetwork1OK creates a CityBusAPIRouteNetwork1OK with default headers values +func NewCityBusAPIRouteNetwork1OK() *CityBusAPIRouteNetwork1OK { + return &CityBusAPIRouteNetwork1OK{} +} + +/* CityBusAPIRouteNetwork1OK describes a response with status code 200, with default header values. + +Success +*/ +type CityBusAPIRouteNetwork1OK struct { + Payload []*models.PTXServiceDTOBusSpecificationV2BusRouteNetwork +} + +func (o *CityBusAPIRouteNetwork1OK) Error() string { + return fmt.Sprintf("[GET /v2/Bus/RouteNetwork/City/{City}/{RouteName}][%d] cityBusApiRouteNetwork1OK %+v", 200, o.Payload) +} +func (o *CityBusAPIRouteNetwork1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRouteNetwork { + return o.Payload +} + +func (o *CityBusAPIRouteNetwork1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response payload + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCityBusAPIRouteNetwork1Status299 creates a CityBusAPIRouteNetwork1Status299 with default headers values +func NewCityBusAPIRouteNetwork1Status299() *CityBusAPIRouteNetwork1Status299 { + return &CityBusAPIRouteNetwork1Status299{} +} + +/* CityBusAPIRouteNetwork1Status299 describes a response with status code 299, with default header values. + +加入參數'?health=true'即可查詢此API服務的健康狀態 +*/ +type CityBusAPIRouteNetwork1Status299 struct { + Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth +} + +func (o *CityBusAPIRouteNetwork1Status299) Error() string { + return fmt.Sprintf("[GET /v2/Bus/RouteNetwork/City/{City}/{RouteName}][%d] cityBusApiRouteNetwork1Status299 %+v", 299, o.Payload) +} +func (o *CityBusAPIRouteNetwork1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth { + return o.Payload +} + +func (o *CityBusAPIRouteNetwork1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCityBusAPIRouteNetwork1NotModified creates a CityBusAPIRouteNetwork1NotModified with default headers values +func NewCityBusAPIRouteNetwork1NotModified() *CityBusAPIRouteNetwork1NotModified { + return &CityBusAPIRouteNetwork1NotModified{} +} + +/* CityBusAPIRouteNetwork1NotModified describes a response with status code 304, with default header values. + +服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content +*/ +type CityBusAPIRouteNetwork1NotModified struct { +} + +func (o *CityBusAPIRouteNetwork1NotModified) Error() string { + return fmt.Sprintf("[GET /v2/Bus/RouteNetwork/City/{City}/{RouteName}][%d] cityBusApiRouteNetwork1NotModified ", 304) +} + +func (o *CityBusAPIRouteNetwork1NotModified) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/bus/v3/client/city_bus/city_bus_api_route_network_parameters.go b/bus/v2/client/city_bus/city_bus_api_route_network_parameters.go similarity index 92% rename from bus/v3/client/city_bus/city_bus_api_route_network_parameters.go rename to bus/v2/client/city_bus/city_bus_api_route_network_parameters.go index 66e0fac3..ec24be4c 100644 --- a/bus/v3/client/city_bus/city_bus_api_route_network_parameters.go +++ b/bus/v2/client/city_bus/city_bus_api_route_network_parameters.go @@ -60,12 +60,6 @@ func NewCityBusAPIRouteNetworkParamsWithHTTPClient(client *http.Client) *CityBus */ type CityBusAPIRouteNetworkParams struct { - /* DollarCount. - - 查詢數量 - */ - DollarCount *bool - /* DollarFilter. 過濾 @@ -106,7 +100,7 @@ type CityBusAPIRouteNetworkParams struct { /* City. - 縣市 + 欲查詢縣市 */ City string @@ -180,17 +174,6 @@ func (o *CityBusAPIRouteNetworkParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithDollarCount adds the dollarCount to the city bus Api route network params -func (o *CityBusAPIRouteNetworkParams) WithDollarCount(dollarCount *bool) *CityBusAPIRouteNetworkParams { - o.SetDollarCount(dollarCount) - return o -} - -// SetDollarCount adds the dollarCount to the city bus Api route network params -func (o *CityBusAPIRouteNetworkParams) SetDollarCount(dollarCount *bool) { - o.DollarCount = dollarCount -} - // WithDollarFilter adds the dollarFilter to the city bus Api route network params func (o *CityBusAPIRouteNetworkParams) WithDollarFilter(dollarFilter *string) *CityBusAPIRouteNetworkParams { o.SetDollarFilter(dollarFilter) @@ -287,23 +270,6 @@ func (o *CityBusAPIRouteNetworkParams) WriteToRequest(r runtime.ClientRequest, r } var res []error - if o.DollarCount != nil { - - // query param $count - var qrDollarCount bool - - if o.DollarCount != nil { - qrDollarCount = *o.DollarCount - } - qDollarCount := swag.FormatBool(qrDollarCount) - if qDollarCount != "" { - - if err := r.SetQueryParam("$count", qDollarCount); err != nil { - return err - } - } - } - if o.DollarFilter != nil { // query param $filter diff --git a/bus/v3/client/city_bus/city_bus_api_route_network_responses.go b/bus/v2/client/city_bus/city_bus_api_route_network_responses.go similarity index 85% rename from bus/v3/client/city_bus/city_bus_api_route_network_responses.go rename to bus/v2/client/city_bus/city_bus_api_route_network_responses.go index d7b5451e..e815c9a2 100644 --- a/bus/v3/client/city_bus/city_bus_api_route_network_responses.go +++ b/bus/v2/client/city_bus/city_bus_api_route_network_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/minchao/go-ptx/bus/v3/models" + "github.com/minchao/go-ptx/bus/v2/models" ) // CityBusAPIRouteNetworkReader is a Reader for the CityBusAPIRouteNetwork structure. @@ -56,22 +56,20 @@ func NewCityBusAPIRouteNetworkOK() *CityBusAPIRouteNetworkOK { Success */ type CityBusAPIRouteNetworkOK struct { - Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork + Payload []*models.PTXServiceDTOBusSpecificationV2BusRouteNetwork } func (o *CityBusAPIRouteNetworkOK) Error() string { - return fmt.Sprintf("[GET /v3/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetworkOK %+v", 200, o.Payload) + return fmt.Sprintf("[GET /v2/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetworkOK %+v", 200, o.Payload) } -func (o *CityBusAPIRouteNetworkOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork { +func (o *CityBusAPIRouteNetworkOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRouteNetwork { return o.Payload } func (o *CityBusAPIRouteNetworkOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } @@ -92,7 +90,7 @@ type CityBusAPIRouteNetworkStatus299 struct { } func (o *CityBusAPIRouteNetworkStatus299) Error() string { - return fmt.Sprintf("[GET /v3/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetworkStatus299 %+v", 299, o.Payload) + return fmt.Sprintf("[GET /v2/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetworkStatus299 %+v", 299, o.Payload) } func (o *CityBusAPIRouteNetworkStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth { return o.Payload @@ -123,7 +121,7 @@ type CityBusAPIRouteNetworkNotModified struct { } func (o *CityBusAPIRouteNetworkNotModified) Error() string { - return fmt.Sprintf("[GET /v3/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetworkNotModified ", 304) + return fmt.Sprintf("[GET /v2/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetworkNotModified ", 304) } func (o *CityBusAPIRouteNetworkNotModified) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/bus/v2/client/city_bus/city_bus_client.go b/bus/v2/client/city_bus/city_bus_client.go index 3ee90a50..753c811d 100644 --- a/bus/v2/client/city_bus/city_bus_client.go +++ b/bus/v2/client/city_bus/city_bus_client.go @@ -76,6 +76,10 @@ type ClientService interface { CityBusAPIRouteFare1(params *CityBusAPIRouteFare1Params, opts ...ClientOption) (*CityBusAPIRouteFare1OK, *CityBusAPIRouteFare1Status299, error) + CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams, opts ...ClientOption) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error) + + CityBusAPIRouteNetwork1(params *CityBusAPIRouteNetwork1Params, opts ...ClientOption) (*CityBusAPIRouteNetwork1OK, *CityBusAPIRouteNetwork1Status299, error) + CityBusAPIRoute1(params *CityBusAPIRoute1Params, opts ...ClientOption) (*CityBusAPIRoute1OK, *CityBusAPIRoute1Status299, error) CityBusAPIS2STravelTimeDetail(params *CityBusAPIS2STravelTimeDetailParams, opts ...ClientOption) (*CityBusAPIS2STravelTimeDetailOK, *CityBusAPIS2STravelTimeDetailStatus299, error) @@ -158,7 +162,7 @@ func (a *Client) CityBusAPIDataVersion(params *CityBusAPIDataVersionParams, opts ID: "CityBusApi_DataVersion", Method: "GET", PathPattern: "/v2/Bus/DataVersion/City/{City}", - ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/plain"}, + ProducesMediaTypes: []string{"application/json", "application/xml"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, @@ -188,7 +192,7 @@ func (a *Client) CityBusAPIDataVersion(params *CityBusAPIDataVersionParams, opts /* CityBusAPIDisplayStopOfRoute 取得指定s 縣市 的市區公車顯示用路線站序資料 - 市區公車之顯示用路線站序資料,僅台北市與新北市可查詢 + 市區公車之顯示用路線站序資料 */ func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRouteParams, opts ...ClientOption) (*CityBusAPIDisplayStopOfRouteOK, *CityBusAPIDisplayStopOfRouteStatus299, error) { // TODO: Validate the params before sending @@ -1064,6 +1068,88 @@ func (a *Client) CityBusAPIRouteFare1(params *CityBusAPIRouteFare1Params, opts . panic(msg) } +/* + CityBusAPIRouteNetwork 取得指定s 縣市 的市區公車路線網路拓撲資料 + + 市區公車路線網路拓撲資料 +*/ +func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams, opts ...ClientOption) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCityBusAPIRouteNetworkParams() + } + op := &runtime.ClientOperation{ + ID: "CityBusApi_RouteNetwork", + Method: "GET", + PathPattern: "/v2/Bus/RouteNetwork/City/{City}", + ProducesMediaTypes: []string{"application/json", "application/xml"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &CityBusAPIRouteNetworkReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, nil, err + } + switch value := result.(type) { + case *CityBusAPIRouteNetworkOK: + return value, nil, nil + case *CityBusAPIRouteNetworkStatus299: + return nil, value, nil + } + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for city_bus: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + CityBusAPIRouteNetwork1 取得指定s 縣市 路線名稱 的市區公車顯示用路線站序資料 + + 市區公車之顯示用路線站序資料 +*/ +func (a *Client) CityBusAPIRouteNetwork1(params *CityBusAPIRouteNetwork1Params, opts ...ClientOption) (*CityBusAPIRouteNetwork1OK, *CityBusAPIRouteNetwork1Status299, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCityBusAPIRouteNetwork1Params() + } + op := &runtime.ClientOperation{ + ID: "CityBusApi_RouteNetwork_1", + Method: "GET", + PathPattern: "/v2/Bus/RouteNetwork/City/{City}/{RouteName}", + ProducesMediaTypes: []string{"application/json", "application/xml"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &CityBusAPIRouteNetwork1Reader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, nil, err + } + switch value := result.(type) { + case *CityBusAPIRouteNetwork1OK: + return value, nil, nil + case *CityBusAPIRouteNetwork1Status299: + return nil, value, nil + } + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for city_bus: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* CityBusAPIRoute1 取得指定s 縣市 路線名稱 的路線資料 diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_client.go b/bus/v2/client/inter_city_bus/inter_city_bus_client.go index e5faf4ff..f903a1f4 100644 --- a/bus/v2/client/inter_city_bus/inter_city_bus_client.go +++ b/bus/v2/client/inter_city_bus/inter_city_bus_client.go @@ -150,7 +150,7 @@ func (a *Client) InterCityBusAPIDataVersion(params *InterCityBusAPIDataVersionPa ID: "InterCityBusApi_DataVersion", Method: "GET", PathPattern: "/v2/Bus/DataVersion/InterCity", - ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/plain"}, + ProducesMediaTypes: []string{"application/json", "application/xml"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a1_data.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a1_data.go index 43c138b0..9ef8fe8b 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a1_data.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a1_data.go @@ -29,22 +29,22 @@ type PTXServiceDTOBusSpecificationV2BusA1Data struct { // 車輛位置經度 BusPosition struct { PTXServiceDTOSharedSpecificationV2BasePointType - } `json:"BusPosition,omitempty"` + } `json:"BusPosition,omitempty" xml:"PointType,omitempty"` // integer // // 行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知'] - BusStatus int32 `json:"BusStatus,omitempty"` + BusStatus string `json:"BusStatus,omitempty"` // integer // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] - Direction int32 `json:"Direction,omitempty"` + Direction int64 `json:"Direction,omitempty"` // integer // // 勤務狀態 : [0:'正常',1:'開始',2:'結束'] - DutyStatus int32 `json:"DutyStatus,omitempty"` + DutyStatus string `json:"DutyStatus,omitempty"` // DateTime // @@ -55,35 +55,35 @@ type PTXServiceDTOBusSpecificationV2BusA1Data struct { // integer // // 資料型態種類 : [0:'未知',1:'定期',2:'非定期'] - MessageType int32 `json:"MessageType,omitempty"` + MessageType string `json:"MessageType,omitempty"` // String // // 營運業者代碼 - OperatorID string `json:"OperatorID,omitempty"` + OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"` // String // // 車牌號碼 // Required: true - PlateNumb *string `json:"PlateNumb"` + PlateNumb *string `json:"PlateNumb" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // NameType // // 路線名稱 RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - RouteUID string `json:"RouteUID,omitempty"` + RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"` // 行駛速度(kph) Speed float64 `json:"Speed,omitempty"` @@ -106,19 +106,19 @@ type PTXServiceDTOBusSpecificationV2BusA1Data struct { // String // // 地區既用中之子路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 子路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a2_data.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a2_data.go index 41bdd7e9..26d2564c 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a2_data.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a2_data.go @@ -24,23 +24,23 @@ type PTXServiceDTOBusSpecificationV2BusA2Data struct { // integer // // 進站離站 : [0:'離站',1:'進站'] - A2EventType int32 `json:"A2EventType,omitempty"` + A2EventType string `json:"A2EventType,omitempty"` // integer // // 行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知'] - BusStatus int32 `json:"BusStatus,omitempty"` + BusStatus string `json:"BusStatus,omitempty"` // integer // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // integer // // 勤務狀態 : [0:'正常',1:'開始',2:'結束'] - DutyStatus int32 `json:"DutyStatus,omitempty"` + DutyStatus string `json:"DutyStatus,omitempty"` // DateTime // @@ -51,35 +51,35 @@ type PTXServiceDTOBusSpecificationV2BusA2Data struct { // integer // // 資料型態種類 : [0:'未知',1:'定期',2:'非定期'] - MessageType int32 `json:"MessageType,omitempty"` + MessageType string `json:"MessageType,omitempty"` // String // // 營運業者代碼 - OperatorID string `json:"OperatorID,omitempty"` + OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"` // String // // 車牌號碼 // Required: true - PlateNumb *string `json:"PlateNumb"` + PlateNumb *string `json:"PlateNumb" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // NameType // // 路線名 RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - RouteUID string `json:"RouteUID,omitempty"` + RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"` // DateTime // @@ -99,14 +99,14 @@ type PTXServiceDTOBusSpecificationV2BusA2Data struct { // String // // 地區既用中之站牌代號(為原資料內碼) - StopID string `json:"StopID,omitempty"` + StopID string `json:"StopID,omitempty" xml:"String,omitempty"` // NameType // // 站牌名 StopName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // Int32 // @@ -116,24 +116,24 @@ type PTXServiceDTOBusSpecificationV2BusA2Data struct { // String // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - StopUID string `json:"StopUID,omitempty"` + StopUID string `json:"StopUID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之子路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 子路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_alert.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_alert.go index 478e206e..7bd079e2 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_alert.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_alert.go @@ -23,34 +23,34 @@ type PTXServiceDTOBusSpecificationV2BusAlert struct { // // 通阻事件原單位發布代碼 // Required: true - AlertID *string `json:"AlertID"` + AlertID *string `json:"AlertID" xml:"String"` // String // // 詳細描述網站連結 - AlertURL string `json:"AlertURL,omitempty"` + AlertURL string `json:"AlertURL,omitempty" xml:"String,omitempty"` // integer // // 原因 : [1:'事故',2:'維護',3:'技術問題',4:'施工',5:'急救',6:'天災',7:'示威遊行',8:'維安',9:'假日',10:'罷工',254:'其他',255:'未知原因'] - Cause int32 `json:"Cause,omitempty"` + Cause string `json:"Cause,omitempty"` // String // // 發布單位 // Required: true - Department *string `json:"Department"` + Department *string `json:"Department" xml:"String"` // String // // 事件描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // integer // // 影響 : [1:'車輛改道',2:'服務班次增加',3:'服務班次減少',4:'服務班次取消',5:'服務班次改變',6:'站牌不停靠',7:'重大延遲',254:'其他影響',255:'未知影響'] - Effect int32 `json:"Effect,omitempty"` + Effect string `json:"Effect,omitempty"` // DateTime // @@ -68,7 +68,7 @@ type PTXServiceDTOBusSpecificationV2BusAlert struct { // Required: true Scope struct { PTXServiceDTOBusSpecificationV2Scope - } `json:"Scope"` + } `json:"Scope" xml:"Scope"` // DateTime // @@ -83,13 +83,13 @@ type PTXServiceDTOBusSpecificationV2BusAlert struct { // integer // // 營運狀況 : [0:'全部營運停止',1:'全部營運正常',2:'有異常狀況'] - Status int32 `json:"Status,omitempty"` + Status string `json:"Status,omitempty"` // String // // 通阻標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_discount_periods.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_discount_periods.go index 8b5dfd88..768b7647 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_discount_periods.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_discount_periods.go @@ -25,7 +25,7 @@ type PTXServiceDTOBusSpecificationV2BusDiscountPeriods struct { // // 結束時間(HH:mm制) // Required: true - EndTime *string `json:"EndTime"` + EndTime *string `json:"EndTime" xml:"String"` // ServiceDay // @@ -33,13 +33,13 @@ type PTXServiceDTOBusSpecificationV2BusDiscountPeriods struct { // Required: true ServiceDay struct { PTXServiceDTOBusSpecificationV2EmbeddedServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // String // // 開始時間(HH:mm制) // Required: true - StartTime *string `json:"StartTime"` + StartTime *string `json:"StartTime" xml:"String"` } // Validate validates this p t x service d t o bus specification v2 bus discount periods diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_display_stop_of_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_display_stop_of_route.go index 49711d4f..7385582f 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_display_stop_of_route.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_display_stop_of_route.go @@ -25,13 +25,13 @@ type PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute struct { // integer // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] - Direction int32 `json:"Direction,omitempty"` + Direction int64 `json:"Direction,omitempty"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -39,19 +39,19 @@ type PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // Array // // 所有經過站牌 // Required: true - Stops []*PTXServiceDTOBusSpecificationV2EmbeddedStop `json:"Stops"` + Stops []*PTXServiceDTOBusSpecificationV2EmbeddedStop "json:\"Stops\" xml:\"List`1\"" // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_fare.go index d45d4bd2..f0d944cc 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_fare.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_fare.go @@ -25,18 +25,18 @@ type PTXServiceDTOBusSpecificationV2BusFare struct { // Array // // 優惠時段 - DiscountPeriods []*PTXServiceDTOBusSpecificationV2BusDiscountPeriods `json:"DiscountPeriods"` + DiscountPeriods []*PTXServiceDTOBusSpecificationV2BusDiscountPeriods "json:\"DiscountPeriods\" xml:\"List`1\"" // integer // // 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票'] // Required: true - FareClass *int32 `json:"FareClass"` + FareClass *string `json:"FareClass"` // String // // 票價名稱 - FareName string `json:"FareName,omitempty"` + FareName string `json:"FareName,omitempty" xml:"String,omitempty"` // Int32 // @@ -48,7 +48,7 @@ type PTXServiceDTOBusSpecificationV2BusFare struct { // // 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期'] // Required: true - TicketType *int32 `json:"TicketType"` + TicketType *string `json:"TicketType"` } // Validate validates this p t x service d t o bus specification v2 bus fare diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info.go index 684617d7..f173efa4 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info.go @@ -26,25 +26,25 @@ type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo struct { // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // Array // // 首末班車 // Required: true - FirstLastTrips []*PTXServiceDTOBusSpecificationV2FirstLastTrip `json:"FirstLastTrips"` + FirstLastTrips []*PTXServiceDTOBusSpecificationV2FirstLastTrip "json:\"FirstLastTrips\" xml:\"List`1\"" // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -52,19 +52,19 @@ type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // NameType // @@ -72,13 +72,13 @@ type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo struct { // Required: true SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName"` + } `json:"SubRouteName" xml:"NameType"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - SubRouteUID *string `json:"SubRouteUID"` + SubRouteUID *string `json:"SubRouteUID" xml:"String"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info_service_day.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info_service_day.go index 862ec28c..1964c40a 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info_service_day.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info_service_day.go @@ -22,64 +22,64 @@ type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay struct { // integer // // 國定假日後一日營運與否 : [0:'否',1:'是'] - DayAfterNationalHoliday int32 `json:"DayAfterNationalHoliday,omitempty"` + DayAfterNationalHoliday string `json:"DayAfterNationalHoliday,omitempty"` // integer // // 國定假日前一日營運與否 : [0:'否',1:'是'] - DayBeforeNationalHoliday int32 `json:"DayBeforeNationalHoliday,omitempty"` + DayBeforeNationalHoliday string `json:"DayBeforeNationalHoliday,omitempty"` // integer // // 星期五是否營運 : [0:'否',1:'是'] // Required: true - Friday *int32 `json:"Friday"` + Friday *string `json:"Friday"` // integer // // 星期一是否營運 : [0:'否',1:'是'] // Required: true - Monday *int32 `json:"Monday"` + Monday *string `json:"Monday"` // integer // // 國定假日營運與否 : [0:'否',1:'是'] - NationalHolidays int32 `json:"NationalHolidays,omitempty"` + NationalHolidays string `json:"NationalHolidays,omitempty"` // integer // // 星期六是否營運 : [0:'否',1:'是'] // Required: true - Saturday *int32 `json:"Saturday"` + Saturday *string `json:"Saturday"` // integer // // 星期日是否營運 : [0:'否',1:'是'] // Required: true - Sunday *int32 `json:"Sunday"` + Sunday *string `json:"Sunday"` // integer // // 星期四是否營運 : [0:'否',1:'是'] // Required: true - Thursday *int32 `json:"Thursday"` + Thursday *string `json:"Thursday"` // integer // // 星期二是否營運 : [0:'否',1:'是'] // Required: true - Tuesday *int32 `json:"Tuesday"` + Tuesday *string `json:"Tuesday"` // integer // // 颱風停止上班上課期間營運與否 : [0:'否',1:'是'] - TyphoonDay int32 `json:"TyphoonDay,omitempty"` + TyphoonDay string `json:"TyphoonDay,omitempty"` // integer // // 星期三是否營運 : [0:'否',1:'是'] // Required: true - Wednesday *int32 `json:"Wednesday"` + Wednesday *string `json:"Wednesday"` } // Validate validates this p t x service d t o bus specification v2 bus first last trip info service day diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go index 13b35b86..dd44a542 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV2BusFrequency struct { // // 發車班距結束適用時間,格式為: HH:mm // Required: true - EndTime *string `json:"EndTime"` + EndTime *string `json:"EndTime" xml:"String"` // Int32 // @@ -45,18 +45,18 @@ type PTXServiceDTOBusSpecificationV2BusFrequency struct { // 週內營運日 ServiceDay struct { PTXServiceDTOBusSpecificationV2EmbeddedServiceDay - } `json:"ServiceDay,omitempty"` + } `json:"ServiceDay,omitempty" xml:"ServiceDay,omitempty"` // Array // // 特殊營運日 - SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay `json:"SpecialDays"` + SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay "json:\"SpecialDays\" xml:\"List`1\"" // String // // 發車班距起始適用時間,格式為: HH:mm // Required: true - StartTime *string `json:"StartTime"` + StartTime *string `json:"StartTime" xml:"String"` } // Validate validates this p t x service d t o bus specification v2 bus frequency diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_n1_estimate_time.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_n1_estimate_time.go index 00837800..51db9b8c 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_n1_estimate_time.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_n1_estimate_time.go @@ -23,7 +23,7 @@ type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct { // String // // 車輛目前所在站牌代碼 - CurrentStop string `json:"CurrentStop,omitempty"` + CurrentStop string `json:"CurrentStop,omitempty" xml:"String,omitempty"` // DateTime // @@ -33,13 +33,13 @@ type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct { // String // // 車輛目的站牌代碼 - DestinationStop string `json:"DestinationStop,omitempty"` + DestinationStop string `json:"DestinationStop,omitempty" xml:"String,omitempty"` // integer // // 去返程(該方向指的是此車牌車輛目前所在路線的去返程方向,非指站站牌所在路線的去返程方向,使用時請加值業者多加注意) : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // 到站時間預估(秒) [當StopStatus値為2~4或PlateNumb値為-1時,EstimateTime値為null; 當StopStatus値為1時, EstimateTime値多數為null,僅部分路線因有固定發車時間,故EstimateTime有値; 當StopStatus値為0時,EstimateTime有値。] EstimateTime int32 `json:"EstimateTime,omitempty"` @@ -48,7 +48,7 @@ type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct { // // 到站時間預估 // - Estimates []*PTXServiceDTOBusSpecificationV2N1Estimate `json:"Estimates"` + Estimates []*PTXServiceDTOBusSpecificationV2N1Estimate "json:\"Estimates\" xml:\"List`1\"" // 是否為末班車 IsLastBus bool `json:"IsLastBus,omitempty"` @@ -56,7 +56,7 @@ type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct { // integer // // 資料型態種類 : [0:'未知',1:'定期',2:'非定期'] - MessageType int32 `json:"MessageType,omitempty"` + MessageType string `json:"MessageType,omitempty"` // DateTime // @@ -66,24 +66,24 @@ type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct { // String // // 車牌號碼 [値為値為-1時,表示目前該站位無車輛行駛] - PlateNumb string `json:"PlateNumb,omitempty"` + PlateNumb string `json:"PlateNumb,omitempty" xml:"String,omitempty"` // String // // 地區既用中之路線代碼(為原資料內碼) - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // NameType // // 路線名稱 RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` // String // // 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢 - RouteUID string `json:"RouteUID,omitempty"` + RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"` // DateTime // @@ -106,14 +106,14 @@ type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct { // String // // 地區既用中之站牌代碼(為原資料內碼) - StopID string `json:"StopID,omitempty"` + StopID string `json:"StopID,omitempty" xml:"String,omitempty"` // NameType // // 站牌名 StopName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // 路線經過站牌之順序 StopSequence int32 `json:"StopSequence,omitempty"` @@ -121,29 +121,29 @@ type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct { // integer // // 車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運'] - StopStatus int32 `json:"StopStatus,omitempty"` + StopStatus string `json:"StopStatus,omitempty"` // String // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - StopUID string `json:"StopUID,omitempty"` + StopUID string `json:"StopUID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之子路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 子路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_news.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_news.go index 4c89fd49..14b0ee57 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_news.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_news.go @@ -24,28 +24,28 @@ type PTXServiceDTOBusSpecificationV2BusNews struct { // String // // 相關網站連結 - AttachmentURL string `json:"AttachmentURL,omitempty"` + AttachmentURL string `json:"AttachmentURL,omitempty" xml:"String,omitempty"` // String // // 聯絡人/單位 - ContactName string `json:"ContactName,omitempty"` + ContactName string `json:"ContactName,omitempty" xml:"String,omitempty"` // String // // 聯絡電話 - ContactPhone string `json:"ContactPhone,omitempty"` + ContactPhone string `json:"ContactPhone,omitempty" xml:"String,omitempty"` // String // // 發布單位 - Department string `json:"Department,omitempty"` + Department string `json:"Department,omitempty" xml:"String,omitempty"` // String // // 內容描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // DateTime // @@ -56,23 +56,23 @@ type PTXServiceDTOBusSpecificationV2BusNews struct { // // 語系 // Required: true - Language *string `json:"Language"` + Language *string `json:"Language" xml:"String"` // integer // // 消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'通阻資訊',99:'其他'] - NewsCategory int32 `json:"NewsCategory,omitempty"` + NewsCategory string `json:"NewsCategory,omitempty"` // String // // 最新消息原單位發布代碼 // Required: true - NewsID *string `json:"NewsID"` + NewsID *string `json:"NewsID" xml:"String"` // String // // 報導網站連結 - NewsURL string `json:"NewsURL,omitempty"` + NewsURL string `json:"NewsURL,omitempty" xml:"String,omitempty"` // DateTime // @@ -94,7 +94,7 @@ type PTXServiceDTOBusSpecificationV2BusNews struct { // // 消息標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_o_d_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_o_d_fare.go new file mode 100644 index 00000000..763c18f8 --- /dev/null +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_o_d_fare.go @@ -0,0 +1,190 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// PTXServiceDTOBusSpecificationV2BusODFare BusODFare +// +// 起迄站間計費 +// +// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusODFare +type PTXServiceDTOBusSpecificationV2BusODFare struct { + + // Stop + // + // 計費迄點站牌資訊 + // Required: true + DestinationStop struct { + PTXServiceDTOBusSpecificationV2BusRouteFareStop + } `json:"DestinationStop" xml:"Stop"` + + // integer + // + // 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] + // Required: true + Direction *int64 `json:"Direction"` + + // Array + // + // 票價內容 + // Required: true + Fares []*PTXServiceDTOBusSpecificationV2BusRouteFareFare "json:\"Fares\" xml:\"List`1\"" + + // Stop + // + // 計費起點站牌資訊 + // Required: true + OriginStop struct { + PTXServiceDTOBusSpecificationV2BusRouteFareStop + } `json:"OriginStop" xml:"Stop"` +} + +// Validate validates this p t x service d t o bus specification v2 bus o d fare +func (m *PTXServiceDTOBusSpecificationV2BusODFare) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateDestinationStop(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDirection(formats); err != nil { + res = append(res, err) + } + + if err := m.validateFares(formats); err != nil { + res = append(res, err) + } + + if err := m.validateOriginStop(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusODFare) validateDestinationStop(formats strfmt.Registry) error { + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusODFare) validateDirection(formats strfmt.Registry) error { + + if err := validate.Required("Direction", "body", m.Direction); err != nil { + return err + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusODFare) validateFares(formats strfmt.Registry) error { + + if err := validate.Required("Fares", "body", m.Fares); err != nil { + return err + } + + for i := 0; i < len(m.Fares); i++ { + if swag.IsZero(m.Fares[i]) { // not required + continue + } + + if m.Fares[i] != nil { + if err := m.Fares[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Fares" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusODFare) validateOriginStop(formats strfmt.Registry) error { + + return nil +} + +// ContextValidate validate this p t x service d t o bus specification v2 bus o d fare based on the context it is used +func (m *PTXServiceDTOBusSpecificationV2BusODFare) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateDestinationStop(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateFares(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateOriginStop(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusODFare) contextValidateDestinationStop(ctx context.Context, formats strfmt.Registry) error { + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusODFare) contextValidateFares(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Fares); i++ { + + if m.Fares[i] != nil { + if err := m.Fares[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Fares" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusODFare) contextValidateOriginStop(ctx context.Context, formats strfmt.Registry) error { + + return nil +} + +// MarshalBinary interface implementation +func (m *PTXServiceDTOBusSpecificationV2BusODFare) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *PTXServiceDTOBusSpecificationV2BusODFare) UnmarshalBinary(b []byte) error { + var res PTXServiceDTOBusSpecificationV2BusODFare + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route.go index 9716ce4a..b4d21942 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route.go @@ -26,53 +26,53 @@ type PTXServiceDTOBusSpecificationV2BusRoute struct { // // 業管機關代碼 // Required: true - AuthorityID *string `json:"AuthorityID"` + AuthorityID *string `json:"AuthorityID" xml:"String"` // integer // // 公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運',14:'接駁車'] // Required: true - BusRouteType *int32 `json:"BusRouteType"` + BusRouteType *int64 `json:"BusRouteType"` // String // // 路線權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值] - City string `json:"City,omitempty"` + City string `json:"City,omitempty" xml:"String,omitempty"` // String // // 路線權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值] - CityCode string `json:"CityCode,omitempty"` + CityCode string `json:"CityCode,omitempty" xml:"String,omitempty"` // String // // 起站英文名稱 - DepartureStopNameEn string `json:"DepartureStopNameEn,omitempty"` + DepartureStopNameEn string `json:"DepartureStopNameEn,omitempty" xml:"String,omitempty"` // String // // 起站中文名稱 - DepartureStopNameZh string `json:"DepartureStopNameZh,omitempty"` + DepartureStopNameZh string `json:"DepartureStopNameZh,omitempty" xml:"String,omitempty"` // String // // 終點站英文名稱 - DestinationStopNameEn string `json:"DestinationStopNameEn,omitempty"` + DestinationStopNameEn string `json:"DestinationStopNameEn,omitempty" xml:"String,omitempty"` // String // // 終點站中文名稱 - DestinationStopNameZh string `json:"DestinationStopNameZh,omitempty"` + DestinationStopNameZh string `json:"DestinationStopNameZh,omitempty" xml:"String,omitempty"` // String // // 收費緩衝區英文敘述 - FareBufferZoneDescriptionEn string `json:"FareBufferZoneDescriptionEn,omitempty"` + FareBufferZoneDescriptionEn string `json:"FareBufferZoneDescriptionEn,omitempty" xml:"String,omitempty"` // String // // 收費緩衝區中文敘述 - FareBufferZoneDescriptionZh string `json:"FareBufferZoneDescriptionZh,omitempty"` + FareBufferZoneDescriptionZh string `json:"FareBufferZoneDescriptionZh,omitempty" xml:"String,omitempty"` // Boolean // @@ -84,24 +84,24 @@ type PTXServiceDTOBusSpecificationV2BusRoute struct { // // 營運業者 // Required: true - Operators []*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator `json:"Operators"` + Operators []*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator "json:\"Operators\" xml:\"List`1\"" // String // // 資料提供平台代碼 // Required: true - ProviderID *string `json:"ProviderID"` + ProviderID *string `json:"ProviderID" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // String // // 路線簡圖網址 - RouteMapImageURL string `json:"RouteMapImageUrl,omitempty"` + RouteMapImageURL string `json:"RouteMapImageUrl,omitempty" xml:"String,omitempty"` // NameType // @@ -109,28 +109,28 @@ type PTXServiceDTOBusSpecificationV2BusRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // Array // // 附屬路線資料(如果原始資料並無提供附屬路線ID,而本平台基於跨來源資料之一致性,會以SubRouteID=RouteID產製一份相對應的附屬路線資料(若有去返程,則會有兩筆)) - SubRoutes []*PTXServiceDTOBusSpecificationV2BusSubRoute `json:"SubRoutes"` + SubRoutes []*PTXServiceDTOBusSpecificationV2BusSubRoute "json:\"SubRoutes\" xml:\"List`1\"" // String // // 票價英文敘述 - TicketPriceDescriptionEn string `json:"TicketPriceDescriptionEn,omitempty"` + TicketPriceDescriptionEn string `json:"TicketPriceDescriptionEn,omitempty" xml:"String,omitempty"` // String // // 票價中文敘述 - TicketPriceDescriptionZh string `json:"TicketPriceDescriptionZh,omitempty"` + TicketPriceDescriptionZh string `json:"TicketPriceDescriptionZh,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare.go index c793bc90..2a425699 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare.go @@ -26,56 +26,61 @@ type PTXServiceDTOBusSpecificationV2BusRouteFare struct { // // 描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費'] // Required: true - FarePricingType *int32 `json:"FarePricingType"` + FarePricingType *string `json:"FarePricingType"` // integer // // 該收費方式是否應用到所有附屬路線 : [0:'否',1:'是'] // Required: true - IsForAllSubRoutes *int32 `json:"IsForAllSubRoutes"` + IsForAllSubRoutes *string `json:"IsForAllSubRoutes"` // integer // // 是否為免費公車 : [0:'否',1:'是'] // Required: true - IsFreeBus *int32 `json:"IsFreeBus"` + IsFreeBus *string `json:"IsFreeBus"` + + // Array + // + // 起迄站間計費 + ODFares []*PTXServiceDTOBusSpecificationV2BusODFare "json:\"ODFares\" xml:\"List`1\"" // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 機關定義路線代號 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // String // // 路線名稱 - RouteName string `json:"RouteName,omitempty"` + RouteName string `json:"RouteName,omitempty" xml:"String,omitempty"` // Array // // 段次計費 - SectionFares []*PTXServiceDTOBusSpecificationV2SectionFare `json:"SectionFares"` + SectionFares []*PTXServiceDTOBusSpecificationV2SectionFare "json:\"SectionFares\" xml:\"List`1\"" // Array // // 計費站區間計費 - StageFares []*PTXServiceDTOBusSpecificationV2BusStageFare `json:"StageFares"` + StageFares []*PTXServiceDTOBusSpecificationV2BusStageFare "json:\"StageFares\" xml:\"List`1\"" // String // // 機關定義附屬路線代碼 - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // String // // 附屬路線名稱 - SubRouteName string `json:"SubRouteName,omitempty"` + SubRouteName string `json:"SubRouteName,omitempty" xml:"String,omitempty"` // DateTime // @@ -100,6 +105,10 @@ func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) Validate(formats strfmt.Re res = append(res, err) } + if err := m.validateODFares(formats); err != nil { + res = append(res, err) + } + if err := m.validateOperatorID(formats); err != nil { res = append(res, err) } @@ -153,6 +162,30 @@ func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateIsFreeBus(formats return nil } +func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateODFares(formats strfmt.Registry) error { + if swag.IsZero(m.ODFares) { // not required + return nil + } + + for i := 0; i < len(m.ODFares); i++ { + if swag.IsZero(m.ODFares[i]) { // not required + continue + } + + if m.ODFares[i] != nil { + if err := m.ODFares[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ODFares" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateOperatorID(formats strfmt.Registry) error { if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil { @@ -232,6 +265,10 @@ func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateUpdateTime(formats func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := m.contextValidateODFares(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSectionFares(ctx, formats); err != nil { res = append(res, err) } @@ -246,6 +283,24 @@ func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) ContextValidate(ctx contex return nil } +func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) contextValidateODFares(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.ODFares); i++ { + + if m.ODFares[i] != nil { + if err := m.ODFares[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ODFares" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) contextValidateSectionFares(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.SectionFares); i++ { diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare_fare.go similarity index 63% rename from bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_fare.go rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare_fare.go index 8b3d7d03..30b2cb27 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_fare.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare_fare.go @@ -14,16 +14,16 @@ import ( "github.com/go-openapi/validate" ) -// PTXServiceDTOBusSpecificationV2SectionFareFare Fare +// PTXServiceDTOBusSpecificationV2BusRouteFareFare Fare // -// swagger:model PTX.Service.DTO.Bus.Specification.V2.SectionFare+Fare -type PTXServiceDTOBusSpecificationV2SectionFareFare struct { +// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Fare +type PTXServiceDTOBusSpecificationV2BusRouteFareFare struct { // integer // // 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票'] // Required: true - FareClass *int32 `json:"FareClass"` + FareClass *string `json:"FareClass"` // Int32 // @@ -35,11 +35,11 @@ type PTXServiceDTOBusSpecificationV2SectionFareFare struct { // // 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期'] // Required: true - TicketType *int32 `json:"TicketType"` + TicketType *string `json:"TicketType"` } -// Validate validates this p t x service d t o bus specification v2 section fare fare -func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) Validate(formats strfmt.Registry) error { +// Validate validates this p t x service d t o bus specification v2 bus route fare fare +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareFare) Validate(formats strfmt.Registry) error { var res []error if err := m.validateFareClass(formats); err != nil { @@ -60,7 +60,7 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) Validate(formats strfmt return nil } -func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validateFareClass(formats strfmt.Registry) error { +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareFare) validateFareClass(formats strfmt.Registry) error { if err := validate.Required("FareClass", "body", m.FareClass); err != nil { return err @@ -69,7 +69,7 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validateFareClass(forma return nil } -func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validatePrice(formats strfmt.Registry) error { +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareFare) validatePrice(formats strfmt.Registry) error { if err := validate.Required("Price", "body", m.Price); err != nil { return err @@ -78,7 +78,7 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validatePrice(formats s return nil } -func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validateTicketType(formats strfmt.Registry) error { +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareFare) validateTicketType(formats strfmt.Registry) error { if err := validate.Required("TicketType", "body", m.TicketType); err != nil { return err @@ -87,13 +87,13 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validateTicketType(form return nil } -// ContextValidate validates this p t x service d t o bus specification v2 section fare fare based on context it is used -func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) ContextValidate(ctx context.Context, formats strfmt.Registry) error { +// ContextValidate validates this p t x service d t o bus specification v2 bus route fare fare based on context it is used +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareFare) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation -func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) MarshalBinary() ([]byte, error) { +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareFare) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } @@ -101,8 +101,8 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) MarshalBinary() ([]byte } // UnmarshalBinary interface implementation -func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) UnmarshalBinary(b []byte) error { - var res PTXServiceDTOBusSpecificationV2SectionFareFare +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareFare) UnmarshalBinary(b []byte) error { + var res PTXServiceDTOBusSpecificationV2BusRouteFareFare if err := swag.ReadJSON(b, &res); err != nil { return err } diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare_stop.go similarity index 54% rename from bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_stop.go rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare_stop.go index a58851fe..a5e7ebe0 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_stop.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare_stop.go @@ -14,26 +14,26 @@ import ( "github.com/go-openapi/validate" ) -// PTXServiceDTOBusSpecificationV2SectionFareStop Stop +// PTXServiceDTOBusSpecificationV2BusRouteFareStop Stop // -// swagger:model PTX.Service.DTO.Bus.Specification.V2.SectionFare+Stop -type PTXServiceDTOBusSpecificationV2SectionFareStop struct { +// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Stop +type PTXServiceDTOBusSpecificationV2BusRouteFareStop struct { // String // // 緩衝區站牌代碼 // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // String // - // 站牌名稱 + // 緩衝區站牌名稱 // Required: true - StopName *string `json:"StopName"` + StopName *string `json:"StopName" xml:"String"` } -// Validate validates this p t x service d t o bus specification v2 section fare stop -func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) Validate(formats strfmt.Registry) error { +// Validate validates this p t x service d t o bus specification v2 bus route fare stop +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareStop) Validate(formats strfmt.Registry) error { var res []error if err := m.validateStopID(formats); err != nil { @@ -50,7 +50,7 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) Validate(formats strfmt return nil } -func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) validateStopID(formats strfmt.Registry) error { +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareStop) validateStopID(formats strfmt.Registry) error { if err := validate.Required("StopID", "body", m.StopID); err != nil { return err @@ -59,7 +59,7 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) validateStopID(formats return nil } -func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) validateStopName(formats strfmt.Registry) error { +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareStop) validateStopName(formats strfmt.Registry) error { if err := validate.Required("StopName", "body", m.StopName); err != nil { return err @@ -68,13 +68,13 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) validateStopName(format return nil } -// ContextValidate validates this p t x service d t o bus specification v2 section fare stop based on context it is used -func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) ContextValidate(ctx context.Context, formats strfmt.Registry) error { +// ContextValidate validates this p t x service d t o bus specification v2 bus route fare stop based on context it is used +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareStop) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation -func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) MarshalBinary() ([]byte, error) { +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareStop) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } @@ -82,8 +82,8 @@ func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) MarshalBinary() ([]byte } // UnmarshalBinary interface implementation -func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) UnmarshalBinary(b []byte) error { - var res PTXServiceDTOBusSpecificationV2SectionFareStop +func (m *PTXServiceDTOBusSpecificationV2BusRouteFareStop) UnmarshalBinary(b []byte) error { + var res PTXServiceDTOBusSpecificationV2BusRouteFareStop if err := swag.ReadJSON(b, &res); err != nil { return err } diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_network.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_network.go new file mode 100644 index 00000000..4fb4b913 --- /dev/null +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_network.go @@ -0,0 +1,219 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// PTXServiceDTOBusSpecificationV2BusRouteNetwork BusRouteNetwork +// +// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork +type PTXServiceDTOBusSpecificationV2BusRouteNetwork struct { + + // String + // + // 地區既用中之路線代碼(為原資料內碼) + // Required: true + RouteID *string `json:"RouteID" xml:"String"` + + // NameType + // + // 路線名稱 + // Required: true + RouteName struct { + PTXServiceDTOSharedSpecificationV2BaseNameType + } `json:"RouteName" xml:"NameType"` + + // String + // + // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 + // Required: true + RouteUID *string `json:"RouteUID" xml:"String"` + + // Array + // + // 站間線段序號 + // Required: true + Segments []*PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment "json:\"Segments\" xml:\"List`1\"" + + // DateTime + // + // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) + // Required: true + UpdateTime *string `json:"UpdateTime"` + + // Int32 + // + // 資料版本編號 + // Required: true + VersionID *int32 `json:"VersionID"` +} + +// Validate validates this p t x service d t o bus specification v2 bus route network +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateRouteID(formats); err != nil { + res = append(res, err) + } + + if err := m.validateRouteName(formats); err != nil { + res = append(res, err) + } + + if err := m.validateRouteUID(formats); err != nil { + res = append(res, err) + } + + if err := m.validateSegments(formats); err != nil { + res = append(res, err) + } + + if err := m.validateUpdateTime(formats); err != nil { + res = append(res, err) + } + + if err := m.validateVersionID(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) validateRouteID(formats strfmt.Registry) error { + + if err := validate.Required("RouteID", "body", m.RouteID); err != nil { + return err + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) validateRouteName(formats strfmt.Registry) error { + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) validateRouteUID(formats strfmt.Registry) error { + + if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil { + return err + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) validateSegments(formats strfmt.Registry) error { + + if err := validate.Required("Segments", "body", m.Segments); err != nil { + return err + } + + for i := 0; i < len(m.Segments); i++ { + if swag.IsZero(m.Segments[i]) { // not required + continue + } + + if m.Segments[i] != nil { + if err := m.Segments[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Segments" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) validateUpdateTime(formats strfmt.Registry) error { + + if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil { + return err + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) validateVersionID(formats strfmt.Registry) error { + + if err := validate.Required("VersionID", "body", m.VersionID); err != nil { + return err + } + + return nil +} + +// ContextValidate validate this p t x service d t o bus specification v2 bus route network based on the context it is used +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateRouteName(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateSegments(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) contextValidateRouteName(ctx context.Context, formats strfmt.Registry) error { + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) contextValidateSegments(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Segments); i++ { + + if m.Segments[i] != nil { + if err := m.Segments[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Segments" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetwork) UnmarshalBinary(b []byte) error { + var res PTXServiceDTOBusSpecificationV2BusRouteNetwork + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_network_segment.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_network_segment.go new file mode 100644 index 00000000..5aff1bac --- /dev/null +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_network_segment.go @@ -0,0 +1,130 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment Segment +// +// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork+Segment +type PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment struct { + + // Single + // + // 站間線段距離 + // Required: true + Distance *float32 `json:"Distance"` + + // String + // + // 表BusStation唯一碼(起點站牌) + // Required: true + FromStationID *string `json:"FromStationID" xml:"String"` + + // Single + // + // 站間線段序號 + // Required: true + Sequence *float32 `json:"Sequence"` + + // String + // + // 表BusStation唯一碼(迄點站牌) + // Required: true + ToStationID *string `json:"ToStationID" xml:"String"` +} + +// Validate validates this p t x service d t o bus specification v2 bus route network segment +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateDistance(formats); err != nil { + res = append(res, err) + } + + if err := m.validateFromStationID(formats); err != nil { + res = append(res, err) + } + + if err := m.validateSequence(formats); err != nil { + res = append(res, err) + } + + if err := m.validateToStationID(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) validateDistance(formats strfmt.Registry) error { + + if err := validate.Required("Distance", "body", m.Distance); err != nil { + return err + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) validateFromStationID(formats strfmt.Registry) error { + + if err := validate.Required("FromStationID", "body", m.FromStationID); err != nil { + return err + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) validateSequence(formats strfmt.Registry) error { + + if err := validate.Required("Sequence", "body", m.Sequence); err != nil { + return err + } + + return nil +} + +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) validateToStationID(formats strfmt.Registry) error { + + if err := validate.Required("ToStationID", "body", m.ToStationID); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this p t x service d t o bus specification v2 bus route network segment based on context it is used +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) UnmarshalBinary(b []byte) error { + var res PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_s2_s_travel_time.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_s2_s_travel_time.go index 92c61bbd..d7c2c815 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_s2_s_travel_time.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_s2_s_travel_time.go @@ -26,37 +26,37 @@ type PTXServiceDTOBusSpecificationV2BusS2STravelTime struct { // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - SubRouteUID *string `json:"SubRouteUID"` + SubRouteUID *string `json:"SubRouteUID" xml:"String"` // Array // // 旅行時間資訊 // Required: true - TravelTimes []*PTXServiceDTOBusSpecificationV2ServiceTime `json:"TravelTimes"` + TravelTimes []*PTXServiceDTOBusSpecificationV2ServiceTime "json:\"TravelTimes\" xml:\"List`1\"" // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_schedule.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_schedule.go index 5299ba46..38790241 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_schedule.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_schedule.go @@ -26,28 +26,28 @@ type PTXServiceDTOBusSpecificationV2BusSchedule struct { // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // Array // // 發車班距 - Frequencys []*PTXServiceDTOBusSpecificationV2BusFrequency `json:"Frequencys"` + Frequencys []*PTXServiceDTOBusSpecificationV2BusFrequency "json:\"Frequencys\" xml:\"List`1\"" // String // // 營運業者簡碼 - OperatorCode string `json:"OperatorCode,omitempty"` + OperatorCode string `json:"OperatorCode,omitempty" xml:"String,omitempty"` // String // // 營運業者代碼 - OperatorID string `json:"OperatorID,omitempty"` + OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -55,19 +55,19 @@ type PTXServiceDTOBusSpecificationV2BusSchedule struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // NameType // @@ -75,18 +75,18 @@ type PTXServiceDTOBusSpecificationV2BusSchedule struct { // Required: true SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName"` + } `json:"SubRouteName" xml:"NameType"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - SubRouteUID *string `json:"SubRouteUID"` + SubRouteUID *string `json:"SubRouteUID" xml:"String"` // Array // // 預定班表 - Timetables []*PTXServiceDTOBusSpecificationV2BusTimetable `json:"Timetables"` + Timetables []*PTXServiceDTOBusSpecificationV2BusTimetable "json:\"Timetables\" xml:\"List`1\"" // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_shape.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_shape.go index 6bfe988f..131970ed 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_shape.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_shape.go @@ -25,25 +25,25 @@ type PTXServiceDTOBusSpecificationV2BusShape struct { // // 去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // String // // 路線軌跡編碼(encoded polyline) // Required: true - EncodedPolyline *string `json:"EncodedPolyline"` + EncodedPolyline *string `json:"EncodedPolyline" xml:"String"` // String // // well-known text,為路線軌跡資料 // Required: true - Geometry *string `json:"Geometry"` + Geometry *string `json:"Geometry" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -51,29 +51,31 @@ type PTXServiceDTOBusSpecificationV2BusShape struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String + // + // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - SubRouteUID *string `json:"SubRouteUID"` + SubRouteUID *string `json:"SubRouteUID" xml:"String"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage.go index cdaf53d3..5020b2c7 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage.go @@ -25,12 +25,12 @@ type PTXServiceDTOBusSpecificationV2BusStage struct { // // 站牌代碼 // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // String // // 站牌名稱 - StopName string `json:"StopName,omitempty"` + StopName string `json:"StopName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v2 bus stage diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage_fare.go index a3ca33c2..900f4c0e 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage_fare.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage_fare.go @@ -28,19 +28,19 @@ type PTXServiceDTOBusSpecificationV2BusStageFare struct { // Required: true DestinationStage struct { PTXServiceDTOBusSpecificationV2BusStage - } `json:"DestinationStage"` + } `json:"DestinationStage" xml:"BusStage"` // integer // // 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // Array // // 票價內容 // Required: true - Fares []*PTXServiceDTOBusSpecificationV2BusFare `json:"Fares"` + Fares []*PTXServiceDTOBusSpecificationV2BusFare "json:\"Fares\" xml:\"List`1\"" // BusStage // @@ -48,7 +48,7 @@ type PTXServiceDTOBusSpecificationV2BusStageFare struct { // Required: true OriginStage struct { PTXServiceDTOBusSpecificationV2BusStage - } `json:"OriginStage"` + } `json:"OriginStage" xml:"BusStage"` } // Validate validates this p t x service d t o bus specification v2 bus stage fare diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station.go index 3419bf62..faf54ebf 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station.go @@ -25,24 +25,29 @@ type PTXServiceDTOBusSpecificationV2BusStation struct { // String // // 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行 - Bearing string `json:"Bearing,omitempty"` + Bearing string `json:"Bearing,omitempty" xml:"String,omitempty"` + + // String + // + // 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值] + LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"` // String // // 站位地址 - StationAddress string `json:"StationAddress,omitempty"` + StationAddress string `json:"StationAddress,omitempty" xml:"String,omitempty"` // String // // 站牌所屬的組站位ID // Required: true - StationGroupID *string `json:"StationGroupID"` + StationGroupID *string `json:"StationGroupID" xml:"String"` // String // // 站位代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -50,7 +55,7 @@ type PTXServiceDTOBusSpecificationV2BusStation struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // PointType // @@ -58,18 +63,18 @@ type PTXServiceDTOBusSpecificationV2BusStation struct { // Required: true StationPosition struct { PTXServiceDTOSharedSpecificationV2BasePointType - } `json:"StationPosition"` + } `json:"StationPosition" xml:"PointType"` // String // // 站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StationUID *string `json:"StationUID"` + StationUID *string `json:"StationUID" xml:"String"` // Array // // 站牌與所行經此站牌之路線列表(資料會對路線展開,因此可能會有重複的站牌資料) - Stops []*PTXServiceDTOBusSpecificationV2StationStop `json:"Stops"` + Stops []*PTXServiceDTOBusSpecificationV2StationStop "json:\"Stops\" xml:\"List`1\"" // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station_group.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station_group.go index 8afa09c1..bcc9fca5 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station_group.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station_group.go @@ -25,7 +25,7 @@ type PTXServiceDTOBusSpecificationV2BusStationGroup struct { // // 組站位代碼 // Required: true - StationGroupID *string `json:"StationGroupID"` + StationGroupID *string `json:"StationGroupID" xml:"String"` // NameType // @@ -33,7 +33,7 @@ type PTXServiceDTOBusSpecificationV2BusStationGroup struct { // Required: true StationGroupName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationGroupName"` + } `json:"StationGroupName" xml:"NameType"` // PointType // @@ -41,13 +41,13 @@ type PTXServiceDTOBusSpecificationV2BusStationGroup struct { // Required: true StationGroupPosition struct { PTXServiceDTOSharedSpecificationV2BasePointType - } `json:"StationGroupPosition"` + } `json:"StationGroupPosition" xml:"PointType"` // String // // 組站位唯一識別代碼,規則為 {業管機關簡碼} + {StationGroupID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StationGroupUID *string `json:"StationGroupUID"` + StationGroupUID *string `json:"StationGroupUID" xml:"String"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop.go index 3af0c517..7aad49e0 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop.go @@ -25,54 +25,54 @@ type PTXServiceDTOBusSpecificationV2BusStop struct { // // 業管機關代碼 // Required: true - AuthorityID *string `json:"AuthorityID"` + AuthorityID *string `json:"AuthorityID" xml:"String"` // String // // 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行 - Bearing string `json:"Bearing,omitempty"` + Bearing string `json:"Bearing,omitempty" xml:"String,omitempty"` // String // // 站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值] - City string `json:"City,omitempty"` + City string `json:"City,omitempty" xml:"String,omitempty"` // String // // 站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值] - CityCode string `json:"CityCode,omitempty"` + CityCode string `json:"CityCode,omitempty" xml:"String,omitempty"` // String // // 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值] - LocationCityCode string `json:"LocationCityCode,omitempty"` + LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"` // String // // 站牌所屬的組站位ID // Required: true - StationGroupID *string `json:"StationGroupID"` + StationGroupID *string `json:"StationGroupID" xml:"String"` // String // // 站牌所屬的站位ID - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // String // // 站牌地址 - StopAddress string `json:"StopAddress,omitempty"` + StopAddress string `json:"StopAddress,omitempty" xml:"String,omitempty"` // String // // 站牌詳細說明描述 - StopDescription string `json:"StopDescription,omitempty"` + StopDescription string `json:"StopDescription,omitempty" xml:"String,omitempty"` // String // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -80,7 +80,7 @@ type PTXServiceDTOBusSpecificationV2BusStop struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` // PointType // @@ -88,13 +88,13 @@ type PTXServiceDTOBusSpecificationV2BusStop struct { // Required: true StopPosition struct { PTXServiceDTOSharedSpecificationV2BasePointType - } `json:"StopPosition"` + } `json:"StopPosition" xml:"PointType"` // String // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_of_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_of_route.go index 29a73d77..af40368a 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_of_route.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_of_route.go @@ -25,28 +25,28 @@ type PTXServiceDTOBusSpecificationV2BusStopOfRoute struct { // String // // 站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值] - City string `json:"City,omitempty"` + City string `json:"City,omitempty" xml:"String,omitempty"` // String // // 站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值] - CityCode string `json:"CityCode,omitempty"` + CityCode string `json:"CityCode,omitempty" xml:"String,omitempty"` // integer // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] - Direction int32 `json:"Direction,omitempty"` + Direction int64 `json:"Direction,omitempty"` // Array // // 營運業者 - Operators []*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator `json:"Operators"` + Operators []*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator "json:\"Operators\" xml:\"List`1\"" // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -54,25 +54,25 @@ type PTXServiceDTOBusSpecificationV2BusStopOfRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // Array // // 所有經過站牌 // Required: true - Stops []*PTXServiceDTOBusSpecificationV2EmbeddedStop `json:"Stops"` + Stops []*PTXServiceDTOBusSpecificationV2EmbeddedStop "json:\"Stops\" xml:\"List`1\"" // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // NameType // @@ -80,13 +80,13 @@ type PTXServiceDTOBusSpecificationV2BusStopOfRoute struct { // Required: true SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName"` + } `json:"SubRouteName" xml:"NameType"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - SubRouteUID *string `json:"SubRouteUID"` + SubRouteUID *string `json:"SubRouteUID" xml:"String"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go index 3067aca5..b3a45018 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go @@ -25,19 +25,19 @@ type PTXServiceDTOBusSpecificationV2BusStopTime struct { // // 到站時間,格式為:HH:mm // Required: true - ArrivalTime *string `json:"ArrivalTime"` + ArrivalTime *string `json:"ArrivalTime" xml:"String"` // String // // 離站時間,格式為:HH:mm // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // String // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -45,7 +45,7 @@ type PTXServiceDTOBusSpecificationV2BusStopTime struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` // Int32 // @@ -57,7 +57,7 @@ type PTXServiceDTOBusSpecificationV2BusStopTime struct { // // 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v2 bus stop time diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go index 75a4fd9c..18cf89ab 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go @@ -25,49 +25,49 @@ type PTXServiceDTOBusSpecificationV2BusSubRoute struct { // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // String // // 平日第一班發車時間 - FirstBusTime string `json:"FirstBusTime,omitempty"` + FirstBusTime string `json:"FirstBusTime,omitempty" xml:"String,omitempty"` // String // // 車頭描述 - Headsign string `json:"Headsign,omitempty"` + Headsign string `json:"Headsign,omitempty" xml:"String,omitempty"` // String // // 車頭英文描述 - HeadsignEn string `json:"HeadsignEn,omitempty"` + HeadsignEn string `json:"HeadsignEn,omitempty" xml:"String,omitempty"` // String // // 假日去程第一班發車時間 - HolidayFirstBusTime string `json:"HolidayFirstBusTime,omitempty"` + HolidayFirstBusTime string `json:"HolidayFirstBusTime,omitempty" xml:"String,omitempty"` // String // // 假日返程第一班發車時間 - HolidayLastBusTime string `json:"HolidayLastBusTime,omitempty"` + HolidayLastBusTime string `json:"HolidayLastBusTime,omitempty" xml:"String,omitempty"` // String // // 平日返程第一班發車時間 - LastBusTime string `json:"LastBusTime,omitempty"` + LastBusTime string `json:"LastBusTime,omitempty" xml:"String,omitempty"` // Array // // 營運業者代碼 // Required: true - OperatorIDs []string `json:"OperatorIDs"` + OperatorIDs []string "json:\"OperatorIDs\" xml:\"List`1\"" // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // NameType // @@ -75,13 +75,13 @@ type PTXServiceDTOBusSpecificationV2BusSubRoute struct { // Required: true SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName"` + } `json:"SubRouteName" xml:"NameType"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - SubRouteUID *string `json:"SubRouteUID"` + SubRouteUID *string `json:"SubRouteUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v2 bus sub route diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go index d23c147e..97fda7db 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go @@ -27,23 +27,23 @@ type PTXServiceDTOBusSpecificationV2BusTimetable struct { // 週內營運日 ServiceDay struct { PTXServiceDTOBusSpecificationV2EmbeddedServiceDay - } `json:"ServiceDay,omitempty"` + } `json:"ServiceDay,omitempty" xml:"ServiceDay,omitempty"` // Array // // 特殊營運日 - SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay `json:"SpecialDays"` + SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay "json:\"SpecialDays\" xml:\"List`1\"" // Array // // 公車停靠時間資料 // Required: true - StopTimes []*PTXServiceDTOBusSpecificationV2BusStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTOBusSpecificationV2BusStopTime "json:\"StopTimes\" xml:\"List`1\"" // String // // 班次代碼,為無意義之編碼 - TripID string `json:"TripID,omitempty"` + TripID string `json:"TripID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v2 bus timetable diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_vehicle_info.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_vehicle_info.go index 7d3c0961..8a270b8b 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_vehicle_info.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_vehicle_info.go @@ -25,7 +25,7 @@ type PTXServiceDTOBusSpecificationV2BusVehicleInfo struct { // // 車牌號碼 // Required: true - PlateNumb *string `json:"PlateNumb"` + PlateNumb *string `json:"PlateNumb" xml:"String"` // DateTime // @@ -37,7 +37,7 @@ type PTXServiceDTOBusSpecificationV2BusVehicleInfo struct { // // 車輛種類 : [0:'一般',1:'無障礙公車',2:'復康巴士',3:'小型巴士'] // Required: true - VehicleType *int32 `json:"VehicleType"` + VehicleType *int64 `json:"VehicleType"` } // Validate validates this p t x service d t o bus specification v2 bus vehicle info diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go index c59c0652..7364c259 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go @@ -20,12 +20,12 @@ type PTXServiceDTOBusSpecificationV2DatePeriod struct { // String // // 營運結束日(格式: yyyy-MM-dd) - EndDate string `json:"EndDate,omitempty"` + EndDate string `json:"EndDate,omitempty" xml:"String,omitempty"` // String // // 營運起始日(格式: yyyy-MM-dd) - StartDate string `json:"StartDate,omitempty"` + StartDate string `json:"StartDate,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v2 date period diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_route_operator.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_route_operator.go index 5c958901..4aba4028 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_route_operator.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_route_operator.go @@ -25,13 +25,13 @@ type PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator struct { // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // NameType // @@ -39,13 +39,13 @@ type PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 營運業者編號[交通部票證資料系統定義] // Required: true - OperatorNo *string `json:"OperatorNo"` + OperatorNo *string `json:"OperatorNo" xml:"String"` } // Validate validates this p t x service d t o bus specification v2 embedded route operator diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_service_day.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_service_day.go index b7217fec..82806f9b 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_service_day.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_service_day.go @@ -25,48 +25,48 @@ type PTXServiceDTOBusSpecificationV2EmbeddedServiceDay struct { // // 星期五是否營運 : [0:'否',1:'是'] // Required: true - Friday *int32 `json:"Friday"` + Friday *string `json:"Friday"` // integer // // 星期一是否營運 : [0:'否',1:'是'] // Required: true - Monday *int32 `json:"Monday"` + Monday *string `json:"Monday"` // integer // // 國定假日營運與否 : [0:'否',1:'是'] - NationalHolidays int32 `json:"NationalHolidays,omitempty"` + NationalHolidays string `json:"NationalHolidays,omitempty"` // integer // // 星期六是否營運 : [0:'否',1:'是'] // Required: true - Saturday *int32 `json:"Saturday"` + Saturday *string `json:"Saturday"` // integer // // 星期日是否營運 : [0:'否',1:'是'] // Required: true - Sunday *int32 `json:"Sunday"` + Sunday *string `json:"Sunday"` // integer // // 星期四是否營運 : [0:'否',1:'是'] // Required: true - Thursday *int32 `json:"Thursday"` + Thursday *string `json:"Thursday"` // integer // // 星期二是否營運 : [0:'否',1:'是'] // Required: true - Tuesday *int32 `json:"Tuesday"` + Tuesday *string `json:"Tuesday"` // integer // // 星期三是否營運 : [0:'否',1:'是'] // Required: true - Wednesday *int32 `json:"Wednesday"` + Wednesday *string `json:"Wednesday"` } // Validate validates this p t x service d t o bus specification v2 embedded service day diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_stop.go index a721b913..584e9a19 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_stop.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_embedded_stop.go @@ -24,29 +24,29 @@ type PTXServiceDTOBusSpecificationV2EmbeddedStop struct { // String // // 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值] - LocationCityCode string `json:"LocationCityCode,omitempty"` + LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"` // String // // 站牌所屬的組站位ID // Required: true - StationGroupID *string `json:"StationGroupID"` + StationGroupID *string `json:"StationGroupID" xml:"String"` // String // // 站牌所屬的站位ID - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // integer // // 上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車'] - StopBoarding int32 `json:"StopBoarding,omitempty"` + StopBoarding string `json:"StopBoarding,omitempty"` // String // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -54,7 +54,7 @@ type PTXServiceDTOBusSpecificationV2EmbeddedStop struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` // PointType // @@ -62,7 +62,7 @@ type PTXServiceDTOBusSpecificationV2EmbeddedStop struct { // Required: true StopPosition struct { PTXServiceDTOSharedSpecificationV2BasePointType - } `json:"StopPosition"` + } `json:"StopPosition" xml:"PointType"` // Int32 // @@ -74,7 +74,7 @@ type PTXServiceDTOBusSpecificationV2EmbeddedStop struct { // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v2 embedded stop diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_first_last_trip.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_first_last_trip.go index c77b7445..a384c36d 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_first_last_trip.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_first_last_trip.go @@ -25,13 +25,13 @@ type PTXServiceDTOBusSpecificationV2FirstLastTrip struct { // // 頭班車發車時間(HH:mm) // Required: true - FirstTripDepTime *string `json:"FirstTripDepTime"` + FirstTripDepTime *string `json:"FirstTripDepTime" xml:"String"` // String // // 末班車發車時間(HH:mm) // Required: true - LastTripDepTime *string `json:"LastTripDepTime"` + LastTripDepTime *string `json:"LastTripDepTime" xml:"String"` // ServiceDay // @@ -39,7 +39,7 @@ type PTXServiceDTOBusSpecificationV2FirstLastTrip struct { // Required: true ServiceDay struct { PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` } // Validate validates this p t x service d t o bus specification v2 first last trip diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_n1_estimate.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_n1_estimate.go index 0437e745..5a0714ab 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_n1_estimate.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_n1_estimate.go @@ -26,12 +26,12 @@ type PTXServiceDTOBusSpecificationV2N1Estimate struct { // String // // 車輛車牌號碼 - PlateNumb string `json:"PlateNumb,omitempty"` + PlateNumb string `json:"PlateNumb,omitempty" xml:"String,omitempty"` // integer // // 車輛於該站之進離站狀態 : [0:'離站',1:'進站'] - VehicleStopStatus int32 `json:"VehicleStopStatus,omitempty"` + VehicleStopStatus string `json:"VehicleStopStatus,omitempty"` } // Validate validates this p t x service d t o bus specification v2 n1 estimate diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope.go index fa8deaaa..3747a3c6 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope.go @@ -24,32 +24,32 @@ type PTXServiceDTOBusSpecificationV2Scope struct { // Array // // 營運業者資料 - Operators []*PTXServiceDTOBusSpecificationV2ScopeOperator `json:"Operators"` + Operators []*PTXServiceDTOBusSpecificationV2ScopeOperator "json:\"Operators\" xml:\"List`1\"" // Array // // 路線資料 - Routes []*PTXServiceDTOBusSpecificationV2ScopeRoute `json:"Routes"` + Routes []*PTXServiceDTOBusSpecificationV2ScopeRoute "json:\"Routes\" xml:\"List`1\"" // Array // // 站位資料 - Stations []*PTXServiceDTOBusSpecificationV2ScopeStation `json:"Stations"` + Stations []*PTXServiceDTOBusSpecificationV2ScopeStation "json:\"Stations\" xml:\"List`1\"" // Array // // 站牌資料 - Stops []*PTXServiceDTOBusSpecificationV2ScopeStop `json:"Stops"` + Stops []*PTXServiceDTOBusSpecificationV2ScopeStop "json:\"Stops\" xml:\"List`1\"" // Array // // 附屬路線資料 - SubRoutes []*PTXServiceDTOBusSpecificationV2ScopeSubRoute `json:"SubRoutes"` + SubRoutes []*PTXServiceDTOBusSpecificationV2ScopeSubRoute "json:\"SubRoutes\" xml:\"List`1\"" // Array // // 班次資料 - Trips []*PTXServiceDTOBusSpecificationV2ScopeTrip `json:"Trips"` + Trips []*PTXServiceDTOBusSpecificationV2ScopeTrip "json:\"Trips\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v2 scope diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_operator.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_operator.go index d0f0c515..6c64cb51 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_operator.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_operator.go @@ -23,14 +23,14 @@ type PTXServiceDTOBusSpecificationV2ScopeOperator struct { // String // // 營運業者代碼 , - OperatorID string `json:"OperatorID,omitempty"` + OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"` // NameType // // 營運業者名稱 OperatorName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OperatorName,omitempty"` + } `json:"OperatorName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o bus specification v2 scope operator diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_route.go index f38f0ae9..801ed9f2 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_route.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_route.go @@ -23,19 +23,19 @@ type PTXServiceDTOBusSpecificationV2ScopeRoute struct { // integer // // 影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] - Direction int32 `json:"Direction,omitempty"` + Direction int64 `json:"Direction,omitempty"` // String // // 地區既用中之班次代碼(為原資料內碼) - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // NameType // // 路線名稱 RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o bus specification v2 scope route diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_station.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_station.go index fe4f8baa..9aaa780d 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_station.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_station.go @@ -23,14 +23,14 @@ type PTXServiceDTOBusSpecificationV2ScopeStation struct { // String // // 站位代碼 - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // NameType // // 站位名稱 StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName,omitempty"` + } `json:"StationName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o bus specification v2 scope station diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_stop.go index c8c78488..ec302022 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_stop.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_stop.go @@ -23,19 +23,19 @@ type PTXServiceDTOBusSpecificationV2ScopeStop struct { // String // // 站位代碼 - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之站牌代碼(為原資料內碼) - StopID string `json:"StopID,omitempty"` + StopID string `json:"StopID,omitempty" xml:"String,omitempty"` // NameType // // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o bus specification v2 scope stop diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_sub_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_sub_route.go index 70bfeb2b..9a8d4037 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_sub_route.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_sub_route.go @@ -23,19 +23,19 @@ type PTXServiceDTOBusSpecificationV2ScopeSubRoute struct { // integer // // 影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] - Direction int32 `json:"Direction,omitempty"` + Direction int64 `json:"Direction,omitempty"` // String // // 地區既用中之附屬班次代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o bus specification v2 scope sub route diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_trip.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_trip.go index c930d271..4e8412c3 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_trip.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_scope_trip.go @@ -22,27 +22,27 @@ type PTXServiceDTOBusSpecificationV2ScopeTrip struct { // integer // // 影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] - Direction int32 `json:"Direction,omitempty"` + Direction int64 `json:"Direction,omitempty"` // String // // 地區既用中之班次代碼(為原資料內碼) - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之附屬班次代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // String // // 首站發車時間(HH:mm) - TripDepTime string `json:"TripDepTime,omitempty"` + TripDepTime string `json:"TripDepTime,omitempty" xml:"String,omitempty"` // String // // 地區既用中之班次代碼(為原資料內碼) - TripID string `json:"TripID,omitempty"` + TripID string `json:"TripID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v2 scope trip diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare.go index 1b176c97..7972dd8c 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare.go @@ -26,13 +26,13 @@ type PTXServiceDTOBusSpecificationV2SectionFare struct { // // 緩衝區資訊 // Required: true - BufferZones []*PTXServiceDTOBusSpecificationV2SectionFareBufferZone `json:"BufferZones"` + BufferZones []*PTXServiceDTOBusSpecificationV2SectionFareBufferZone "json:\"BufferZones\" xml:\"List`1\"" // Array // // 每段收費資訊 // Required: true - Fares []*PTXServiceDTOBusSpecificationV2SectionFareFare `json:"Fares"` + Fares []*PTXServiceDTOBusSpecificationV2BusRouteFareFare "json:\"Fares\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v2 section fare diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_buffer_zone.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_buffer_zone.go index abd20907..027685c8 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_buffer_zone.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_buffer_zone.go @@ -22,29 +22,29 @@ type PTXServiceDTOBusSpecificationV2SectionFareBufferZone struct { // String // // 收費緩衝區描述 - BufferZoneDescription string `json:"BufferZoneDescription,omitempty"` + BufferZoneDescription string `json:"BufferZoneDescription,omitempty" xml:"String,omitempty"` // integer // // 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *int64 `json:"Direction"` // Stop // // 緩衝區訖點 // Required: true FareBufferZoneDestination struct { - PTXServiceDTOBusSpecificationV2SectionFareStop - } `json:"FareBufferZoneDestination"` + PTXServiceDTOBusSpecificationV2BusRouteFareStop + } `json:"FareBufferZoneDestination" xml:"Stop"` // Stop // // 緩衝區起點 // Required: true FareBufferZoneOrigin struct { - PTXServiceDTOBusSpecificationV2SectionFareStop - } `json:"FareBufferZoneOrigin"` + PTXServiceDTOBusSpecificationV2BusRouteFareStop + } `json:"FareBufferZoneOrigin" xml:"Stop"` // Int32 // @@ -55,7 +55,7 @@ type PTXServiceDTOBusSpecificationV2SectionFareBufferZone struct { // String // // 緩衝區代號 - ZoneID string `json:"ZoneID,omitempty"` + ZoneID string `json:"ZoneID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v2 section fare buffer zone diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_time.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_time.go index a6f32bb5..c435f684 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_time.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_time.go @@ -32,7 +32,7 @@ type PTXServiceDTOBusSpecificationV2ServiceTime struct { // // 站間行駛時間資訊 // Required: true - S2STimes []*PTXServiceDTOBusSpecificationV2TravelTime `json:"S2STimes"` + S2STimes []*PTXServiceDTOBusSpecificationV2TravelTime "json:\"S2STimes\" xml:\"List`1\"" // Int32 // diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go index cc8e44a9..d70bf5e7 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go @@ -25,22 +25,22 @@ type PTXServiceDTOBusSpecificationV2SpecialDay struct { // 連續特殊日期 DatePeriod struct { PTXServiceDTOBusSpecificationV2DatePeriod - } `json:"DatePeriod,omitempty"` + } `json:"DatePeriod,omitempty" xml:"DatePeriod,omitempty"` // Array // // 不連續特殊日期 - Dates []string `json:"Dates"` + Dates []string "json:\"Dates\" xml:\"List`1\"" // String // // 特殊營運描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // integer // // 營運服務狀態代碼 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運'] - ServiceStatus int32 `json:"ServiceStatus,omitempty"` + ServiceStatus string `json:"ServiceStatus,omitempty"` } // Validate validates this p t x service d t o bus specification v2 special day diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_station_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_station_stop.go index 99a21322..ab1f4eeb 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_station_stop.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_station_stop.go @@ -25,7 +25,7 @@ type PTXServiceDTOBusSpecificationV2StationStop struct { // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -33,19 +33,19 @@ type PTXServiceDTOBusSpecificationV2StationStop struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -53,13 +53,13 @@ type PTXServiceDTOBusSpecificationV2StationStop struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` // String // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v2 station stop diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_travel_time.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_travel_time.go index e7c49afa..560be256 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_travel_time.go +++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_travel_time.go @@ -23,13 +23,13 @@ type PTXServiceDTOBusSpecificationV2TravelTime struct { // // 起始站位代碼 // Required: true - FromStationID *string `json:"FromStationID"` + FromStationID *string `json:"FromStationID" xml:"String"` // String // // 起始站牌代碼 // Required: true - FromStopID *string `json:"FromStopID"` + FromStopID *string `json:"FromStopID" xml:"String"` // Int32 // @@ -41,13 +41,13 @@ type PTXServiceDTOBusSpecificationV2TravelTime struct { // // 終點站位代碼 // Required: true - ToStationID *string `json:"ToStationID"` + ToStationID *string `json:"ToStationID" xml:"String"` // String // // 終點站牌代碼 // Required: true - ToStopID *string `json:"ToStopID"` + ToStopID *string `json:"ToStopID" xml:"String"` } // Validate validates this p t x service d t o bus specification v2 travel time diff --git a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go index b757afa0..e5163b66 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go +++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go @@ -22,12 +22,12 @@ type PTXServiceDTOSharedSpecificationV2BaseNameType struct { // String // // 英文名稱 - En string `json:"En,omitempty"` + En string `json:"En,omitempty" xml:"String,omitempty"` // String // // 中文繁體名稱 - ZhTw string `json:"Zh_tw,omitempty"` + ZhTw string `json:"Zh_tw,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o shared specification v2 base name type diff --git a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go index cead550e..47178923 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go +++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go @@ -25,24 +25,24 @@ type PTXServiceDTOSharedSpecificationV2BaseOperator struct { // // 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB) // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者電子信箱 - OperatorEmail string `json:"OperatorEmail,omitempty"` + OperatorEmail string `json:"OperatorEmail,omitempty" xml:"String,omitempty"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // NameType // @@ -50,44 +50,44 @@ type PTXServiceDTOSharedSpecificationV2BaseOperator struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 營運業者編號[交通部票證資料系統定義] // Required: true - OperatorNo *string `json:"OperatorNo"` + OperatorNo *string `json:"OperatorNo" xml:"String"` // String // // 營運業者連絡電話 - OperatorPhone string `json:"OperatorPhone,omitempty"` + OperatorPhone string `json:"OperatorPhone,omitempty" xml:"String,omitempty"` // String // // 營運業者網址鏈結 - OperatorURL string `json:"OperatorUrl,omitempty"` + OperatorURL string `json:"OperatorUrl,omitempty" xml:"String,omitempty"` // String // // 資料提供平台代碼 // Required: true - ProviderID *string `json:"ProviderID"` + ProviderID *string `json:"ProviderID" xml:"String"` // String // // 訂票連絡電話 - ReservationPhone string `json:"ReservationPhone,omitempty"` + ReservationPhone string `json:"ReservationPhone,omitempty" xml:"String,omitempty"` // String // // 訂票網址鏈結 - ReservationURL string `json:"ReservationUrl,omitempty"` + ReservationURL string `json:"ReservationUrl,omitempty" xml:"String,omitempty"` // String // // 營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等) - SubAuthorityCode string `json:"SubAuthorityCode,omitempty"` + SubAuthorityCode string `json:"SubAuthorityCode,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go index 02645203..0312b38d 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go +++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go @@ -22,7 +22,7 @@ type PTXServiceDTOSharedSpecificationV2BasePointType struct { // String // // 地理空間編碼 - GeoHash string `json:"GeoHash,omitempty"` + GeoHash string `json:"GeoHash,omitempty" xml:"String,omitempty"` // 位置緯度(WGS84) PositionLat float64 `json:"PositionLat,omitempty"` diff --git a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go index f9b0a44a..bbd4519f 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go +++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go @@ -26,26 +26,26 @@ type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth struct { // 本平台資料來源轉入狀態 Inbound struct { PTXServiceDTOSharedSpecificationV3BaseInbound - } `json:"Inbound,omitempty"` + } `json:"Inbound,omitempty" xml:"Inbound,omitempty"` // Outbound // // 本平台API狀態 Outbound struct { PTXServiceDTOSharedSpecificationV3BaseOutbound - } `json:"Outbound,omitempty"` + } `json:"Outbound,omitempty" xml:"Outbound,omitempty"` // String // // API服務代碼 // Required: true - ServiceID *string `json:"ServiceID"` + ServiceID *string `json:"ServiceID" xml:"String"` // String // // API服務中文名稱 // Required: true - ServiceName *string `json:"ServiceName"` + ServiceName *string `json:"ServiceName" xml:"String"` } // Validate validates this p t x service d t o shared specification v3 base display health diff --git a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go index 863e370b..a6eac788 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go +++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go @@ -30,13 +30,13 @@ type PTXServiceDTOSharedSpecificationV3BaseInbound struct { // String // // 檢核失敗原因 - Reason string `json:"Reason,omitempty"` + Reason string `json:"Reason,omitempty" xml:"String,omitempty"` // integer // // 檢核結果狀態 : [0:'失敗',1:'成功'] // Required: true - Status *int32 `json:"Status"` + Status *string `json:"Status"` } // Validate validates this p t x service d t o shared specification v3 base inbound diff --git a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go index 2e474918..fc59f967 100644 --- a/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go +++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go @@ -30,13 +30,13 @@ type PTXServiceDTOSharedSpecificationV3BaseOutbound struct { // String // // 檢核失敗原因 - Reason string `json:"Reason,omitempty"` + Reason string `json:"Reason,omitempty" xml:"String,omitempty"` // integer // // 檢核結果狀態 : [0:'失敗',1:'成功'] // Required: true - Status *int32 `json:"Status"` + Status *string `json:"Status"` } // Validate validates this p t x service d t o shared specification v3 base outbound diff --git a/bus/v3/client/city_bus/city_bus_api_route_network2_parameters.go b/bus/v3/client/city_bus/city_bus_api_route_network2_parameters.go new file mode 100644 index 00000000..cdcd7069 --- /dev/null +++ b/bus/v3/client/city_bus/city_bus_api_route_network2_parameters.go @@ -0,0 +1,428 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package city_bus + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewCityBusAPIRouteNetwork2Params creates a new CityBusAPIRouteNetwork2Params object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCityBusAPIRouteNetwork2Params() *CityBusAPIRouteNetwork2Params { + return &CityBusAPIRouteNetwork2Params{ + timeout: cr.DefaultTimeout, + } +} + +// NewCityBusAPIRouteNetwork2ParamsWithTimeout creates a new CityBusAPIRouteNetwork2Params object +// with the ability to set a timeout on a request. +func NewCityBusAPIRouteNetwork2ParamsWithTimeout(timeout time.Duration) *CityBusAPIRouteNetwork2Params { + return &CityBusAPIRouteNetwork2Params{ + timeout: timeout, + } +} + +// NewCityBusAPIRouteNetwork2ParamsWithContext creates a new CityBusAPIRouteNetwork2Params object +// with the ability to set a context for a request. +func NewCityBusAPIRouteNetwork2ParamsWithContext(ctx context.Context) *CityBusAPIRouteNetwork2Params { + return &CityBusAPIRouteNetwork2Params{ + Context: ctx, + } +} + +// NewCityBusAPIRouteNetwork2ParamsWithHTTPClient creates a new CityBusAPIRouteNetwork2Params object +// with the ability to set a custom HTTPClient for a request. +func NewCityBusAPIRouteNetwork2ParamsWithHTTPClient(client *http.Client) *CityBusAPIRouteNetwork2Params { + return &CityBusAPIRouteNetwork2Params{ + HTTPClient: client, + } +} + +/* CityBusAPIRouteNetwork2Params contains all the parameters to send to the API endpoint + for the city bus Api route network 2 operation. + + Typically these are written to a http.Request. +*/ +type CityBusAPIRouteNetwork2Params struct { + + /* DollarCount. + + 查詢數量 + */ + DollarCount *bool + + /* DollarFilter. + + 過濾 + */ + DollarFilter *string + + /* DollarFormat. + + 指定來源格式 + */ + DollarFormat string + + /* DollarOrderby. + + 排序 + */ + DollarOrderby *string + + /* DollarSelect. + + 挑選 + */ + DollarSelect *string + + /* DollarSkip. + + 跳過前幾筆 + */ + DollarSkip *string + + /* DollarTop. + + 取前幾筆 + + Default: 30 + */ + DollarTop *int64 + + /* City. + + 縣市 + */ + City string + + /* Health. + + 加入參數'?health=true'即可查詢此API服務的健康狀態 + */ + Health *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the city bus Api route network 2 params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CityBusAPIRouteNetwork2Params) WithDefaults() *CityBusAPIRouteNetwork2Params { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the city bus Api route network 2 params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CityBusAPIRouteNetwork2Params) SetDefaults() { + var ( + dollarTopDefault = int64(30) + ) + + val := CityBusAPIRouteNetwork2Params{ + DollarTop: &dollarTopDefault, + } + + val.timeout = o.timeout + val.Context = o.Context + val.HTTPClient = o.HTTPClient + *o = val +} + +// WithTimeout adds the timeout to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithTimeout(timeout time.Duration) *CityBusAPIRouteNetwork2Params { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithContext(ctx context.Context) *CityBusAPIRouteNetwork2Params { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithHTTPClient(client *http.Client) *CityBusAPIRouteNetwork2Params { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithDollarCount adds the dollarCount to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithDollarCount(dollarCount *bool) *CityBusAPIRouteNetwork2Params { + o.SetDollarCount(dollarCount) + return o +} + +// SetDollarCount adds the dollarCount to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetDollarCount(dollarCount *bool) { + o.DollarCount = dollarCount +} + +// WithDollarFilter adds the dollarFilter to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRouteNetwork2Params { + o.SetDollarFilter(dollarFilter) + return o +} + +// SetDollarFilter adds the dollarFilter to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetDollarFilter(dollarFilter *string) { + o.DollarFilter = dollarFilter +} + +// WithDollarFormat adds the dollarFormat to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithDollarFormat(dollarFormat string) *CityBusAPIRouteNetwork2Params { + o.SetDollarFormat(dollarFormat) + return o +} + +// SetDollarFormat adds the dollarFormat to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetDollarFormat(dollarFormat string) { + o.DollarFormat = dollarFormat +} + +// WithDollarOrderby adds the dollarOrderby to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRouteNetwork2Params { + o.SetDollarOrderby(dollarOrderby) + return o +} + +// SetDollarOrderby adds the dollarOrderby to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetDollarOrderby(dollarOrderby *string) { + o.DollarOrderby = dollarOrderby +} + +// WithDollarSelect adds the dollarSelect to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRouteNetwork2Params { + o.SetDollarSelect(dollarSelect) + return o +} + +// SetDollarSelect adds the dollarSelect to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetDollarSelect(dollarSelect *string) { + o.DollarSelect = dollarSelect +} + +// WithDollarSkip adds the dollarSkip to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRouteNetwork2Params { + o.SetDollarSkip(dollarSkip) + return o +} + +// SetDollarSkip adds the dollarSkip to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetDollarSkip(dollarSkip *string) { + o.DollarSkip = dollarSkip +} + +// WithDollarTop adds the dollarTop to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithDollarTop(dollarTop *int64) *CityBusAPIRouteNetwork2Params { + o.SetDollarTop(dollarTop) + return o +} + +// SetDollarTop adds the dollarTop to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetDollarTop(dollarTop *int64) { + o.DollarTop = dollarTop +} + +// WithCity adds the city to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithCity(city string) *CityBusAPIRouteNetwork2Params { + o.SetCity(city) + return o +} + +// SetCity adds the city to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetCity(city string) { + o.City = city +} + +// WithHealth adds the health to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) WithHealth(health *string) *CityBusAPIRouteNetwork2Params { + o.SetHealth(health) + return o +} + +// SetHealth adds the health to the city bus Api route network 2 params +func (o *CityBusAPIRouteNetwork2Params) SetHealth(health *string) { + o.Health = health +} + +// WriteToRequest writes these params to a swagger request +func (o *CityBusAPIRouteNetwork2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.DollarCount != nil { + + // query param $count + var qrDollarCount bool + + if o.DollarCount != nil { + qrDollarCount = *o.DollarCount + } + qDollarCount := swag.FormatBool(qrDollarCount) + if qDollarCount != "" { + + if err := r.SetQueryParam("$count", qDollarCount); err != nil { + return err + } + } + } + + if o.DollarFilter != nil { + + // query param $filter + var qrDollarFilter string + + if o.DollarFilter != nil { + qrDollarFilter = *o.DollarFilter + } + qDollarFilter := qrDollarFilter + if qDollarFilter != "" { + + if err := r.SetQueryParam("$filter", qDollarFilter); err != nil { + return err + } + } + } + + // query param $format + qrDollarFormat := o.DollarFormat + qDollarFormat := qrDollarFormat + if qDollarFormat != "" { + + if err := r.SetQueryParam("$format", qDollarFormat); err != nil { + return err + } + } + + if o.DollarOrderby != nil { + + // query param $orderby + var qrDollarOrderby string + + if o.DollarOrderby != nil { + qrDollarOrderby = *o.DollarOrderby + } + qDollarOrderby := qrDollarOrderby + if qDollarOrderby != "" { + + if err := r.SetQueryParam("$orderby", qDollarOrderby); err != nil { + return err + } + } + } + + if o.DollarSelect != nil { + + // query param $select + var qrDollarSelect string + + if o.DollarSelect != nil { + qrDollarSelect = *o.DollarSelect + } + qDollarSelect := qrDollarSelect + if qDollarSelect != "" { + + if err := r.SetQueryParam("$select", qDollarSelect); err != nil { + return err + } + } + } + + if o.DollarSkip != nil { + + // query param $skip + var qrDollarSkip string + + if o.DollarSkip != nil { + qrDollarSkip = *o.DollarSkip + } + qDollarSkip := qrDollarSkip + if qDollarSkip != "" { + + if err := r.SetQueryParam("$skip", qDollarSkip); err != nil { + return err + } + } + } + + if o.DollarTop != nil { + + // query param $top + var qrDollarTop int64 + + if o.DollarTop != nil { + qrDollarTop = *o.DollarTop + } + qDollarTop := swag.FormatInt64(qrDollarTop) + if qDollarTop != "" { + + if err := r.SetQueryParam("$top", qDollarTop); err != nil { + return err + } + } + } + + // path param City + if err := r.SetPathParam("City", o.City); err != nil { + return err + } + + if o.Health != nil { + + // query param health + var qrHealth string + + if o.Health != nil { + qrHealth = *o.Health + } + qHealth := qrHealth + if qHealth != "" { + + if err := r.SetQueryParam("health", qHealth); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/bus/v3/client/city_bus/city_bus_api_route_network2_responses.go b/bus/v3/client/city_bus/city_bus_api_route_network2_responses.go new file mode 100644 index 00000000..50e1fb1d --- /dev/null +++ b/bus/v3/client/city_bus/city_bus_api_route_network2_responses.go @@ -0,0 +1,132 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package city_bus + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/minchao/go-ptx/bus/v3/models" +) + +// CityBusAPIRouteNetwork2Reader is a Reader for the CityBusAPIRouteNetwork2 structure. +type CityBusAPIRouteNetwork2Reader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CityBusAPIRouteNetwork2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCityBusAPIRouteNetwork2OK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 299: + result := NewCityBusAPIRouteNetwork2Status299() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 304: + result := NewCityBusAPIRouteNetwork2NotModified() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCityBusAPIRouteNetwork2OK creates a CityBusAPIRouteNetwork2OK with default headers values +func NewCityBusAPIRouteNetwork2OK() *CityBusAPIRouteNetwork2OK { + return &CityBusAPIRouteNetwork2OK{} +} + +/* CityBusAPIRouteNetwork2OK describes a response with status code 200, with default header values. + +Success +*/ +type CityBusAPIRouteNetwork2OK struct { + Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork +} + +func (o *CityBusAPIRouteNetwork2OK) Error() string { + return fmt.Sprintf("[GET /v3/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetwork2OK %+v", 200, o.Payload) +} +func (o *CityBusAPIRouteNetwork2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork { + return o.Payload +} + +func (o *CityBusAPIRouteNetwork2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCityBusAPIRouteNetwork2Status299 creates a CityBusAPIRouteNetwork2Status299 with default headers values +func NewCityBusAPIRouteNetwork2Status299() *CityBusAPIRouteNetwork2Status299 { + return &CityBusAPIRouteNetwork2Status299{} +} + +/* CityBusAPIRouteNetwork2Status299 describes a response with status code 299, with default header values. + +加入參數'?health=true'即可查詢此API服務的健康狀態 +*/ +type CityBusAPIRouteNetwork2Status299 struct { + Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth +} + +func (o *CityBusAPIRouteNetwork2Status299) Error() string { + return fmt.Sprintf("[GET /v3/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetwork2Status299 %+v", 299, o.Payload) +} +func (o *CityBusAPIRouteNetwork2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth { + return o.Payload +} + +func (o *CityBusAPIRouteNetwork2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCityBusAPIRouteNetwork2NotModified creates a CityBusAPIRouteNetwork2NotModified with default headers values +func NewCityBusAPIRouteNetwork2NotModified() *CityBusAPIRouteNetwork2NotModified { + return &CityBusAPIRouteNetwork2NotModified{} +} + +/* CityBusAPIRouteNetwork2NotModified describes a response with status code 304, with default header values. + +服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content +*/ +type CityBusAPIRouteNetwork2NotModified struct { +} + +func (o *CityBusAPIRouteNetwork2NotModified) Error() string { + return fmt.Sprintf("[GET /v3/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetwork2NotModified ", 304) +} + +func (o *CityBusAPIRouteNetwork2NotModified) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/bus/v3/client/city_bus/city_bus_client.go b/bus/v3/client/city_bus/city_bus_client.go index 1d651045..78db51fd 100644 --- a/bus/v3/client/city_bus/city_bus_client.go +++ b/bus/v3/client/city_bus/city_bus_client.go @@ -60,7 +60,7 @@ type ClientService interface { CityBusAPIRouteFare2(params *CityBusAPIRouteFare2Params, opts ...ClientOption) (*CityBusAPIRouteFare2OK, *CityBusAPIRouteFare2Status299, error) - CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams, opts ...ClientOption) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error) + CityBusAPIRouteNetwork2(params *CityBusAPIRouteNetwork2Params, opts ...ClientOption) (*CityBusAPIRouteNetwork2OK, *CityBusAPIRouteNetwork2Status299, error) CityBusAPIRoute2(params *CityBusAPIRoute2Params, opts ...ClientOption) (*CityBusAPIRoute2OK, *CityBusAPIRoute2Status299, error) @@ -689,22 +689,22 @@ func (a *Client) CityBusAPIRouteFare2(params *CityBusAPIRouteFare2Params, opts . } /* - CityBusAPIRouteNetwork 取得指定s 縣市 的市區公車路線網路拓撲資料 + CityBusAPIRouteNetwork2 取得指定s 縣市 的市區公車路線網路拓撲資料 */ -func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams, opts ...ClientOption) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error) { +func (a *Client) CityBusAPIRouteNetwork2(params *CityBusAPIRouteNetwork2Params, opts ...ClientOption) (*CityBusAPIRouteNetwork2OK, *CityBusAPIRouteNetwork2Status299, error) { // TODO: Validate the params before sending if params == nil { - params = NewCityBusAPIRouteNetworkParams() + params = NewCityBusAPIRouteNetwork2Params() } op := &runtime.ClientOperation{ - ID: "CityBusApi_RouteNetwork", + ID: "CityBusApi_RouteNetwork_2", Method: "GET", PathPattern: "/v3/Bus/RouteNetwork/City/{City}", ProducesMediaTypes: []string{"application/json", "application/xml"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &CityBusAPIRouteNetworkReader{formats: a.formats}, + Reader: &CityBusAPIRouteNetwork2Reader{formats: a.formats}, Context: params.Context, Client: params.HTTPClient, } @@ -717,9 +717,9 @@ func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams, op return nil, nil, err } switch value := result.(type) { - case *CityBusAPIRouteNetworkOK: + case *CityBusAPIRouteNetwork2OK: return value, nil, nil - case *CityBusAPIRouteNetworkStatus299: + case *CityBusAPIRouteNetwork2Status299: return nil, value, nil } // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a1_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a1_data.go index 372408ae..7e6bda85 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a1_data.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a1_data.go @@ -31,25 +31,25 @@ type PTXServiceDTOBusSpecificationV3A1Data struct { // Required: true BusPosition struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"BusPosition"` + } `json:"BusPosition" xml:"PointType"` // integer // // 行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知'] // Required: true - BusStatus *int32 `json:"BusStatus"` + BusStatus *string `json:"BusStatus"` // integer // // 車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // integer // // 勤務狀態 : [0:'正常',1:'開始',2:'結束'] // Required: true - DutyStatus *int32 `json:"DutyStatus"` + DutyStatus *string `json:"DutyStatus"` // DateTime // @@ -64,32 +64,32 @@ type PTXServiceDTOBusSpecificationV3A1Data struct { // integer // // 資料型態種類 : [0:'未知',1:'定期',2:'非定期'] - MessageType int32 `json:"MessageType,omitempty"` + MessageType string `json:"MessageType,omitempty"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // NameType // // 營運業者名稱 OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName,omitempty"` + } `json:"OperatorName,omitempty" xml:"NameType,omitempty"` // String // // 車牌號碼 // Required: true - PlateNumb *string `json:"PlateNumb"` + PlateNumb *string `json:"PlateNumb" xml:"String"` // DateTime // @@ -101,19 +101,19 @@ type PTXServiceDTOBusSpecificationV3A1Data struct { // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // // 路線名稱 RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - RouteUID string `json:"RouteUID,omitempty"` + RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"` // Double // @@ -124,19 +124,19 @@ type PTXServiceDTOBusSpecificationV3A1Data struct { // String // // 地區既用中之附屬路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // DateTime // @@ -147,12 +147,12 @@ type PTXServiceDTOBusSpecificationV3A1Data struct { // String // // 班次代碼 - TripID string `json:"TripID,omitempty"` + TripID string `json:"TripID,omitempty" xml:"String,omitempty"` // integer // // 車輛種類 : [1:'一般',2:'復康巴士',3:'專車',4:'其他'] - VehicleType int32 `json:"VehicleType,omitempty"` + VehicleType string `json:"VehicleType,omitempty"` } // Validate validates this p t x service d t o bus specification v3 a1 data diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a2_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a2_data.go index d9a9bfdc..7fcbfaf9 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a2_data.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a2_data.go @@ -23,23 +23,23 @@ type PTXServiceDTOBusSpecificationV3A2Data struct { // // 進站離站 : [0:'離站',1:'進站'] // Required: true - A2EventType *int32 `json:"A2EventType"` + A2EventType *string `json:"A2EventType"` // integer // // 行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知'] - BusStatus int32 `json:"BusStatus,omitempty"` + BusStatus string `json:"BusStatus,omitempty"` // integer // // 車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // integer // // 勤務狀態 : [0:'正常',1:'開始',2:'結束'] - DutyStatus int32 `json:"DutyStatus,omitempty"` + DutyStatus string `json:"DutyStatus,omitempty"` // DateTime // @@ -54,32 +54,32 @@ type PTXServiceDTOBusSpecificationV3A2Data struct { // integer // // 資料型態種類 : [0:'未知',1:'定期',2:'非定期'] - MessageType int32 `json:"MessageType,omitempty"` + MessageType string `json:"MessageType,omitempty"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // NameType // // 營運業者名稱 OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName,omitempty"` + } `json:"OperatorName,omitempty" xml:"NameType,omitempty"` // String // // 車牌號碼 // Required: true - PlateNumb *string `json:"PlateNumb"` + PlateNumb *string `json:"PlateNumb" xml:"String"` // DateTime // @@ -91,54 +91,54 @@ type PTXServiceDTOBusSpecificationV3A2Data struct { // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // // 路線名稱 RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - RouteUID string `json:"RouteUID,omitempty"` + RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之站牌代號(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // String // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - StopUID string `json:"StopUID,omitempty"` + StopUID string `json:"StopUID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // DateTime // @@ -149,12 +149,12 @@ type PTXServiceDTOBusSpecificationV3A2Data struct { // String // // 班次代碼 - TripID string `json:"TripID,omitempty"` + TripID string `json:"TripID,omitempty" xml:"String,omitempty"` // integer // // 車輛種類 : [1:'一般',2:'復康巴士',3:'專車',4:'其他'] - VehicleType int32 `json:"VehicleType,omitempty"` + VehicleType string `json:"VehicleType,omitempty"` } // Validate validates this p t x service d t o bus specification v3 a2 data diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_alert.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_alert.go index bad03b5b..ac4b2c33 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_alert.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_alert.go @@ -23,22 +23,22 @@ type PTXServiceDTOBusSpecificationV3Alert struct { // // 通阻事件原單位發布代碼 // Required: true - AlertID *string `json:"AlertID"` + AlertID *string `json:"AlertID" xml:"String"` // String // // 詳細描述網站連結 - AlertURL string `json:"AlertURL,omitempty"` + AlertURL string `json:"AlertURL,omitempty" xml:"String,omitempty"` // String // // 事件描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 影響方向 - Direction string `json:"Direction,omitempty"` + Direction string `json:"Direction,omitempty" xml:"String,omitempty"` // DateTime // @@ -56,7 +56,7 @@ type PTXServiceDTOBusSpecificationV3Alert struct { // Required: true Scope struct { PTXServiceDTOBusSpecificationV3Scope - } `json:"Scope"` + } `json:"Scope" xml:"Scope"` // DateTime // @@ -71,7 +71,7 @@ type PTXServiceDTOBusSpecificationV3Alert struct { // String // // 通阻標題 - Title string `json:"Title,omitempty"` + Title string `json:"Title,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 alert diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go index 3d024dd5..70488488 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go @@ -32,25 +32,25 @@ type PTXServiceDTOBusSpecificationV3DailyTimeTable struct { // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -58,36 +58,36 @@ type PTXServiceDTOBusSpecificationV3DailyTimeTable struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // Array // // 預定班表 - Timetables []*PTXServiceDTOBusSpecificationV3TimeTable `json:"Timetables"` + Timetables []*PTXServiceDTOBusSpecificationV3TimeTable "json:\"Timetables\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v3 daily time table diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_depot.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_depot.go index db3492d0..6eff9cc9 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_depot.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_depot.go @@ -23,13 +23,13 @@ type PTXServiceDTOBusSpecificationV3Depot struct { // // 營業所地址 // Required: true - DepotAddress *string `json:"DepotAddress"` + DepotAddress *string `json:"DepotAddress" xml:"String"` // String // // 營業所代碼 // Required: true - DepotID *string `json:"DepotID"` + DepotID *string `json:"DepotID" xml:"String"` // NameType // @@ -37,13 +37,13 @@ type PTXServiceDTOBusSpecificationV3Depot struct { // Required: true DepotName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DepotName"` + } `json:"DepotName" xml:"NameType"` // String // // 營業所電話 // Required: true - DepotPhone *string `json:"DepotPhone"` + DepotPhone *string `json:"DepotPhone" xml:"String"` // PointType // @@ -51,13 +51,13 @@ type PTXServiceDTOBusSpecificationV3Depot struct { // Required: true DepotPosition struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"DepotPosition"` + } `json:"DepotPosition" xml:"PointType"` // String // // 營業所唯一識別代碼,規則為 {業管機關簡碼} + {DepotID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - DepotUID *string `json:"DepotUID"` + DepotUID *string `json:"DepotUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 depot diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go index a4fd2f0d..f4390a17 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go @@ -24,13 +24,13 @@ type PTXServiceDTOBusSpecificationV3DisplayStopOfRoute struct { // // 車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -38,19 +38,19 @@ type PTXServiceDTOBusSpecificationV3DisplayStopOfRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // Array // // 路線站序資料 // Required: true - Stops []*PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop `json:"Stops"` + Stops []*PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop "json:\"Stops\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v3 display stop of route diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route_stop.go index 6ee718a8..1d377c12 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route_stop.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route_stop.go @@ -25,7 +25,7 @@ type PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop struct { // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -33,7 +33,7 @@ type PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` // PointType // @@ -41,7 +41,7 @@ type PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop struct { // Required: true StopPosition struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"StopPosition"` + } `json:"StopPosition" xml:"PointType"` // Int32 // @@ -53,7 +53,7 @@ type PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop struct { // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 display stop of route stop diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go index 3c3c012d..2998bbce 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go @@ -24,25 +24,25 @@ type PTXServiceDTOBusSpecificationV3FirstLastTripInfo struct { // // 車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // Array // // 路線首末班車資訊 // Required: true - FirstLastTrips []*PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip `json:"FirstLastTrips"` + FirstLastTrips []*PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip "json:\"FirstLastTrips\" xml:\"List`1\"" // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -50,30 +50,30 @@ type PTXServiceDTOBusSpecificationV3FirstLastTripInfo struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 first last trip info diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_first_last_trip.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_first_last_trip.go index 5f006665..b45069cc 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_first_last_trip.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_first_last_trip.go @@ -23,13 +23,13 @@ type PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip struct { // // 頭班車發車時間(HH:mm) // Required: true - FirstTripDepTime *string `json:"FirstTripDepTime"` + FirstTripDepTime *string `json:"FirstTripDepTime" xml:"String"` // String // // 末班車發車時間(HH:mm) // Required: true - LastTripDepTime *string `json:"LastTripDepTime"` + LastTripDepTime *string `json:"LastTripDepTime" xml:"String"` // ServiceDay // @@ -37,7 +37,7 @@ type PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip struct { // Required: true ServiceDay struct { PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` } // Validate validates this p t x service d t o bus specification v3 first last trip info first last trip diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_service_day.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_service_day.go index aa9f5359..0dd9ce5c 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_service_day.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_service_day.go @@ -49,7 +49,7 @@ type PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay struct { // String // // 服務日標籤 - ServiceTag string `json:"ServiceTag,omitempty"` + ServiceTag string `json:"ServiceTag,omitempty" xml:"String,omitempty"` // Boolean // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_n1_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_n1_data.go index b10e7768..ee917161 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_n1_data.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_n1_data.go @@ -22,7 +22,7 @@ type PTXServiceDTOBusSpecificationV3N1Data struct { // String // // 車輛目前所在站牌代碼 - CurrentStop string `json:"CurrentStop,omitempty"` + CurrentStop string `json:"CurrentStop,omitempty" xml:"String,omitempty"` // DateTime // @@ -32,20 +32,20 @@ type PTXServiceDTOBusSpecificationV3N1Data struct { // String // // 迄點站站牌ID代碼 - DestinationStopID string `json:"DestinationStopID,omitempty"` + DestinationStopID string `json:"DestinationStopID,omitempty" xml:"String,omitempty"` // NameType // // 迄點站站牌名稱 DestinationStopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DestinationStopName,omitempty"` + } `json:"DestinationStopName,omitempty" xml:"NameType,omitempty"` // integer // // 車輛去返程(該方向指的是此公車運具目前所在路線的去返程方向,非指站牌所在路線的去返程方向,使用時請加值業者多加注意) : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // 到站時間預估(秒) [當StopStatus値為1~4或PlateNumb値為-1時,EstimateTime値為空値; 反之,EstimateTime有値] EstimateTime int32 `json:"EstimateTime,omitempty"` @@ -56,7 +56,7 @@ type PTXServiceDTOBusSpecificationV3N1Data struct { // String // // 車牌號碼 [値為値為-1時,表示目前該站牌無車輛行駛] - PlateNumb string `json:"PlateNumb,omitempty"` + PlateNumb string `json:"PlateNumb,omitempty" xml:"String,omitempty"` // DateTime // @@ -68,24 +68,24 @@ type PTXServiceDTOBusSpecificationV3N1Data struct { // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // // 路線名稱 RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` // String // // 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢 - RouteUID string `json:"RouteUID,omitempty"` + RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"` // String // // 預排班表時間 - ScheduledTime string `json:"ScheduledTime,omitempty"` + ScheduledTime string `json:"ScheduledTime,omitempty" xml:"String,omitempty"` // 路線經過站牌之順序 StopCountDown int32 `json:"StopCountDown,omitempty"` @@ -94,41 +94,41 @@ type PTXServiceDTOBusSpecificationV3N1Data struct { // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // integer // // 車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運'] - StopStatus int32 `json:"StopStatus,omitempty"` + StopStatus string `json:"StopStatus,omitempty"` // String // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - StopUID string `json:"StopUID,omitempty"` + StopUID string `json:"StopUID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network.go index 0eba0e90..c27791cc 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network.go @@ -23,13 +23,13 @@ type PTXServiceDTOBusSpecificationV3Network struct { // Array // // 適地性路網圖資網址URL - LBSMapURLs []*PTXServiceDTOBusSpecificationV3NetworkLBSMapURL `json:"LBSMapURLs"` + LBSMapURLs []*PTXServiceDTOBusSpecificationV3NetworkLBSMapURL "json:\"LBSMapURLs\" xml:\"List`1\"" // String // // 公車路網代碼 // Required: true - NetworkID *string `json:"NetworkID"` + NetworkID *string `json:"NetworkID" xml:"String"` // NetworkMapURL // @@ -37,7 +37,7 @@ type PTXServiceDTOBusSpecificationV3Network struct { // Required: true NetworkMapURL struct { PTXServiceDTOBusSpecificationV3NetworkMapURL - } `json:"NetworkMapURL"` + } `json:"NetworkMapURL" xml:"NetworkMapURL"` // NameType // @@ -45,7 +45,7 @@ type PTXServiceDTOBusSpecificationV3Network struct { // Required: true NetworkName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"NetworkName"` + } `json:"NetworkName" xml:"NameType"` } // Validate validates this p t x service d t o bus specification v3 network diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_l_b_s_map_url.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_l_b_s_map_url.go index 60405cb6..a8074b13 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_l_b_s_map_url.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_l_b_s_map_url.go @@ -21,24 +21,24 @@ type PTXServiceDTOBusSpecificationV3NetworkLBSMapURL struct { // String // // 路網圖網址URL(英文版) - En string `json:"En,omitempty"` + En string `json:"En,omitempty" xml:"String,omitempty"` // PointType // // 適地性圖資貼放的位置 LBSLocation struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"LBSLocation,omitempty"` + } `json:"LBSLocation,omitempty" xml:"PointType,omitempty"` // String // // 路網圖 - MapName string `json:"MapName,omitempty"` + MapName string `json:"MapName,omitempty" xml:"String,omitempty"` // String // // 路網圖網址URL(中文版) - ZhTw string `json:"Zh_tw,omitempty"` + ZhTw string `json:"Zh_tw,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 network l b s map URL diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_map_url.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_map_url.go index 2f29e969..5eb7bae3 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_map_url.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_map_url.go @@ -23,7 +23,7 @@ type PTXServiceDTOBusSpecificationV3NetworkMapURL struct { // // 路網圖名稱 // Required: true - MapName *string `json:"MapName"` + MapName *string `json:"MapName" xml:"String"` // NameType // @@ -31,7 +31,7 @@ type PTXServiceDTOBusSpecificationV3NetworkMapURL struct { // Required: true MapNameURL struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"MapNameURL"` + } `json:"MapNameURL" xml:"NameType"` } // Validate validates this p t x service d t o bus specification v3 network map URL diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_news.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_news.go index 41d65d1e..1cc21f21 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_news.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_news.go @@ -22,18 +22,18 @@ type PTXServiceDTOBusSpecificationV3News struct { // String // // 相關網站連結 - AttachmentURL string `json:"AttachmentURL,omitempty"` + AttachmentURL string `json:"AttachmentURL,omitempty" xml:"String,omitempty"` // String // // 發布單位 - Department string `json:"Department,omitempty"` + Department string `json:"Department,omitempty" xml:"String,omitempty"` // String // // 內容描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // DateTime // @@ -44,24 +44,24 @@ type PTXServiceDTOBusSpecificationV3News struct { // // 語系 // Required: true - Language *string `json:"Language"` + Language *string `json:"Language" xml:"String"` // String // // 消息類別= ['1: 最新消息', '2: 新聞稿', '3: 營運資訊', '4: 轉乘資訊', '5: 活動訊息', '6: 系統公告', '99: 其他'] // Required: true - NewsCategory *string `json:"NewsCategory"` + NewsCategory *string `json:"NewsCategory" xml:"String"` // String // // 最新消息原單位發布代碼 // Required: true - NewsID *string `json:"NewsID"` + NewsID *string `json:"NewsID" xml:"String"` // String // // 報導網站連結 - NewsURL string `json:"NewsURL,omitempty"` + NewsURL string `json:"NewsURL,omitempty" xml:"String,omitempty"` // DateTime // @@ -83,7 +83,7 @@ type PTXServiceDTOBusSpecificationV3News struct { // // 消息標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 news diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_operator.go index df106050..74bc1093 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_operator.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_operator.go @@ -22,30 +22,30 @@ type PTXServiceDTOBusSpecificationV3Operator struct { // String // // 營運業者票價查詢網站連結 - FareURL string `json:"FareURL,omitempty"` + FareURL string `json:"FareURL,omitempty" xml:"String,omitempty"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者電子信箱 // Required: true - OperatorEmail *string `json:"OperatorEmail"` + OperatorEmail *string `json:"OperatorEmail" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 營運業者Logo網址 - OperatorLogoURL string `json:"OperatorLogoURL,omitempty"` + OperatorLogoURL string `json:"OperatorLogoURL,omitempty" xml:"String,omitempty"` // NameType // @@ -53,39 +53,39 @@ type PTXServiceDTOBusSpecificationV3Operator struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 營運業者編號[交通部票證資料系統定義] - OperatorNo string `json:"OperatorNo,omitempty"` + OperatorNo string `json:"OperatorNo,omitempty" xml:"String,omitempty"` // String // // 營運業者連絡電話 // Required: true - OperatorPhone *string `json:"OperatorPhone"` + OperatorPhone *string `json:"OperatorPhone" xml:"String"` // String // // 營運業者網址鏈結 // Required: true - OperatorURL *string `json:"OperatorUrl"` + OperatorURL *string `json:"OperatorUrl" xml:"String"` // String // // 訂票連絡電話 - ReservationPhone string `json:"ReservationPhone,omitempty"` + ReservationPhone string `json:"ReservationPhone,omitempty" xml:"String,omitempty"` // String // // 訂票網址鏈結 - ReservationURL string `json:"ReservationUrl,omitempty"` + ReservationURL string `json:"ReservationUrl,omitempty" xml:"String,omitempty"` // String // // 營運業者所屬業管子機關簡碼 - SubAuthorityCode string `json:"SubAuthorityCode,omitempty"` + SubAuthorityCode string `json:"SubAuthorityCode,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 operator diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route.go index a9a82f95..e142e87c 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route.go @@ -28,7 +28,7 @@ type PTXServiceDTOBusSpecificationV3Route struct { // Required: true DepartureStopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DepartureStopName"` + } `json:"DepartureStopName" xml:"NameType"` // NameType // @@ -36,7 +36,7 @@ type PTXServiceDTOBusSpecificationV3Route struct { // Required: true DestinationStopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DestinationStopName"` + } `json:"DestinationStopName" xml:"NameType"` // Stop // @@ -44,19 +44,19 @@ type PTXServiceDTOBusSpecificationV3Route struct { // Required: true EndStop struct { PTXServiceDTOBusSpecificationV3RouteStop - } `json:"EndStop"` + } `json:"EndStop" xml:"Stop"` // NameType // // 計費緩衝區敘述 FareBufferZoneDescription struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"FareBufferZoneDescription,omitempty"` + } `json:"FareBufferZoneDescription,omitempty" xml:"NameType,omitempty"` // String // // 收費資訊說明網址 - FareURL string `json:"FareURL,omitempty"` + FareURL string `json:"FareURL,omitempty" xml:"String,omitempty"` // Boolean // @@ -73,18 +73,18 @@ type PTXServiceDTOBusSpecificationV3Route struct { // String // // 路線公車動態資訊網址 - LiveBusURL string `json:"LiveBusURL,omitempty"` + LiveBusURL string `json:"LiveBusURL,omitempty" xml:"String,omitempty"` // Array // // 營運業者 // Required: true - Operators []*PTXServiceDTOBusSpecificationV3RouteOperator `json:"Operators"` + Operators []*PTXServiceDTOBusSpecificationV3RouteOperator "json:\"Operators\" xml:\"List`1\"" // String // // 路線描述 - RouteDescription string `json:"RouteDescription,omitempty"` + RouteDescription string `json:"RouteDescription,omitempty" xml:"String,omitempty"` // 路線旅行長度 RouteDistance float32 `json:"RouteDistance,omitempty"` @@ -93,19 +93,19 @@ type PTXServiceDTOBusSpecificationV3Route struct { // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // // 路線長名稱 RouteLongName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteLongName,omitempty"` + } `json:"RouteLongName,omitempty" xml:"NameType,omitempty"` // String // // 路線簡圖網址 - RouteMapImageURL string `json:"RouteMapImageURL,omitempty"` + RouteMapImageURL string `json:"RouteMapImageURL,omitempty" xml:"String,omitempty"` // NameType // @@ -113,24 +113,24 @@ type PTXServiceDTOBusSpecificationV3Route struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // integer // // 公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運'] // Required: true - RouteType *int32 `json:"RouteType"` + RouteType *string `json:"RouteType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 路線資訊說明網址 - RouteURL string `json:"RouteURL,omitempty"` + RouteURL string `json:"RouteURL,omitempty" xml:"String,omitempty"` // ServiceType // @@ -138,7 +138,7 @@ type PTXServiceDTOBusSpecificationV3Route struct { // Required: true ServiceType struct { PTXServiceDTOBusSpecificationV3ServiceType - } `json:"ServiceType"` + } `json:"ServiceType" xml:"ServiceType"` // Stop // @@ -146,7 +146,7 @@ type PTXServiceDTOBusSpecificationV3Route struct { // Required: true StartStop struct { PTXServiceDTOBusSpecificationV3RouteStop - } `json:"StartStop"` + } `json:"StartStop" xml:"Stop"` // NameType // @@ -154,7 +154,7 @@ type PTXServiceDTOBusSpecificationV3Route struct { // Required: true TicketPriceDescription struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TicketPriceDescription"` + } `json:"TicketPriceDescription" xml:"NameType"` } // Validate validates this p t x service d t o bus specification v3 route diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare.go index c231b411..3d2deb70 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare.go @@ -26,75 +26,75 @@ type PTXServiceDTOBusSpecificationV3RouteFare struct { // // 描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費'] // Required: true - FarePricingType *int32 `json:"FarePricingType"` + FarePricingType *string `json:"FarePricingType"` // integer // // 該收費方式是否應用到所有附屬路線 : [0:'否',1:'是'] // Required: true - IsForAllSubRoutes *int32 `json:"IsForAllSubRoutes"` + IsForAllSubRoutes *string `json:"IsForAllSubRoutes"` // integer // // 是否為免費公車 : [0:'否',1:'是'] // Required: true - IsFreeBus *int32 `json:"IsFreeBus"` + IsFreeBus *string `json:"IsFreeBus"` // Array // // 起迄站間計費 - ODFares []*PTXServiceDTOBusSpecificationV3RouteFareODFare `json:"ODFares"` + ODFares []*PTXServiceDTOBusSpecificationV3RouteFareODFare "json:\"ODFares\" xml:\"List`1\"" // String // // 營運業者代碼 - OperatorID string `json:"OperatorID,omitempty"` + OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // // 路線名稱 RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // Array // // 段次計費 - SectionFares []*PTXServiceDTOBusSpecificationV3RouteFareSectionFare `json:"SectionFares"` + SectionFares []*PTXServiceDTOBusSpecificationV3RouteFareSectionFare "json:\"SectionFares\" xml:\"List`1\"" // Array // // 計費站區間計費 - StageFares []*PTXServiceDTOBusSpecificationV3RouteFareStageFare `json:"StageFares"` + StageFares []*PTXServiceDTOBusSpecificationV3RouteFareStageFare "json:\"StageFares\" xml:\"List`1\"" // String // // 地區既用中之附屬路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 route fare diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare.go index 873c345f..f9c1d597 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare.go @@ -26,19 +26,19 @@ type PTXServiceDTOBusSpecificationV3RouteFareODFare struct { // Required: true DestinationStops struct { PTXServiceDTOBusSpecificationV3RouteFareODFareOD - } `json:"DestinationStops"` + } `json:"DestinationStops" xml:"OD"` // integer // // 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // Array // // 計費價格 // Required: true - Fares []*PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD `json:"Fares"` + Fares []*PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD "json:\"Fares\" xml:\"List`1\"" // OD // @@ -46,7 +46,7 @@ type PTXServiceDTOBusSpecificationV3RouteFareODFare struct { // Required: true OriginStops struct { PTXServiceDTOBusSpecificationV3RouteFareODFareOD - } `json:"OriginStops"` + } `json:"OriginStops" xml:"OD"` } // Validate validates this p t x service d t o bus specification v3 route fare o d fare diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_fare_o_d.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_fare_o_d.go index 6ab43bba..225ba1bc 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_fare_o_d.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_fare_o_d.go @@ -23,17 +23,19 @@ type PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD struct { // // 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票'] // Required: true - FareClass *int32 `json:"FareClass"` + FareClass *string `json:"FareClass"` // String + // + // 計費價格 // Required: true - Price *string `json:"Price"` + Price *string `json:"Price" xml:"String"` // integer // // 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期'] // Required: true - TicketType *int32 `json:"TicketType"` + TicketType *string `json:"TicketType"` } // Validate validates this p t x service d t o bus specification v3 route fare o d fare fare o d diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_o_d.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_o_d.go index 123e46cc..e99f23b8 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_o_d.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_o_d.go @@ -20,17 +20,23 @@ import ( type PTXServiceDTOBusSpecificationV3RouteFareODFareOD struct { // String + // + // 計費起點站牌代碼 // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType + // + // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // String + // + // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 route fare o d fare o d diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare.go index 6bebe5dc..80f3f395 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare.go @@ -24,13 +24,13 @@ type PTXServiceDTOBusSpecificationV3RouteFareSectionFare struct { // // 緩衝區資訊 // Required: true - BufferZones []*PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone `json:"BufferZones"` + BufferZones []*PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone "json:\"BufferZones\" xml:\"List`1\"" // Array // // 每段收費資訊 // Required: true - Fares []*PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection `json:"Fares"` + Fares []*PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection "json:\"Fares\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v3 route fare section fare diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_buffer_zone.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_buffer_zone.go index af6e4747..8cb9c8db 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_buffer_zone.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_buffer_zone.go @@ -20,32 +20,42 @@ import ( type PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone struct { // String - BufferZoneDescription string `json:"BufferZoneDescription,omitempty"` + // + // 收費緩衝區描述 + BufferZoneDescription string `json:"BufferZoneDescription,omitempty" xml:"String,omitempty"` // integer // - // 公車路線去返程列舉值,其中迴圈表示該路線去程終點站不休息直接返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] + // 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // FareBufferZone + // + // 緩衝區訖點 // Required: true FareBufferZoneDestination struct { PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone - } `json:"FareBufferZoneDestination"` + } `json:"FareBufferZoneDestination" xml:"FareBufferZone"` // FareBufferZone + // + // 緩衝區起點 // Required: true FareBufferZoneOrigin struct { PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone - } `json:"FareBufferZoneOrigin"` + } `json:"FareBufferZoneOrigin" xml:"FareBufferZone"` // String + // + // 緩衝區順序 // Required: true - SectionSequence *string `json:"SectionSequence"` + SectionSequence *string `json:"SectionSequence" xml:"String"` // String - ZoneID string `json:"ZoneID,omitempty"` + // + // 緩衝區代號 + ZoneID string `json:"ZoneID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 route fare section fare buffer zone diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_buffer_zone.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_buffer_zone.go index 3118c3f3..005ab2c9 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_buffer_zone.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_buffer_zone.go @@ -20,17 +20,23 @@ import ( type PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone struct { // String + // + // 緩衝區站牌代碼 // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType + // + // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // String + // + // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 route fare section fare fare buffer zone diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_section.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_section.go index 12b0cecc..2cdd6da5 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_section.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_section.go @@ -23,17 +23,19 @@ type PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection struct { // // 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票'] // Required: true - FareClass *int32 `json:"FareClass"` + FareClass *string `json:"FareClass"` // String + // + // 計費價格 // Required: true - Price *string `json:"Price"` + Price *string `json:"Price" xml:"String"` // integer // // 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期'] // Required: true - TicketType *int32 `json:"TicketType"` + TicketType *string `json:"TicketType"` } // Validate validates this p t x service d t o bus specification v3 route fare section fare fare section diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare.go index 4f1e0eef..7d8d152b 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare.go @@ -26,19 +26,19 @@ type PTXServiceDTOBusSpecificationV3RouteFareStageFare struct { // Required: true DestinationStage struct { PTXServiceDTOBusSpecificationV3RouteFareStageFareStage - } `json:"DestinationStage"` + } `json:"DestinationStage" xml:"Stage"` // integer // // 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // Array // // 票價內容 // Required: true - Fares []*PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage `json:"Fares"` + Fares []*PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage "json:\"Fares\" xml:\"List`1\"" // Stage // @@ -46,7 +46,7 @@ type PTXServiceDTOBusSpecificationV3RouteFareStageFare struct { // Required: true OriginStage struct { PTXServiceDTOBusSpecificationV3RouteFareStageFareStage - } `json:"OriginStage"` + } `json:"OriginStage" xml:"Stage"` } // Validate validates this p t x service d t o bus specification v3 route fare stage fare diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_discount_period.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_discount_period.go index 3bd6e3ae..25418551 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_discount_period.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_discount_period.go @@ -16,22 +16,30 @@ import ( // PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod DiscountPeriod // +// 優惠時段 +// // swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+DiscountPeriod type PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod struct { // String + // + // 結束時間(HH:mm制) // Required: true - EndTime *string `json:"EndTime"` + EndTime *string `json:"EndTime" xml:"String"` // ServiceDay + // + // 營運日型態 // Required: true ServiceDay struct { PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // String + // + // 開始時間(HH:mm制) // Required: true - StartTime *string `json:"StartTime"` + StartTime *string `json:"StartTime" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 route fare stage fare discount period diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_fare_stage.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_fare_stage.go index b16ba806..402e12ad 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_fare_stage.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_fare_stage.go @@ -17,29 +17,37 @@ import ( // PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage FareStage // +// 票價內容 +// // swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+FareStage type PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage struct { // Array - DiscountPeriods []*PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod `json:"DiscountPeriods"` + // + // 優惠時段 + DiscountPeriods []*PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod "json:\"DiscountPeriods\" xml:\"List`1\"" // integer // // 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票'] - FareClass int32 `json:"FareClass,omitempty"` + FareClass string `json:"FareClass,omitempty"` // String + // + // 票價名稱 // Required: true - FareName *string `json:"FareName"` + FareName *string `json:"FareName" xml:"String"` // String - Price string `json:"Price,omitempty"` + // + // 計費價格 + Price string `json:"Price,omitempty" xml:"String,omitempty"` // integer // // 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期'] // Required: true - TicketType *int32 `json:"TicketType"` + TicketType *string `json:"TicketType"` } // Validate validates this p t x service d t o bus specification v3 route fare stage fare fare stage diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_service_day.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_service_day.go index 0f49be29..c0f48537 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_service_day.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_service_day.go @@ -16,74 +16,78 @@ import ( // PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay ServiceDay // +// 服務日型態 +// // swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+ServiceDay type PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay struct { // integer // - // [0:'否',1:'是'] - DayAfterHoliday int32 `json:"DayAfterHoliday,omitempty"` + // 假日後一日是否營運 : [0:'否',1:'是'] + DayAfterHoliday string `json:"DayAfterHoliday,omitempty"` // integer // - // [0:'否',1:'是'] - DayBeforeHoliday int32 `json:"DayBeforeHoliday,omitempty"` + // 假日前一日是否營運 : [0:'否',1:'是'] + DayBeforeHoliday string `json:"DayBeforeHoliday,omitempty"` // integer // - // [0:'否',1:'是'] + // 星期五是否營運 : [0:'否',1:'是'] // Required: true - Friday *int32 `json:"Friday"` + Friday *string `json:"Friday"` // integer // - // [0:'否',1:'是'] + // 星期一是否營運 : [0:'否',1:'是'] // Required: true - Monday *int32 `json:"Monday"` + Monday *string `json:"Monday"` // integer // - // [0:'否',1:'是'] - NationalHolidays int32 `json:"NationalHolidays,omitempty"` + // 國定假日是否營運 : [0:'否',1:'是'] + NationalHolidays string `json:"NationalHolidays,omitempty"` // integer // - // [0:'否',1:'是'] + // 星期六是否營運 : [0:'否',1:'是'] // Required: true - Saturday *int32 `json:"Saturday"` + Saturday *string `json:"Saturday"` // String + // + // 服務日標籤 // Required: true - ServiceTag *string `json:"ServiceTag"` + ServiceTag *string `json:"ServiceTag" xml:"String"` // integer // - // [0:'否',1:'是'] + // 星期日是否營運 : [0:'否',1:'是'] // Required: true - Sunday *int32 `json:"Sunday"` + Sunday *string `json:"Sunday"` // integer // - // [0:'否',1:'是'] + // 星期四是否營運 : [0:'否',1:'是'] // Required: true - Thursday *int32 `json:"Thursday"` + Thursday *string `json:"Thursday"` // integer // - // [0:'否',1:'是'] + // 星期二是否營運 : [0:'否',1:'是'] // Required: true - Tuesday *int32 `json:"Tuesday"` + Tuesday *string `json:"Tuesday"` // integer // - // [0:'否',1:'是'] - TyphoonDay int32 `json:"TyphoonDay,omitempty"` + // 颱風停止上班上課期間是否營運 : [0:'否',1:'是'] + TyphoonDay string `json:"TyphoonDay,omitempty"` // integer // - // [0:'否',1:'是'] + // 星期三是否營運 : [0:'否',1:'是'] // Required: true - Wednesday *int32 `json:"Wednesday"` + Wednesday *string `json:"Wednesday"` } // Validate validates this p t x service d t o bus specification v3 route fare stage fare service day diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_stage.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_stage.go index 0a1da1dc..3eef8ab8 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_stage.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_stage.go @@ -16,20 +16,28 @@ import ( // PTXServiceDTOBusSpecificationV3RouteFareStageFareStage Stage // +// 計費站 +// // swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage type PTXServiceDTOBusSpecificationV3RouteFareStageFareStage struct { // String - StopID string `json:"StopID,omitempty"` + // + // 計費訖點站牌代碼 + StopID string `json:"StopID,omitempty" xml:"String,omitempty"` // NameType + // + // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // String + // + // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 route fare stage fare stage diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network.go index 4f26284a..3467afe9 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network.go @@ -24,7 +24,7 @@ type PTXServiceDTOBusSpecificationV3RouteNetwork struct { // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -32,19 +32,19 @@ type PTXServiceDTOBusSpecificationV3RouteNetwork struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // Array // // 站間線段序號 // Required: true - Segments []*PTXServiceDTOBusSpecificationV3RouteNetworkSegment `json:"Segments"` + Segments []*PTXServiceDTOBusSpecificationV3RouteNetworkSegment "json:\"Segments\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v3 route network diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network_segment.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network_segment.go index 9cc08c81..94de5be2 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network_segment.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network_segment.go @@ -29,7 +29,7 @@ type PTXServiceDTOBusSpecificationV3RouteNetworkSegment struct { // // 表BusStop唯一碼(起點站牌) // Required: true - FromStopID *string `json:"FromStopID"` + FromStopID *string `json:"FromStopID" xml:"String"` // Single // @@ -41,7 +41,7 @@ type PTXServiceDTOBusSpecificationV3RouteNetworkSegment struct { // // 表BusStop唯一碼(迄點站牌) // Required: true - ToStopID *string `json:"ToStopID"` + ToStopID *string `json:"ToStopID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 route network segment diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_operator.go index 454c1249..2954d8a5 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_operator.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_operator.go @@ -25,13 +25,13 @@ type PTXServiceDTOBusSpecificationV3RouteOperator struct { // // 平台代碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // NameType // @@ -39,13 +39,13 @@ type PTXServiceDTOBusSpecificationV3RouteOperator struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 營運業者編號[交通部票證資料系統定義] // Required: true - OperatorNo *string `json:"OperatorNo"` + OperatorNo *string `json:"OperatorNo" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 route operator diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_stop.go index 3a74c1b6..319ae54a 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_stop.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_stop.go @@ -23,7 +23,7 @@ type PTXServiceDTOBusSpecificationV3RouteStop struct { // // 站牌代碼 // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -31,7 +31,7 @@ type PTXServiceDTOBusSpecificationV3RouteStop struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` } // Validate validates this p t x service d t o bus specification v3 route stop diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go index e9df3257..6cc8392e 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go @@ -24,29 +24,29 @@ type PTXServiceDTOBusSpecificationV3S2STravelTime struct { // // 路線代碼 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 附屬路線代碼 - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // Array // // 站間運行時間資訊 // Required: true - TravelTimes []*PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime `json:"TravelTimes"` + TravelTimes []*PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime "json:\"TravelTimes\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v3 s2 s travel time diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time_travel_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time_travel_time.go index a6fb8035..f36a0c91 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time_travel_time.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time_travel_time.go @@ -29,7 +29,7 @@ type PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime struct { // // 起站站牌代碼 // Required: true - FromStopID *string `json:"FromStopID"` + FromStopID *string `json:"FromStopID" xml:"String"` // Int32 // @@ -53,7 +53,7 @@ type PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime struct { // // 迄站站牌代碼 // Required: true - ToStopID *string `json:"ToStopID"` + ToStopID *string `json:"ToStopID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 s2 s travel time travel time diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule.go index 9b4b93af..02c04439 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule.go @@ -26,25 +26,25 @@ type PTXServiceDTOBusSpecificationV3Schedule struct { // // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -52,41 +52,41 @@ type PTXServiceDTOBusSpecificationV3Schedule struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 營運班表說明網址 - ScheduleURL string `json:"ScheduleURL,omitempty"` + ScheduleURL string `json:"ScheduleURL,omitempty" xml:"String,omitempty"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` // Array // // 預定時刻表 - Timetables []*PTXServiceDTOBusSpecificationV3ScheduleTimeTable `json:"Timetables"` + Timetables []*PTXServiceDTOBusSpecificationV3ScheduleTimeTable "json:\"Timetables\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v3 schedule diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_date_period.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_date_period.go index 36d9e7b5..56ca5817 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_date_period.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_date_period.go @@ -23,13 +23,13 @@ type PTXServiceDTOBusSpecificationV3ScheduleDatePeriod struct { // // 結束日期 // Required: true - EndDate *string `json:"EndDate"` + EndDate *string `json:"EndDate" xml:"String"` // String // // 開始日期 // Required: true - StartDate *string `json:"StartDate"` + StartDate *string `json:"StartDate" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 schedule date period diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_service_day.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_service_day.go index 21ad55e3..d7ef16d9 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_service_day.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_service_day.go @@ -20,62 +20,62 @@ type PTXServiceDTOBusSpecificationV3ScheduleServiceDay struct { // integer // // 國定假日後一日營運與否 : [0:'否',1:'是'] - DayAfterHoliday int32 `json:"DayAfterHoliday,omitempty"` + DayAfterHoliday string `json:"DayAfterHoliday,omitempty"` // integer // // 國定假日前一日營運與否 : [0:'否',1:'是'] - DayBeforeHoliday int32 `json:"DayBeforeHoliday,omitempty"` + DayBeforeHoliday string `json:"DayBeforeHoliday,omitempty"` // integer // // 星期五營運與否 : [0:'否',1:'是'] - Friday int32 `json:"Friday,omitempty"` + Friday string `json:"Friday,omitempty"` // integer // // 星期一營運與否 : [0:'否',1:'是'] - Monday int32 `json:"Monday,omitempty"` + Monday string `json:"Monday,omitempty"` // integer // // 國定假日營運與否 : [0:'否',1:'是'] - NationalHolidays int32 `json:"NationalHolidays,omitempty"` + NationalHolidays string `json:"NationalHolidays,omitempty"` // integer // // 星期六營運與否 : [0:'否',1:'是'] - Saturday int32 `json:"Saturday,omitempty"` + Saturday string `json:"Saturday,omitempty"` // String // // 服務日標籤 - ServiceTag string `json:"ServiceTag,omitempty"` + ServiceTag string `json:"ServiceTag,omitempty" xml:"String,omitempty"` // integer // // 星期日營運與否 : [0:'否',1:'是'] - Sunday int32 `json:"Sunday,omitempty"` + Sunday string `json:"Sunday,omitempty"` // integer // // 星期四營運與否 : [0:'否',1:'是'] - Thursday int32 `json:"Thursday,omitempty"` + Thursday string `json:"Thursday,omitempty"` // integer // // 星期二營運與否 : [0:'否',1:'是'] - Tuesday int32 `json:"Tuesday,omitempty"` + Tuesday string `json:"Tuesday,omitempty"` // integer // // 颱風停止上班上課期間營運與否 : [0:'否',1:'是'] - TyphoonDay int32 `json:"TyphoonDay,omitempty"` + TyphoonDay string `json:"TyphoonDay,omitempty"` // integer // // 星期三營運與否 : [0:'否',1:'是'] - Wednesday int32 `json:"Wednesday,omitempty"` + Wednesday string `json:"Wednesday,omitempty"` } // Validate validates this p t x service d t o bus specification v3 schedule service day diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_special_day.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_special_day.go index eb34d102..12a7c614 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_special_day.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_special_day.go @@ -25,25 +25,25 @@ type PTXServiceDTOBusSpecificationV3ScheduleSpecialDay struct { // Required: true DatePeriod struct { PTXServiceDTOBusSpecificationV3ScheduleDatePeriod - } `json:"DatePeriod"` + } `json:"DatePeriod" xml:"DatePeriod"` // Array // // 不連續特殊日期 // Required: true - Dates []string `json:"Dates"` + Dates []string "json:\"Dates\" xml:\"List`1\"" // String // // 特殊營運描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // integer // // 營運服務狀態代碼0=停止營運, 1=正常營運 , 2=加班營運 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運'] // Required: true - ServiceStatus *int32 `json:"ServiceStatus"` + ServiceStatus *string `json:"ServiceStatus"` } // Validate validates this p t x service d t o bus specification v3 schedule special day diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_stop_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_stop_time.go index 5e65293c..841f523b 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_stop_time.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_stop_time.go @@ -23,26 +23,26 @@ type PTXServiceDTOBusSpecificationV3ScheduleStopTime struct { // // 到站時間,格式為:HH:mm // Required: true - ArrivalTime *string `json:"ArrivalTime"` + ArrivalTime *string `json:"ArrivalTime" xml:"String"` // String // // 離站時間,格式為:HH:mm // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // String // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // Int32 // @@ -54,7 +54,7 @@ type PTXServiceDTOBusSpecificationV3ScheduleStopTime struct { // // 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 schedule stop time diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_time_table.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_time_table.go index b6f6896e..5deae592 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_time_table.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_time_table.go @@ -23,7 +23,7 @@ type PTXServiceDTOBusSpecificationV3ScheduleTimeTable struct { // String // // 該路線班次是否使用低地板公車車輛 - IsLowFloor string `json:"IsLowFloor,omitempty"` + IsLowFloor string `json:"IsLowFloor,omitempty" xml:"String,omitempty"` // ServiceDay // @@ -31,24 +31,24 @@ type PTXServiceDTOBusSpecificationV3ScheduleTimeTable struct { // Required: true ServiceDay struct { PTXServiceDTOBusSpecificationV3ScheduleServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // Array // // 例外營運日 // Required: true - SpecialDays []*PTXServiceDTOBusSpecificationV3ScheduleSpecialDay `json:"SpecialDays"` + SpecialDays []*PTXServiceDTOBusSpecificationV3ScheduleSpecialDay "json:\"SpecialDays\" xml:\"List`1\"" // Array // // 公車停靠時間資料 // Required: true - StopTimes []*PTXServiceDTOBusSpecificationV3ScheduleStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTOBusSpecificationV3ScheduleStopTime "json:\"StopTimes\" xml:\"List`1\"" // String // // 班次代碼,為無意義之編碼 - TripID string `json:"TripID,omitempty"` + TripID string `json:"TripID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 schedule time table diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope.go index b2f5a26c..e3ea8256 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope.go @@ -24,22 +24,22 @@ type PTXServiceDTOBusSpecificationV3Scope struct { // Array // // 路線資料 - Routes []*PTXServiceDTOBusSpecificationV3ScopeRoute `json:"Routes"` + Routes []*PTXServiceDTOBusSpecificationV3ScopeRoute "json:\"Routes\" xml:\"List`1\"" // Array // // 站牌資料 - Stops []*PTXServiceDTOBusSpecificationV3ScopeStop `json:"Stops"` + Stops []*PTXServiceDTOBusSpecificationV3ScopeStop "json:\"Stops\" xml:\"List`1\"" // Array // // 附屬路線資料 - SubRoutes []*PTXServiceDTOBusSpecificationV3ScopeSubRoute `json:"SubRoutes"` + SubRoutes []*PTXServiceDTOBusSpecificationV3ScopeSubRoute "json:\"SubRoutes\" xml:\"List`1\"" // Array // // 班次代碼資料 - TripIDs []*PTXServiceDTOBusSpecificationV3ScopeTrip `json:"TripIDs"` + TripIDs []*PTXServiceDTOBusSpecificationV3ScopeTrip "json:\"TripIDs\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v3 scope diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_route.go index 77768009..6bf79ae6 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_route.go @@ -23,14 +23,14 @@ type PTXServiceDTOBusSpecificationV3ScopeRoute struct { // String // // 地區既用中之班次代碼(為原資料內碼) - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // NameType // // 路線名稱 RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName,omitempty"` + } `json:"RouteName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o bus specification v3 scope route diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_stop.go index 256ca83f..673d84ee 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_stop.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_stop.go @@ -23,14 +23,14 @@ type PTXServiceDTOBusSpecificationV3ScopeStop struct { // String // // 地區既用中之站牌代碼(為原資料內碼) - StopID string `json:"StopID,omitempty"` + StopID string `json:"StopID,omitempty" xml:"String,omitempty"` // NameType // // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o bus specification v3 scope stop diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_sub_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_sub_route.go index 78acd8da..85518d15 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_sub_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_sub_route.go @@ -23,14 +23,14 @@ type PTXServiceDTOBusSpecificationV3ScopeSubRoute struct { // String // // 地區既用中之附屬班次代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o bus specification v3 scope sub route diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_trip.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_trip.go index ad9cc4a0..5a639eac 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_trip.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_trip.go @@ -22,7 +22,7 @@ type PTXServiceDTOBusSpecificationV3ScopeTrip struct { // String // // 地區既用中之班次代碼(為原資料內碼) - TripID string `json:"TripID,omitempty"` + TripID string `json:"TripID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 scope trip diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_shape.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_shape.go index 04119b63..24d504ba 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_shape.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_shape.go @@ -23,19 +23,19 @@ type PTXServiceDTOBusSpecificationV3Shape struct { // // 車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 公車線型資料(WKT) // Required: true - Geometry *string `json:"Geometry"` + Geometry *string `json:"Geometry" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -43,19 +43,19 @@ type PTXServiceDTOBusSpecificationV3Shape struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // NameType // @@ -63,13 +63,13 @@ type PTXServiceDTOBusSpecificationV3Shape struct { // Required: true SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName"` + } `json:"SubRouteName" xml:"NameType"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - SubRouteUID *string `json:"SubRouteUID"` + SubRouteUID *string `json:"SubRouteUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 shape diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_station.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_station.go index 3e9497cb..58e88f45 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_station.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_station.go @@ -22,28 +22,28 @@ type PTXServiceDTOBusSpecificationV3Station struct { // String // // 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行 - Bearing string `json:"Bearing,omitempty"` + Bearing string `json:"Bearing,omitempty" xml:"String,omitempty"` // String // // 站牌所在道路上之路名。 - RoadName string `json:"RoadName,omitempty"` + RoadName string `json:"RoadName,omitempty" xml:"String,omitempty"` // String // // 站位地址 - StationAddress string `json:"StationAddress,omitempty"` + StationAddress string `json:"StationAddress,omitempty" xml:"String,omitempty"` // String // // 站牌詳細說明描述 - StationDescription string `json:"StationDescription,omitempty"` + StationDescription string `json:"StationDescription,omitempty" xml:"String,omitempty"` // String // // 站位代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -51,7 +51,7 @@ type PTXServiceDTOBusSpecificationV3Station struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // PointType // @@ -59,13 +59,13 @@ type PTXServiceDTOBusSpecificationV3Station struct { // Required: true StationPosition struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"StationPosition"` + } `json:"StationPosition" xml:"PointType"` // String // // 站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StationUID *string `json:"StationUID"` + StationUID *string `json:"StationUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 station diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop.go index 2b9e3af1..1ab04edb 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop.go @@ -22,48 +22,48 @@ type PTXServiceDTOBusSpecificationV3Stop struct { // String // // 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行 - Bearing string `json:"Bearing,omitempty"` + Bearing string `json:"Bearing,omitempty" xml:"String,omitempty"` // String // // 站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值] - CityCode string `json:"CityCode,omitempty"` + CityCode string `json:"CityCode,omitempty" xml:"String,omitempty"` // String // // 路名 - RoadName string `json:"RoadName,omitempty"` + RoadName string `json:"RoadName,omitempty" xml:"String,omitempty"` // String // // 站位代碼 - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // String // // 站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - StationUID string `json:"StationUID,omitempty"` + StationUID string `json:"StationUID,omitempty" xml:"String,omitempty"` // String // // 站牌地址 - StopAddress string `json:"StopAddress,omitempty"` + StopAddress string `json:"StopAddress,omitempty" xml:"String,omitempty"` // String // // 站牌簡碼 - StopCode string `json:"StopCode,omitempty"` + StopCode string `json:"StopCode,omitempty" xml:"String,omitempty"` // String // // 站牌詳細說明描述 - StopDescription string `json:"StopDescription,omitempty"` + StopDescription string `json:"StopDescription,omitempty" xml:"String,omitempty"` // String // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -71,7 +71,7 @@ type PTXServiceDTOBusSpecificationV3Stop struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` // PointType // @@ -79,18 +79,18 @@ type PTXServiceDTOBusSpecificationV3Stop struct { // Required: true StopPosition struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"StopPosition"` + } `json:"StopPosition" xml:"PointType"` // String // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` // String // // 站牌資訊說明網址 - StopURL string `json:"StopURL,omitempty"` + StopURL string `json:"StopURL,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 stop diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go index 3361858c..f6767bc1 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go @@ -24,18 +24,18 @@ type PTXServiceDTOBusSpecificationV3StopOfRoute struct { // // 車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // Array // // 營運業者 - Operators []*PTXServiceDTOBusSpecificationV3StopOfRouteOperator `json:"Operators"` + Operators []*PTXServiceDTOBusSpecificationV3StopOfRouteOperator "json:\"Operators\" xml:\"List`1\"" // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -43,36 +43,36 @@ type PTXServiceDTOBusSpecificationV3StopOfRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // Array // // 所有經過站牌 // Required: true - Stops []*PTXServiceDTOBusSpecificationV3StopOfRouteStop `json:"Stops"` + Stops []*PTXServiceDTOBusSpecificationV3StopOfRouteStop "json:\"Stops\" xml:\"List`1\"" // String // // 地區既用中之附屬路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 附屬路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 stop of route diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_operator.go index ce4a3faf..85a16e3e 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_operator.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_operator.go @@ -25,13 +25,13 @@ type PTXServiceDTOBusSpecificationV3StopOfRouteOperator struct { // // 平台代碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // NameType // @@ -39,13 +39,13 @@ type PTXServiceDTOBusSpecificationV3StopOfRouteOperator struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 營運業者編號[交通部票證資料系統定義] // Required: true - OperatorNo *string `json:"OperatorNo"` + OperatorNo *string `json:"OperatorNo" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 stop of route operator diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_stop.go index 090b6bec..2109aab7 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_stop.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_stop.go @@ -23,12 +23,12 @@ type PTXServiceDTOBusSpecificationV3StopOfRouteStop struct { // // 上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車'] // Required: true - BoardingType *int32 `json:"BoardingType"` + BoardingType *string `json:"BoardingType"` // String // // 累積行駛距離 - CumulativeDistance string `json:"CumulativeDistance,omitempty"` + CumulativeDistance string `json:"CumulativeDistance,omitempty" xml:"String,omitempty"` // Boolean // @@ -39,7 +39,7 @@ type PTXServiceDTOBusSpecificationV3StopOfRouteStop struct { // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -47,7 +47,7 @@ type PTXServiceDTOBusSpecificationV3StopOfRouteStop struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` // PointType // @@ -55,7 +55,7 @@ type PTXServiceDTOBusSpecificationV3StopOfRouteStop struct { // Required: true StopPosition struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"StopPosition"` + } `json:"StopPosition" xml:"PointType"` // Int32 // @@ -67,7 +67,7 @@ type PTXServiceDTOBusSpecificationV3StopOfRouteStop struct { // // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 stop of route stop diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_time.go index 56e24dbc..115229be 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_time.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_time.go @@ -23,26 +23,26 @@ type PTXServiceDTOBusSpecificationV3StopTime struct { // // 到站時間,格式為:HH:mm // Required: true - ArrivalTime *string `json:"ArrivalTime"` + ArrivalTime *string `json:"ArrivalTime" xml:"String"` // String // // 離站時間,格式為:HH:mm // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // String // // 地區既用中之站牌代碼(為原資料內碼) // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // // 站牌名稱 StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName,omitempty"` + } `json:"StopName,omitempty" xml:"NameType,omitempty"` // Int32 // @@ -54,7 +54,7 @@ type PTXServiceDTOBusSpecificationV3StopTime struct { // // 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - StopUID *string `json:"StopUID"` + StopUID *string `json:"StopUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 stop time diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route.go index 59e4870a..a2446763 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route.go @@ -25,44 +25,44 @@ type PTXServiceDTOBusSpecificationV3SubRoute struct { // 路線起站名稱 DepartureStopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DepartureStopName,omitempty"` + } `json:"DepartureStopName,omitempty" xml:"NameType,omitempty"` // NameType // // 路線迄站名稱 DestinationStopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DestinationStopName,omitempty"` + } `json:"DestinationStopName,omitempty" xml:"NameType,omitempty"` // integer // // 車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // Stop // // 終點站牌 EndStop struct { PTXServiceDTOBusSpecificationV3SubRouteStop - } `json:"EndStop,omitempty"` + } `json:"EndStop,omitempty" xml:"Stop,omitempty"` // String // // 車頭描述 - HeadSign string `json:"HeadSign,omitempty"` + HeadSign string `json:"HeadSign,omitempty" xml:"String,omitempty"` // Array // // 營運業者 // Required: true - Operators []*PTXServiceDTOBusSpecificationV3SubRouteOperator `json:"Operators"` + Operators []*PTXServiceDTOBusSpecificationV3SubRouteOperator "json:\"Operators\" xml:\"List`1\"" // String // // 機關定義路線代碼 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -70,33 +70,33 @@ type PTXServiceDTOBusSpecificationV3SubRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // Stop // // 起始站牌 StartStop struct { PTXServiceDTOBusSpecificationV3SubRouteStop - } `json:"StartStop,omitempty"` + } `json:"StartStop,omitempty" xml:"Stop,omitempty"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) // Required: true - SubRouteID *string `json:"SubRouteID"` + SubRouteID *string `json:"SubRouteID" xml:"String"` // NameType // // 附屬路線長名稱 SubRouteLongName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteLongName,omitempty"` + } `json:"SubRouteLongName,omitempty" xml:"NameType,omitempty"` // NameType // @@ -104,13 +104,13 @@ type PTXServiceDTOBusSpecificationV3SubRoute struct { // Required: true SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName"` + } `json:"SubRouteName" xml:"NameType"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - SubRouteUID *string `json:"SubRouteUID"` + SubRouteUID *string `json:"SubRouteUID" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 sub route diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_operator.go index 7ee5c119..df215a4e 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_operator.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_operator.go @@ -23,13 +23,13 @@ type PTXServiceDTOBusSpecificationV3SubRouteOperator struct { // // 平台代碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // NameType // @@ -37,13 +37,13 @@ type PTXServiceDTOBusSpecificationV3SubRouteOperator struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 營運業者編號[交通部票證資料系統定義] // Required: true - OperatorNo *string `json:"OperatorNo"` + OperatorNo *string `json:"OperatorNo" xml:"String"` } // Validate validates this p t x service d t o bus specification v3 sub route operator diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_stop.go index 639d668e..2033730d 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_stop.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_stop.go @@ -23,7 +23,7 @@ type PTXServiceDTOBusSpecificationV3SubRouteStop struct { // // 站牌代碼 // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -31,7 +31,7 @@ type PTXServiceDTOBusSpecificationV3SubRouteStop struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` } // Validate validates this p t x service d t o bus specification v3 sub route stop diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_time_table.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_time_table.go index 60156f4f..fbabbc0d 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_time_table.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_time_table.go @@ -24,12 +24,12 @@ type PTXServiceDTOBusSpecificationV3TimeTable struct { // // 公車停靠時間資料 // Required: true - StopTimes []*PTXServiceDTOBusSpecificationV3StopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTOBusSpecificationV3StopTime "json:\"StopTimes\" xml:\"List`1\"" // String // // 班次代碼,為無意義之編碼 - TripID string `json:"TripID,omitempty"` + TripID string `json:"TripID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 time table diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle.go index 256012c3..2afa1a26 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle.go @@ -40,7 +40,7 @@ type PTXServiceDTOBusSpecificationV3Vehicle struct { // String // // 車機代號 - InBoxID string `json:"InBoxID,omitempty"` + InBoxID string `json:"InBoxID,omitempty" xml:"String,omitempty"` // Boolean // @@ -64,19 +64,19 @@ type PTXServiceDTOBusSpecificationV3Vehicle struct { // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 車牌號碼 // Required: true - PlateNumb *string `json:"PlateNumb"` + PlateNumb *string `json:"PlateNumb" xml:"String"` // DateTime // @@ -87,13 +87,13 @@ type PTXServiceDTOBusSpecificationV3Vehicle struct { // // 車輛型別 : [1:'大型巴士',2:'中型巴士',3:'小型巴士',4:'雙層巴士',5:'雙節巴士',6:'計程車'] // Required: true - VehicleClass *int32 `json:"VehicleClass"` + VehicleClass *string `json:"VehicleClass"` // integer // // 車輛種類 : [1:'一般',2:'復康巴士',3:'專車',4:'其他'] // Required: true - VehicleType *int32 `json:"VehicleType"` + VehicleType *string `json:"VehicleType"` } // Validate validates this p t x service d t o bus specification v3 vehicle diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go index 5d9f57d2..6ec98ec0 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go @@ -24,7 +24,7 @@ type PTXServiceDTOBusSpecificationV3VehicleDepot struct { // // 營業所代碼 // Required: true - DepotID *string `json:"DepotID"` + DepotID *string `json:"DepotID" xml:"String"` // NameType // @@ -32,13 +32,13 @@ type PTXServiceDTOBusSpecificationV3VehicleDepot struct { // Required: true DepotName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DepotName"` + } `json:"DepotName" xml:"NameType"` // Array // // 車輛 // Required: true - Vehicles []*PTXServiceDTOBusSpecificationV3VehicleDepotVehicle `json:"Vehicles"` + Vehicles []*PTXServiceDTOBusSpecificationV3VehicleDepotVehicle "json:\"Vehicles\" xml:\"List`1\"" } // Validate validates this p t x service d t o bus specification v3 vehicle depot diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot_vehicle.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot_vehicle.go index 414468ca..ec9b34d3 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot_vehicle.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot_vehicle.go @@ -20,7 +20,7 @@ type PTXServiceDTOBusSpecificationV3VehicleDepotVehicle struct { // String // // 車牌號碼 - PlateNumb string `json:"PlateNumb,omitempty"` + PlateNumb string `json:"PlateNumb,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 vehicle depot vehicle diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go index 51cea8fc..9f35a8a4 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go @@ -23,13 +23,13 @@ type PTXServiceDTOBusSpecificationV3VehicleRoute struct { // // 車牌號碼 // Required: true - PlateNumb *string `json:"PlateNumb"` + PlateNumb *string `json:"PlateNumb" xml:"String"` // String // // 地區既用中之路線代碼(為原資料內碼) // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -37,30 +37,30 @@ type PTXServiceDTOBusSpecificationV3VehicleRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 // Required: true - RouteUID *string `json:"RouteUID"` + RouteUID *string `json:"RouteUID" xml:"String"` // String // // 地區既用中之附屬路線代碼(為原資料內碼) - SubRouteID string `json:"SubRouteID,omitempty"` + SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"` // NameType // // 路線名稱 SubRouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"SubRouteName,omitempty"` + } `json:"SubRouteName,omitempty" xml:"NameType,omitempty"` // String // // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢 - SubRouteUID string `json:"SubRouteUID,omitempty"` + SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 vehicle route diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_g_wrapper_p_t_x_service_d_t_o_bus_specification_v3_schedule.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_g_wrapper_p_t_x_service_d_t_o_bus_specification_v3_schedule.go index 9bb02324..5856123e 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_g_wrapper_p_t_x_service_d_t_o_bus_specification_v3_schedule.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_g_wrapper_p_t_x_service_d_t_o_bus_specification_v3_schedule.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,13 +45,13 @@ type PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificat // String // // 公車定期營運班表名稱 - ScheduleName string `json:"ScheduleName,omitempty"` + ScheduleName string `json:"ScheduleName,omitempty" xml:"String,omitempty"` // Array // // 資料列表 // Required: true - Schedules []*PTXServiceDTOBusSpecificationV3Schedule `json:"Schedules"` + Schedules []*PTXServiceDTOBusSpecificationV3Schedule "json:\"Schedules\" xml:\"List`1\"" // Int32 // @@ -80,7 +80,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificat // String // // 時刻表適用情形說明 - ValidityDesciption string `json:"ValidityDesciption,omitempty"` + ValidityDesciption string `json:"ValidityDesciption,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o bus specification v3 wrapper bus g wrapper p t x service d t o bus specification v3 schedule diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_depot.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_depot.go index d77173ff..1740e35c 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_depot.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_depot.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - Depots []*PTXServiceDTOBusSpecificationV3Depot `json:"Depots"` + Depots []*PTXServiceDTOBusSpecificationV3Depot "json:\"Depots\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go index 53303f65..cff36ccd 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - DisplayStopOfRoutes []*PTXServiceDTOBusSpecificationV3DisplayStopOfRoute `json:"DisplayStopOfRoutes"` + DisplayStopOfRoutes []*PTXServiceDTOBusSpecificationV3DisplayStopOfRoute "json:\"DisplayStopOfRoutes\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go index bf1e60e6..89364f2d 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - FirstLastTripInfos []*PTXServiceDTOBusSpecificationV3FirstLastTripInfo `json:"FirstLastTripInfos"` + FirstLastTripInfos []*PTXServiceDTOBusSpecificationV3FirstLastTripInfo "json:\"FirstLastTripInfos\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_network.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_network.go index acb40067..f70cbc49 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_network.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_network.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - Networks []*PTXServiceDTOBusSpecificationV3Network `json:"Networks"` + Networks []*PTXServiceDTOBusSpecificationV3Network "json:\"Networks\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_operator.go index e798e3e8..264b1acc 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_operator.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_operator.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - Operators []*PTXServiceDTOBusSpecificationV3Operator `json:"Operators"` + Operators []*PTXServiceDTOBusSpecificationV3Operator "json:\"Operators\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route.go index 4defbfd9..26e10df2 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - Routes []*PTXServiceDTOBusSpecificationV3Route `json:"Routes"` + Routes []*PTXServiceDTOBusSpecificationV3Route "json:\"Routes\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_network.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_network.go index 3c2a3746..802d8d12 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_network.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_network.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - RouteNetworks []*PTXServiceDTOBusSpecificationV3RouteNetwork `json:"RouteNetworks"` + RouteNetworks []*PTXServiceDTOBusSpecificationV3RouteNetwork "json:\"RouteNetworks\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go index dedc1c6f..61e80f92 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - S2STravelTimes []*PTXServiceDTOBusSpecificationV3S2STravelTime `json:"S2STravelTimes"` + S2STravelTimes []*PTXServiceDTOBusSpecificationV3S2STravelTime "json:\"S2STravelTimes\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_shape.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_shape.go index b54d169e..e99f6bcb 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_shape.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_shape.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - Shapes []*PTXServiceDTOBusSpecificationV3Shape `json:"Shapes"` + Shapes []*PTXServiceDTOBusSpecificationV3Shape "json:\"Shapes\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_station.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_station.go index 6acbca9d..532e3d6a 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_station.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_station.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -47,7 +47,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - Stations []*PTXServiceDTOBusSpecificationV3Station `json:"Stations"` + Stations []*PTXServiceDTOBusSpecificationV3Station "json:\"Stations\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop.go index 2e9f3f85..9f6e0466 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -47,7 +47,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - Stops []*PTXServiceDTOBusSpecificationV3Stop `json:"Stops"` + Stops []*PTXServiceDTOBusSpecificationV3Stop "json:\"Stops\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go index 5f2a527a..55f42bb5 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -47,7 +47,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - StopOfRoutes []*PTXServiceDTOBusSpecificationV3StopOfRoute `json:"StopOfRoutes"` + StopOfRoutes []*PTXServiceDTOBusSpecificationV3StopOfRoute "json:\"StopOfRoutes\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_sub_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_sub_route.go index d1f0fd01..cef1d910 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_sub_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_sub_route.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -47,7 +47,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - SubRoutes []*PTXServiceDTOBusSpecificationV3SubRoute `json:"SubRoutes"` + SubRoutes []*PTXServiceDTOBusSpecificationV3SubRoute "json:\"SubRoutes\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle.go index 44c99519..4cca75d5 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -59,7 +59,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - Vehicles []*PTXServiceDTOBusSpecificationV3Vehicle `json:"Vehicles"` + Vehicles []*PTXServiceDTOBusSpecificationV3Vehicle "json:\"Vehicles\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go index 051ec53b..aa48f20e 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -59,7 +59,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - VehicleDepots []*PTXServiceDTOBusSpecificationV3VehicleDepot `json:"VehicleDepots"` + VehicleDepots []*PTXServiceDTOBusSpecificationV3VehicleDepot "json:\"VehicleDepots\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go index 7ecc72e5..a71ec589 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -59,7 +59,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificat // // 資料列表 // Required: true - VehicleRoutes []*PTXServiceDTOBusSpecificationV3VehicleRoute `json:"VehicleRoutes"` + VehicleRoutes []*PTXServiceDTOBusSpecificationV3VehicleRoute "json:\"VehicleRoutes\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a1_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a1_data.go index 0567f957..19a626ae 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a1_data.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a1_data.go @@ -26,13 +26,13 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 資料列表 // Required: true - A1Datas []*PTXServiceDTOBusSpecificationV3A1Data `json:"A1Datas"` + A1Datas []*PTXServiceDTOBusSpecificationV3A1Data "json:\"A1Datas\" xml:\"List`1\"" // String // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a2_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a2_data.go index acd099ea..1ed0cead 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a2_data.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a2_data.go @@ -26,13 +26,13 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 資料列表 // Required: true - A2Datas []*PTXServiceDTOBusSpecificationV3A2Data `json:"A2Datas"` + A2Datas []*PTXServiceDTOBusSpecificationV3A2Data "json:\"A2Datas\" xml:\"List`1\"" // String // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_alert.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_alert.go index 639662e8..2dd7bce7 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_alert.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_alert.go @@ -26,13 +26,13 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 資料列表 // Required: true - Alerts []*PTXServiceDTOBusSpecificationV3Alert `json:"Alerts"` + Alerts []*PTXServiceDTOBusSpecificationV3Alert "json:\"Alerts\" xml:\"List`1\"" // String // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go index bfadcf97..47fd5f0d 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 資料列表 // Required: true - DailyTimeTables []*PTXServiceDTOBusSpecificationV3DailyTimeTable `json:"DailyTimeTables"` + DailyTimeTables []*PTXServiceDTOBusSpecificationV3DailyTimeTable "json:\"DailyTimeTables\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_n1_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_n1_data.go index b2be9d6e..a957b59a 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_n1_data.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_n1_data.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 資料列表 // Required: true - N1Datas []*PTXServiceDTOBusSpecificationV3N1Data `json:"N1Datas"` + N1Datas []*PTXServiceDTOBusSpecificationV3N1Data "json:\"N1Datas\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_news.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_news.go index 07c8de2e..53eaf0b6 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_news.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_news.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 資料列表 // Required: true - Newses []*PTXServiceDTOBusSpecificationV3News `json:"Newses"` + Newses []*PTXServiceDTOBusSpecificationV3News "json:\"Newses\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_fare.go index 8db25cb7..5b952a67 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_fare.go +++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_fare.go @@ -26,7 +26,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -35,7 +35,7 @@ type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificati // // 資料列表 // Required: true - RouteFares []*PTXServiceDTOBusSpecificationV3RouteFare `json:"RouteFares"` + RouteFares []*PTXServiceDTOBusSpecificationV3RouteFare "json:\"RouteFares\" xml:\"List`1\"" // Int32 // diff --git a/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go index f9b0a44a..bbd4519f 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go +++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go @@ -26,26 +26,26 @@ type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth struct { // 本平台資料來源轉入狀態 Inbound struct { PTXServiceDTOSharedSpecificationV3BaseInbound - } `json:"Inbound,omitempty"` + } `json:"Inbound,omitempty" xml:"Inbound,omitempty"` // Outbound // // 本平台API狀態 Outbound struct { PTXServiceDTOSharedSpecificationV3BaseOutbound - } `json:"Outbound,omitempty"` + } `json:"Outbound,omitempty" xml:"Outbound,omitempty"` // String // // API服務代碼 // Required: true - ServiceID *string `json:"ServiceID"` + ServiceID *string `json:"ServiceID" xml:"String"` // String // // API服務中文名稱 // Required: true - ServiceName *string `json:"ServiceName"` + ServiceName *string `json:"ServiceName" xml:"String"` } // Validate validates this p t x service d t o shared specification v3 base display health diff --git a/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go index 863e370b..a6eac788 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go +++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go @@ -30,13 +30,13 @@ type PTXServiceDTOSharedSpecificationV3BaseInbound struct { // String // // 檢核失敗原因 - Reason string `json:"Reason,omitempty"` + Reason string `json:"Reason,omitempty" xml:"String,omitempty"` // integer // // 檢核結果狀態 : [0:'失敗',1:'成功'] // Required: true - Status *int32 `json:"Status"` + Status *string `json:"Status"` } // Validate validates this p t x service d t o shared specification v3 base inbound diff --git a/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go index b449af50..df559375 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go +++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go @@ -20,12 +20,12 @@ type PTXServiceDTOSharedSpecificationV3BaseNameType struct { // String // // 英文名稱 - En string `json:"En,omitempty"` + En string `json:"En,omitempty" xml:"String,omitempty"` // String // // 中文繁體名稱 - ZhTw string `json:"Zh_tw,omitempty"` + ZhTw string `json:"Zh_tw,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o shared specification v3 base name type diff --git a/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go index 2e474918..fc59f967 100644 --- a/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go +++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go @@ -30,13 +30,13 @@ type PTXServiceDTOSharedSpecificationV3BaseOutbound struct { // String // // 檢核失敗原因 - Reason string `json:"Reason,omitempty"` + Reason string `json:"Reason,omitempty" xml:"String,omitempty"` // integer // // 檢核結果狀態 : [0:'失敗',1:'成功'] // Required: true - Status *int32 `json:"Status"` + Status *string `json:"Status"` } // Validate validates this p t x service d t o shared specification v3 base outbound diff --git a/oas.basic.v2.json b/oas.basic.v2.json index 9da5d2b9..5d9181cc 100644 --- a/oas.basic.v2.json +++ b/oas.basic.v2.json @@ -307,20 +307,37 @@ } }, "definitions": { - "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": { - "title": "NameType", - "description": "名稱資料型別", + "PTX.API.Basic.Model.V2.BasicWrapper[PTX.Service.DTO.Shared.Specification.V2.Base.News]": { + "title": "NewsList", + "required": [ + "Newses", + "UpdateInterval", + "UpdateTime" + ], "type": "object", "properties": { - "Zh_tw": { - "title": "String", - "description": "中文繁體名稱", + "UpdateTime": { + "title": "DateTime", + "description": "更新日期時間", "type": "string" }, - "En": { - "title": "String", - "description": "英文名稱", - "type": "string" + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "資料更新週期(秒)", + "type": "integer" + }, + "Newses": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.News" + } + }, + "Count": { + "format": "int64", + "type": "integer" } } }, @@ -376,6 +393,23 @@ } } }, + "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": { + "title": "NameType", + "description": "名稱資料型別", + "type": "object", + "properties": { + "Zh_tw": { + "title": "String", + "description": "中文繁體名稱", + "type": "string" + }, + "En": { + "title": "String", + "description": "英文名稱", + "type": "string" + } + } + }, "PTX.Service.DTO.Shared.Specification.V2.Base.News": { "title": "News", "description": "業管機關資料型別", @@ -408,10 +442,9 @@ "type": "string" }, "NewsCategory": { - "format": "int32", "title": "integer", "description": "消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他']", - "type": "integer" + "type": "string" }, "Description": { "title": "String", @@ -450,40 +483,6 @@ } } }, - "PTX.API.Basic.Model.V2.BasicWrapper[PTX.Service.DTO.Shared.Specification.V2.Base.News]": { - "title": "NewsList", - "required": [ - "Newses", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "更新日期時間", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "資料更新週期(秒)", - "type": "integer" - }, - "Newses": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.News" - } - }, - "Count": { - "format": "int64", - "type": "integer" - } - } - }, "PTX.Service.DTO.Shared.Specification.V2.Base.Operator": { "title": "Operator", "description": "營運業者資料型別", diff --git a/oas.bus.v2.json b/oas.bus.v2.json index 943c229b..392fb878 100644 --- a/oas.bus.v2.json +++ b/oas.bus.v2.json @@ -46,19 +46,19 @@ "PenghuCounty" ], "x-enum": { - "Hsinchu": "新竹市", + "YunlinCounty": "雲林縣", + "HualienCounty": "花蓮縣", "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", + "Hsinchu": "新竹市", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "PenghuCounty": "澎湖縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣" + "ChiayiCounty": "嘉義縣", + "ChanghuaCounty": "彰化縣", + "MiaoliCounty": "苗栗縣", + "PingtungCounty": "屏東縣", + "YilanCounty": "宜蘭縣" } }, { @@ -178,19 +178,19 @@ "PenghuCounty" ], "x-enum": { - "Hsinchu": "新竹市", + "YunlinCounty": "雲林縣", + "HualienCounty": "花蓮縣", "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", + "Hsinchu": "新竹市", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "PenghuCounty": "澎湖縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣" + "ChiayiCounty": "嘉義縣", + "ChanghuaCounty": "彰化縣", + "MiaoliCounty": "苗栗縣", + "PingtungCounty": "屏東縣", + "YilanCounty": "宜蘭縣" } }, { @@ -317,19 +317,19 @@ "PenghuCounty" ], "x-enum": { - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", + "YilanCounty": "宜蘭縣", + "TaitungCounty": "臺東縣", "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "MiaoliCounty": "苗栗縣", + "HsinchuCounty": "新竹縣", "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣" + "PenghuCounty": "澎湖縣", + "Chiayi": "嘉義市", + "YunlinCounty": "雲林縣", + "ChanghuaCounty": "彰化縣", + "Hsinchu": "新竹市" } }, { @@ -443,19 +443,19 @@ "PenghuCounty" ], "x-enum": { - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", + "YilanCounty": "宜蘭縣", + "TaitungCounty": "臺東縣", "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "MiaoliCounty": "苗栗縣", + "HsinchuCounty": "新竹縣", "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣" + "PenghuCounty": "澎湖縣", + "Chiayi": "嘉義市", + "YunlinCounty": "雲林縣", + "ChanghuaCounty": "彰化縣", + "Hsinchu": "新竹市" } }, { @@ -576,19 +576,19 @@ "PenghuCounty" ], "x-enum": { - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "TaitungCounty": "臺東縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣" + "PingtungCounty": "屏東縣", + "YunlinCounty": "雲林縣", + "PenghuCounty": "澎湖縣", + "ChiayiCounty": "嘉義縣", + "NantouCounty": "南投縣", + "ChanghuaCounty": "彰化縣", + "HsinchuCounty": "新竹縣", + "Hsinchu": "新竹市", + "HualienCounty": "花蓮縣" } }, { @@ -702,19 +702,19 @@ "PenghuCounty" ], "x-enum": { - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "TaitungCounty": "臺東縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣" + "PingtungCounty": "屏東縣", + "YunlinCounty": "雲林縣", + "PenghuCounty": "澎湖縣", + "ChiayiCounty": "嘉義縣", + "NantouCounty": "南投縣", + "ChanghuaCounty": "彰化縣", + "HsinchuCounty": "新竹縣", + "Hsinchu": "新竹市", + "HualienCounty": "花蓮縣" } }, { @@ -844,28 +844,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", "Tainan": "臺南市", - "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", "HsinchuCounty": "新竹縣", "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", + "Keelung": "基隆市", "NantouCounty": "南投縣", "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "NewTaipei": "新北市", + "Kaohsiung": "高雄市", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "Hsinchu": "新竹市", "HualienCounty": "花蓮縣", + "LienchiangCounty": "連江縣", + "ChiayiCounty": "嘉義縣", "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "Taoyuan": "桃園市", + "Taichung": "臺中市", + "YilanCounty": "宜蘭縣", + "KinmenCounty": "金門縣", + "ChanghuaCounty": "彰化縣", + "PingtungCounty": "屏東縣", + "Taipei": "臺北市" } }, { @@ -994,28 +994,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", "Tainan": "臺南市", - "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", "HsinchuCounty": "新竹縣", "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", + "Keelung": "基隆市", "NantouCounty": "南投縣", "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "NewTaipei": "新北市", + "Kaohsiung": "高雄市", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "Hsinchu": "新竹市", "HualienCounty": "花蓮縣", + "LienchiangCounty": "連江縣", + "ChiayiCounty": "嘉義縣", "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "Taoyuan": "桃園市", + "Taichung": "臺中市", + "YilanCounty": "宜蘭縣", + "KinmenCounty": "金門縣", + "ChanghuaCounty": "彰化縣", + "PingtungCounty": "屏東縣", + "Taipei": "臺北市" } }, { @@ -1151,28 +1151,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", - "Kaohsiung": "高雄市", - "Keelung": "基隆市", "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", + "NewTaipei": "新北市", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", + "Taipei": "臺北市", + "ChanghuaCounty": "彰化縣", + "PenghuCounty": "澎湖縣", + "MiaoliCounty": "苗栗縣", "PingtungCounty": "屏東縣", + "KinmenCounty": "金門縣", + "Keelung": "基隆市", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "YunlinCounty": "雲林縣", + "Chiayi": "嘉義市", + "Kaohsiung": "高雄市", + "Taichung": "臺中市", + "HualienCounty": "花蓮縣", + "Taoyuan": "桃園市", + "LienchiangCounty": "連江縣", + "HsinchuCounty": "新竹縣", + "Tainan": "臺南市" } }, { @@ -1295,28 +1295,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", - "Kaohsiung": "高雄市", - "Keelung": "基隆市", "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", + "NewTaipei": "新北市", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", + "Taipei": "臺北市", + "ChanghuaCounty": "彰化縣", + "PenghuCounty": "澎湖縣", + "MiaoliCounty": "苗栗縣", "PingtungCounty": "屏東縣", + "KinmenCounty": "金門縣", + "Keelung": "基隆市", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "YunlinCounty": "雲林縣", + "Chiayi": "嘉義市", + "Kaohsiung": "高雄市", + "Taichung": "臺中市", + "HualienCounty": "花蓮縣", + "Taoyuan": "桃園市", + "LienchiangCounty": "連江縣", + "HsinchuCounty": "新竹縣", + "Tainan": "臺南市" } }, { @@ -1447,27 +1447,27 @@ ], "x-enum": { "Taipei": "臺北市", + "YunlinCounty": "雲林縣", + "PingtungCounty": "屏東縣", + "HualienCounty": "花蓮縣", + "ChiayiCounty": "嘉義縣", + "ChanghuaCounty": "彰化縣", + "Hsinchu": "新竹市", + "Chiayi": "嘉義市", "NewTaipei": "新北市", + "MiaoliCounty": "苗栗縣", + "Keelung": "基隆市", + "NantouCounty": "南投縣", "Taoyuan": "桃園市", "Taichung": "臺中市", - "Tainan": "臺南市", - "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", + "Tainan": "臺南市", "TaitungCounty": "臺東縣", + "Kaohsiung": "高雄市", "KinmenCounty": "金門縣", + "LienchiangCounty": "連江縣", "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "YilanCounty": "宜蘭縣" } }, { @@ -1591,27 +1591,27 @@ ], "x-enum": { "Taipei": "臺北市", + "YunlinCounty": "雲林縣", + "PingtungCounty": "屏東縣", + "HualienCounty": "花蓮縣", + "ChiayiCounty": "嘉義縣", + "ChanghuaCounty": "彰化縣", + "Hsinchu": "新竹市", + "Chiayi": "嘉義市", "NewTaipei": "新北市", + "MiaoliCounty": "苗栗縣", + "Keelung": "基隆市", + "NantouCounty": "南投縣", "Taoyuan": "桃園市", "Taichung": "臺中市", + "HsinchuCounty": "新竹縣", "Tainan": "臺南市", + "TaitungCounty": "臺東縣", "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", "KinmenCounty": "金門縣", + "LienchiangCounty": "連江縣", "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "YilanCounty": "宜蘭縣" } }, { @@ -1707,9 +1707,7 @@ "operationId": "CityBusApi_DataVersion", "produces": [ "application/json", - "application/xml", - "text/plain", - "text/json" + "application/xml" ], "parameters": [ { @@ -1743,28 +1741,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", - "Kaohsiung": "高雄市", "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", "ChanghuaCounty": "彰化縣", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", + "PenghuCounty": "澎湖縣", "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "HsinchuCounty": "新竹縣", + "KinmenCounty": "金門縣", + "YunlinCounty": "雲林縣", + "Hsinchu": "新竹市", + "MiaoliCounty": "苗栗縣", + "Taipei": "臺北市", "HualienCounty": "花蓮縣", + "Kaohsiung": "高雄市", + "Taichung": "臺中市", "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "YilanCounty": "宜蘭縣", + "PingtungCounty": "屏東縣", + "Tainan": "臺南市", + "LienchiangCounty": "連江縣", + "NewTaipei": "新北市", + "Taoyuan": "桃園市", + "Chiayi": "嘉義市" } }, { @@ -1852,28 +1850,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", - "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", + "TaitungCounty": "臺東縣", "ChanghuaCounty": "彰化縣", + "Kaohsiung": "高雄市", + "Taoyuan": "桃園市", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "LienchiangCounty": "連江縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", + "YunlinCounty": "雲林縣", + "MiaoliCounty": "苗栗縣", + "Hsinchu": "新竹市", "KinmenCounty": "金門縣", "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "HualienCounty": "花蓮縣", + "Taichung": "臺中市", + "ChiayiCounty": "嘉義縣", + "YilanCounty": "宜蘭縣", + "NewTaipei": "新北市", + "Keelung": "基隆市", + "HsinchuCounty": "新竹縣", + "Tainan": "臺南市", + "PingtungCounty": "屏東縣", + "Taipei": "臺北市" } }, { @@ -1996,28 +1994,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", "Taichung": "臺中市", "Tainan": "臺南市", - "Kaohsiung": "高雄市", "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", + "PenghuCounty": "澎湖縣", "MiaoliCounty": "苗栗縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "HualienCounty": "花蓮縣", + "Taipei": "臺北市", + "Hsinchu": "新竹市", + "Taoyuan": "桃園市", "Chiayi": "嘉義市", + "NewTaipei": "新北市", + "ChiayiCounty": "嘉義縣", + "Kaohsiung": "高雄市", + "NantouCounty": "南投縣", "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", + "YunlinCounty": "雲林縣", + "HsinchuCounty": "新竹縣", "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "LienchiangCounty": "連江縣", + "TaitungCounty": "臺東縣", + "YilanCounty": "宜蘭縣" } }, { @@ -2140,28 +2138,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", "Taichung": "臺中市", "Tainan": "臺南市", - "Kaohsiung": "高雄市", "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", + "PenghuCounty": "澎湖縣", "MiaoliCounty": "苗栗縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "HualienCounty": "花蓮縣", + "Taipei": "臺北市", + "Hsinchu": "新竹市", + "Taoyuan": "桃園市", "Chiayi": "嘉義市", + "NewTaipei": "新北市", + "ChiayiCounty": "嘉義縣", + "Kaohsiung": "高雄市", + "NantouCounty": "南投縣", "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", + "YunlinCounty": "雲林縣", + "HsinchuCounty": "新竹縣", "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "LienchiangCounty": "連江縣", + "TaitungCounty": "臺東縣", + "YilanCounty": "宜蘭縣" } }, { @@ -2291,28 +2289,28 @@ "Taipei" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", + "KinmenCounty": "金門縣", + "LienchiangCounty": "連江縣", + "Hsinchu": "新竹市", "Taoyuan": "桃園市", - "Taichung": "臺中市", "Tainan": "臺南市", - "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", "YunlinCounty": "雲林縣", "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", + "ChanghuaCounty": "彰化縣", + "MiaoliCounty": "苗栗縣", + "NantouCounty": "南投縣", + "PenghuCounty": "澎湖縣", + "Taipei": "臺北市", + "NewTaipei": "新北市", "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "Kaohsiung": "高雄市", + "Chiayi": "嘉義市", + "Taichung": "臺中市", "HualienCounty": "花蓮縣", "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "HsinchuCounty": "新竹縣", + "YilanCounty": "宜蘭縣", + "Keelung": "基隆市" } }, { @@ -2434,27 +2432,31 @@ "TaitungCounty", "PenghuCounty", "Tainan", - "KinmenCounty" + "KinmenCounty", + "Taoyuan", + "Taichung" ], "x-enum": { - "Taipei": "臺北市", "NewTaipei": "新北市", - "Kaohsiung": "高雄市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", "MiaoliCounty": "苗栗縣", + "KinmenCounty": "金門縣", + "PingtungCounty": "屏東縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "Taichung": "臺中市", + "PenghuCounty": "澎湖縣", "HualienCounty": "花蓮縣", + "Tainan": "臺南市", + "YilanCounty": "宜蘭縣", "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣", - "KinmenCounty": "金門縣", - "Tainan": "臺南市" + "Taoyuan": "桃園市", + "Hsinchu": "新竹市", + "Taipei": "臺北市", + "HsinchuCounty": "新竹縣", + "Kaohsiung": "高雄市", + "NantouCounty": "南投縣", + "Chiayi": "嘉義市", + "ChiayiCounty": "嘉義縣" } }, { @@ -2545,7 +2547,7 @@ "CityBus" ], "summary": "取得指定[縣市]的市區公車顯示用路線站序資料", - "description": "市區公車之顯示用路線站序資料,僅台北市與新北市可查詢", + "description": "市區公車之顯示用路線站序資料", "operationId": "CityBusApi_DisplayStopOfRoute", "produces": [ "application/json", @@ -2561,12 +2563,16 @@ "enum": [ "Taipei", "Tainan", - "NewTaipei" + "NewTaipei", + "Taoyuan", + "Taichung" ], "x-enum": { + "Taichung": "臺中市", "Tainan": "臺南市", - "Taipei": "臺北市", - "NewTaipei": "新北市" + "Taoyuan": "桃園市", + "NewTaipei": "新北市", + "Taipei": "臺北市" } }, { @@ -2667,12 +2673,16 @@ "enum": [ "Taipei", "Tainan", - "NewTaipei" + "NewTaipei", + "Taoyuan", + "Taichung" ], "x-enum": { + "Taichung": "臺中市", "Tainan": "臺南市", - "Taipei": "臺北市", - "NewTaipei": "新北市" + "Taoyuan": "桃園市", + "NewTaipei": "新北市", + "Taipei": "臺北市" } }, { @@ -2802,28 +2812,28 @@ "LienchiangCounty" ], "x-enum": { + "TaitungCounty": "臺東縣", + "YunlinCounty": "雲林縣", + "HsinchuCounty": "新竹縣", "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", + "KinmenCounty": "金門縣", + "YilanCounty": "宜蘭縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", "ChiayiCounty": "嘉義縣", "Chiayi": "嘉義市", + "PenghuCounty": "澎湖縣", + "Keelung": "基隆市", + "NewTaipei": "新北市", + "Taichung": "臺中市", "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "Hsinchu": "新竹市", + "Tainan": "臺南市", "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "MiaoliCounty": "苗栗縣", + "Taoyuan": "桃園市", + "LienchiangCounty": "連江縣", + "NantouCounty": "南投縣" } }, { @@ -2946,28 +2956,28 @@ "LienchiangCounty" ], "x-enum": { + "TaitungCounty": "臺東縣", + "YunlinCounty": "雲林縣", + "HsinchuCounty": "新竹縣", "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", + "KinmenCounty": "金門縣", + "YilanCounty": "宜蘭縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", "ChiayiCounty": "嘉義縣", "Chiayi": "嘉義市", + "PenghuCounty": "澎湖縣", + "Keelung": "基隆市", + "NewTaipei": "新北市", + "Taichung": "臺中市", "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "Hsinchu": "新竹市", + "Tainan": "臺南市", "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "MiaoliCounty": "苗栗縣", + "Taoyuan": "桃園市", + "LienchiangCounty": "連江縣", + "NantouCounty": "南投縣" } }, { @@ -3090,27 +3100,31 @@ "HualienCounty", "TaitungCounty", "KinmenCounty", - "PenghuCounty" + "PenghuCounty", + "Taoyuan", + "Taichung" ], "x-enum": { + "YilanCounty": "宜蘭縣", + "HualienCounty": "花蓮縣", + "PingtungCounty": "屏東縣", + "TaitungCounty": "臺東縣", + "Hsinchu": "新竹市", + "YunlinCounty": "雲林縣", + "Tainan": "臺南市", + "ChiayiCounty": "嘉義縣", "Taipei": "臺北市", + "PenghuCounty": "澎湖縣", "NewTaipei": "新北市", - "Tainan": "臺南市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", + "KinmenCounty": "金門縣", + "Taichung": "臺中市", + "Keelung": "基隆市", + "NantouCounty": "南投縣", "MiaoliCounty": "苗栗縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "Keelung": "基隆市" + "Taoyuan": "桃園市", + "HsinchuCounty": "新竹縣" } }, { @@ -3226,27 +3240,31 @@ "HualienCounty", "TaitungCounty", "KinmenCounty", - "PenghuCounty" + "PenghuCounty", + "Taoyuan", + "Taichung" ], "x-enum": { + "YilanCounty": "宜蘭縣", + "HualienCounty": "花蓮縣", + "PingtungCounty": "屏東縣", + "TaitungCounty": "臺東縣", + "Hsinchu": "新竹市", + "YunlinCounty": "雲林縣", + "Tainan": "臺南市", + "ChiayiCounty": "嘉義縣", "Taipei": "臺北市", + "PenghuCounty": "澎湖縣", "NewTaipei": "新北市", - "Tainan": "臺南市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", + "KinmenCounty": "金門縣", + "Taichung": "臺中市", + "Keelung": "基隆市", + "NantouCounty": "南投縣", "MiaoliCounty": "苗栗縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "Keelung": "基隆市" + "Taoyuan": "桃園市", + "HsinchuCounty": "新竹縣" } }, { @@ -3375,28 +3393,28 @@ "LienchiangCounty" ], "x-enum": { - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", - "Kaohsiung": "高雄市", "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", + "HualienCounty": "花蓮縣", + "ChiayiCounty": "嘉義縣", + "NewTaipei": "新北市", "ChanghuaCounty": "彰化縣", + "Taipei": "臺北市", + "Hsinchu": "新竹市", "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", "PingtungCounty": "屏東縣", + "HsinchuCounty": "新竹縣", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", + "Chiayi": "嘉義市", "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "Taichung": "臺中市", + "MiaoliCounty": "苗栗縣", + "LienchiangCounty": "連江縣", + "KinmenCounty": "金門縣", + "YunlinCounty": "雲林縣", + "Kaohsiung": "高雄市", + "TaitungCounty": "臺東縣", + "Taoyuan": "桃園市", + "Tainan": "臺南市" } }, { @@ -3518,27 +3536,27 @@ "PenghuCounty" ], "x-enum": { - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", "Tainan": "臺南市", "Kaohsiung": "高雄市", - "KinmenCounty": "金門縣", + "Taipei": "臺北市", "ChiayiCounty": "嘉義縣", - "Hsinchu": "新竹市", - "ChanghuaCounty": "彰化縣", - "Chiayi": "嘉義市", + "NantouCounty": "南投縣", + "KinmenCounty": "金門縣", "TaitungCounty": "臺東縣", "PingtungCounty": "屏東縣", - "PenghuCounty": "澎湖縣", - "YilanCounty": "宜蘭縣", "HsinchuCounty": "新竹縣", - "HualienCounty": "花蓮縣", + "ChanghuaCounty": "彰化縣", + "YunlinCounty": "雲林縣", + "NewTaipei": "新北市", + "YilanCounty": "宜蘭縣", + "Hsinchu": "新竹市", + "Chiayi": "嘉義市", + "Keelung": "基隆市", + "Taoyuan": "桃園市", "MiaoliCounty": "苗栗縣", - "Keelung": "基隆市" + "PenghuCounty": "澎湖縣", + "HualienCounty": "花蓮縣", + "Taichung": "臺中市" } }, { @@ -3660,27 +3678,27 @@ "PenghuCounty" ], "x-enum": { - "NantouCounty": "南投縣", - "YunlinCounty": "雲林縣", - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", "Tainan": "臺南市", "Kaohsiung": "高雄市", - "KinmenCounty": "金門縣", + "Taipei": "臺北市", "ChiayiCounty": "嘉義縣", - "Hsinchu": "新竹市", - "ChanghuaCounty": "彰化縣", - "Chiayi": "嘉義市", + "NantouCounty": "南投縣", + "KinmenCounty": "金門縣", "TaitungCounty": "臺東縣", "PingtungCounty": "屏東縣", - "PenghuCounty": "澎湖縣", - "YilanCounty": "宜蘭縣", "HsinchuCounty": "新竹縣", - "HualienCounty": "花蓮縣", + "ChanghuaCounty": "彰化縣", + "YunlinCounty": "雲林縣", + "NewTaipei": "新北市", + "YilanCounty": "宜蘭縣", + "Hsinchu": "新竹市", + "Chiayi": "嘉義市", + "Keelung": "基隆市", + "Taoyuan": "桃園市", "MiaoliCounty": "苗栗縣", - "Keelung": "基隆市" + "PenghuCounty": "澎湖縣", + "HualienCounty": "花蓮縣", + "Taichung": "臺中市" } }, { @@ -3786,6 +3804,8 @@ "required": true, "type": "string", "enum": [ + "Taoyuan", + "Taichung", "Hsinchu", "HsinchuCounty", "MiaoliCounty", @@ -3801,28 +3821,28 @@ "KinmenCounty" ], "x-enum": { + "NantouCounty": "南投縣", + "PingtungCounty": "屏東縣", "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", + "KinmenCounty": "金門縣", "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", + "PenghuCounty": "澎湖縣", "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", + "NewTaipei": "新北市", + "HsinchuCounty": "新竹縣", + "ChanghuaCounty": "彰化縣", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", + "Chiayi": "嘉義市", + "Taichung": "臺中市", + "ChiayiCounty": "嘉義縣", + "Taoyuan": "桃園市", + "LienchiangCounty": "連江縣", + "Tainan": "臺南市", + "Keelung": "基隆市", "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "Hsinchu": "新竹市", + "HualienCounty": "花蓮縣" } }, { @@ -3921,6 +3941,8 @@ "required": true, "type": "string", "enum": [ + "Taoyuan", + "Taichung", "Hsinchu", "HsinchuCounty", "MiaoliCounty", @@ -3936,28 +3958,28 @@ "KinmenCounty" ], "x-enum": { + "NantouCounty": "南投縣", + "PingtungCounty": "屏東縣", "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", + "KinmenCounty": "金門縣", "Kaohsiung": "高雄市", - "Keelung": "基隆市", - "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", "MiaoliCounty": "苗栗縣", - "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", + "PenghuCounty": "澎湖縣", "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", + "NewTaipei": "新北市", + "HsinchuCounty": "新竹縣", + "ChanghuaCounty": "彰化縣", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", + "Chiayi": "嘉義市", + "Taichung": "臺中市", + "ChiayiCounty": "嘉義縣", + "Taoyuan": "桃園市", + "LienchiangCounty": "連江縣", + "Tainan": "臺南市", + "Keelung": "基隆市", "TaitungCounty": "臺東縣", - "KinmenCounty": "金門縣", - "PenghuCounty": "澎湖縣", - "LienchiangCounty": "連江縣" + "Hsinchu": "新竹市", + "HualienCounty": "花蓮縣" } }, { @@ -4078,25 +4100,29 @@ "YilanCounty", "HualienCounty", "TaitungCounty", - "PenghuCounty" + "PenghuCounty", + "Taichung", + "Taoyuan" ], "x-enum": { - "Keelung": "基隆市", - "Hsinchu": "新竹市", - "Tainan": "臺南市", - "HsinchuCounty": "新竹縣", + "NantouCounty": "南投縣", + "PingtungCounty": "屏東縣", + "Chiayi": "嘉義市", + "TaitungCounty": "臺東縣", "MiaoliCounty": "苗栗縣", + "YilanCounty": "宜蘭縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", + "Keelung": "基隆市", "YunlinCounty": "雲林縣", + "Taoyuan": "桃園市", + "HsinchuCounty": "新竹縣", + "Tainan": "臺南市", + "KinmenCounty": "金門縣", + "Taichung": "臺中市", "ChiayiCounty": "嘉義縣", - "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", + "Hsinchu": "新竹市", "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣", - "KinmenCounty": "金門縣" + "PenghuCounty": "澎湖縣" } }, { @@ -4211,18 +4237,18 @@ ], "x-enum": { "Hsinchu": "新竹市", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", + "HualienCounty": "花蓮縣", "ChanghuaCounty": "彰化縣", + "MiaoliCounty": "苗栗縣", "NantouCounty": "南投縣", + "TaitungCounty": "臺東縣", "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "PenghuCounty": "澎湖縣", + "HsinchuCounty": "新竹縣", "Chiayi": "嘉義市", "PingtungCounty": "屏東縣", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣" + "ChiayiCounty": "嘉義縣" } }, { @@ -4327,9 +4353,11 @@ "required": true, "type": "string", "enum": [ - "KinmenCounty" + "KinmenCounty", + "Taichung" ], "x-enum": { + "Taichung": "臺中市", "KinmenCounty": "金門縣" } }, @@ -4429,9 +4457,11 @@ "required": true, "type": "string", "enum": [ - "KinmenCounty" + "KinmenCounty", + "Taichung" ], "x-enum": { + "Taichung": "臺中市", "KinmenCounty": "金門縣" } }, @@ -4550,22 +4580,24 @@ "YilanCounty", "HualienCounty", "TaitungCounty", - "PenghuCounty" + "PenghuCounty", + "Taichung" ], "x-enum": { - "Hsinchu": "新竹市", + "TaitungCounty": "臺東縣", "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", "ChanghuaCounty": "彰化縣", - "NantouCounty": "南投縣", + "HualienCounty": "花蓮縣", + "PingtungCounty": "屏東縣", "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", + "Taichung": "臺中市", + "Hsinchu": "新竹市", + "PenghuCounty": "澎湖縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", + "MiaoliCounty": "苗栗縣", + "ChiayiCounty": "嘉義縣", "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "PenghuCounty": "澎湖縣" + "NantouCounty": "南投縣" } }, { @@ -4644,6 +4676,217 @@ } } }, + "/v2/Bus/RouteNetwork/City/{City}": { + "get": { + "tags": [ + "CityBus" + ], + "summary": "取得指定[縣市]的市區公車路線網路拓撲資料", + "description": "市區公車路線網路拓撲資料", + "operationId": "CityBusApi_RouteNetwork", + "produces": [ + "application/json", + "application/xml" + ], + "parameters": [ + { + "in": "path", + "name": "City", + "description": "欲查詢縣市", + "required": true, + "type": "string", + "enum": [ + "Taoyuan" + ], + "x-enum": { + "Taoyuan": "桃園市" + } + }, + { + "in": "query", + "name": "$select", + "description": "挑選", + "type": "string" + }, + { + "in": "query", + "name": "$filter", + "description": "過濾", + "type": "string" + }, + { + "in": "query", + "name": "$orderby", + "description": "排序", + "type": "string" + }, + { + "in": "query", + "name": "$top", + "description": "取前幾筆", + "type": "integer", + "default": 30 + }, + { + "in": "query", + "name": "$skip", + "description": "跳過前幾筆", + "type": "string" + }, + { + "in": "query", + "name": "health", + "description": "加入參數'?health=true'即可查詢此API服務的健康狀態", + "type": "string", + "enum": [ + "true", + "false" + ] + }, + { + "in": "query", + "name": "$format", + "description": "指定來源格式", + "required": true, + "type": "string", + "enum": [ + "JSON", + "XML" + ] + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "title": "Array", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork" + } + } + }, + "304": { + "description": "服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content" + }, + "299": { + "description": "加入參數'?health=true'即可查詢此API服務的健康狀態", + "schema": { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth" + } + } + } + } + }, + "/v2/Bus/RouteNetwork/City/{City}/{RouteName}": { + "get": { + "tags": [ + "CityBus" + ], + "summary": "取得指定[縣市],[路線名稱]的市區公車顯示用路線站序資料", + "description": "市區公車之顯示用路線站序資料", + "operationId": "CityBusApi_RouteNetwork_1", + "produces": [ + "application/json", + "application/xml" + ], + "parameters": [ + { + "in": "path", + "name": "City", + "description": "欲查詢縣市", + "required": true, + "type": "string", + "enum": [ + "Taoyuan" + ], + "x-enum": { + "Taoyuan": "桃園市" + } + }, + { + "in": "path", + "name": "RouteName", + "description": "繁體中文路線名稱,如'307'", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "$select", + "description": "挑選", + "type": "string" + }, + { + "in": "query", + "name": "$filter", + "description": "過濾", + "type": "string" + }, + { + "in": "query", + "name": "$orderby", + "description": "排序", + "type": "string" + }, + { + "in": "query", + "name": "$top", + "description": "取前幾筆", + "type": "integer", + "default": 30 + }, + { + "in": "query", + "name": "$skip", + "description": "跳過前幾筆", + "type": "string" + }, + { + "in": "query", + "name": "health", + "description": "加入參數'?health=true'即可查詢此API服務的健康狀態", + "type": "string", + "enum": [ + "true", + "false" + ] + }, + { + "in": "query", + "name": "$format", + "description": "指定來源格式", + "required": true, + "type": "string", + "enum": [ + "JSON", + "XML" + ] + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "title": "Array", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork" + } + } + }, + "304": { + "description": "服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content" + }, + "299": { + "description": "加入參數'?health=true'即可查詢此API服務的健康狀態", + "schema": { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth" + } + } + } + } + }, "/v2/Bus/S2STravelTime/City/{City}/{RouteID}": { "get": { "tags": [ @@ -4679,28 +4922,28 @@ "PenghuCounty" ], "x-enum": { + "TaitungCounty": "臺東縣", + "HsinchuCounty": "新竹縣", + "PenghuCounty": "澎湖縣", + "HualienCounty": "花蓮縣", + "ChiayiCounty": "嘉義縣", + "NewTaipei": "新北市", + "Kaohsiung": "高雄市", "KinmenCounty": "金門縣", + "Taoyuan": "桃園市", + "YilanCounty": "宜蘭縣", + "Keelung": "基隆市", + "PingtungCounty": "屏東縣", "LienchiangCounty": "連江縣", - "PenghuCounty": "澎湖縣", - "HsinchuCounty": "新竹縣", - "MiaoliCounty": "苗栗縣", "ChanghuaCounty": "彰化縣", - "Hsinchu": "新竹市", + "MiaoliCounty": "苗栗縣", + "Tainan": "臺南市", "NantouCounty": "南投縣", + "Taipei": "臺北市", + "Hsinchu": "新竹市", "YunlinCounty": "雲林縣", - "ChiayiCounty": "嘉義縣", "Chiayi": "嘉義市", - "PingtungCounty": "屏東縣", - "YilanCounty": "宜蘭縣", - "HualienCounty": "花蓮縣", - "TaitungCounty": "臺東縣", - "Taipei": "臺北市", - "NewTaipei": "新北市", - "Taoyuan": "桃園市", - "Taichung": "臺中市", - "Tainan": "臺南市", - "Kaohsiung": "高雄市", - "Keelung": "基隆市" + "Taichung": "臺中市" } }, { @@ -5930,9 +6173,7 @@ "operationId": "InterCityBusApi_DataVersion", "produces": [ "application/json", - "application/xml", - "text/plain", - "text/json" + "application/xml" ], "parameters": [ { @@ -8216,167 +8457,47 @@ } }, "definitions": { - "PTX.Service.DTO.Shared.Specification.V3.Base.Inbound": { - "title": "Inbound", - "description": "本平台資料來源轉入狀態", + "PTX.Service.DTO.Bus.Specification.V2.BusA1Data": { + "title": "BusA1Data", + "description": "定時車機資料型別", "required": [ - "CheckTime", - "Status" - ], - "type": "object", - "properties": { - "CheckTime": { - "title": "DateTime", - "description": "檢核時間", - "type": "string" - }, - "Status": { - "format": "int32", - "title": "integer", - "description": "檢核結果狀態 : [0:'失敗',1:'成功']", - "type": "integer" - }, - "Reason": { - "title": "String", - "description": "檢核失敗原因", - "type": "string" - } - } - }, - "PTX.Service.DTO.Shared.Specification.V3.Base.Outbound": { - "title": "Outbound", - "description": "本平台API狀態", - "required": [ - "CheckTime", - "Status" - ], - "type": "object", - "properties": { - "CheckTime": { - "title": "DateTime", - "description": "檢核時間", - "type": "string" - }, - "Status": { - "format": "int32", - "title": "integer", - "description": "檢核結果狀態 : [0:'失敗',1:'成功']", - "type": "integer" - }, - "Reason": { - "title": "String", - "description": "檢核失敗原因", - "type": "string" - } - } - }, - "PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth": { - "title": "DisplayHealth", - "description": "API服務健康狀態", - "required": [ - "ServiceID", - "ServiceName" - ], - "type": "object", - "properties": { - "ServiceID": { - "title": "String", - "description": "API服務代碼", - "type": "string" - }, - "ServiceName": { - "title": "String", - "description": "API服務中文名稱", - "type": "string" - }, - "Inbound": { - "title": "Inbound", - "description": "本平台資料來源轉入狀態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Inbound" - } - ] - }, - "Outbound": { - "title": "Outbound", - "description": "本平台API狀態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Outbound" - } - ] - } - } - }, - "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": { - "title": "NameType", - "description": "名稱資料型別", - "type": "object", - "properties": { - "Zh_tw": { - "title": "String", - "description": "中文繁體名稱", - "type": "string" - }, - "En": { - "title": "String", - "description": "英文名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Shared.Specification.V2.Base.PointType": { - "title": "PointType", - "description": "座標資料型別", - "type": "object", - "properties": { - "PositionLat": { - "format": "double", - "description": "位置緯度(WGS84)", - "type": "number" - }, - "PositionLon": { - "format": "double", - "description": "位置經度(WGS84)", - "type": "number" - }, - "GeoHash": { - "title": "String", - "description": "地理空間編碼", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusA1Data": { - "title": "BusA1Data", - "description": "定時車機資料型別", - "required": [ - "GPSTime", - "PlateNumb", - "UpdateTime" + "GPSTime", + "PlateNumb", + "UpdateTime" ], "type": "object", "properties": { "PlateNumb": { "title": "String", "description": "車牌號碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorID": { "title": "String", "description": "營運業者代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -8385,17 +8506,26 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "SubRouteUID": { "title": "String", "description": "子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", "description": "地區既用中之子路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteName": { "title": "NameType", @@ -8404,10 +8534,12 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" @@ -8419,7 +8551,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" } - ] + ], + "xml": { + "name": "PointType" + } }, "Speed": { "format": "double", @@ -8432,22 +8567,19 @@ "type": "number" }, "DutyStatus": { - "format": "int32", "title": "integer", "description": "勤務狀態 : [0:'正常',1:'開始',2:'結束']", - "type": "integer" + "type": "string" }, "BusStatus": { - "format": "int32", "title": "integer", "description": "行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知']", - "type": "integer" + "type": "string" }, "MessageType": { - "format": "int32", "title": "integer", "description": "資料型態種類 : [0:'未知',1:'定期',2:'非定期']", - "type": "integer" + "type": "string" }, "GPSTime": { "title": "DateTime", @@ -8479,6 +8611,9 @@ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "BusA1Data" } }, "PTX.Service.DTO.Bus.Specification.V2.BusA2Data": { @@ -8495,22 +8630,34 @@ "PlateNumb": { "title": "String", "description": "車牌號碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorID": { "title": "String", "description": "營運業者代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -8519,17 +8666,26 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "SubRouteUID": { "title": "String", "description": "子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", "description": "地區既用中之子路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteName": { "title": "NameType", @@ -8538,10 +8694,12 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" @@ -8549,12 +8707,18 @@ "StopUID": { "title": "String", "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopID": { "title": "String", "description": "地區既用中之站牌代號(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopName": { "title": "NameType", @@ -8563,7 +8727,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "StopSequence": { "format": "int32", @@ -8572,28 +8739,24 @@ "type": "integer" }, "MessageType": { - "format": "int32", "title": "integer", "description": "資料型態種類 : [0:'未知',1:'定期',2:'非定期']", - "type": "integer" + "type": "string" }, "DutyStatus": { - "format": "int32", "title": "integer", "description": "勤務狀態 : [0:'正常',1:'開始',2:'結束']", - "type": "integer" + "type": "string" }, "BusStatus": { - "format": "int32", "title": "integer", "description": "行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知']", - "type": "integer" + "type": "string" }, "A2EventType": { - "format": "int32", "title": "integer", "description": "進站離站 : [0:'離站',1:'進站']", - "type": "integer" + "type": "string" }, "GPSTime": { "title": "DateTime", @@ -8625,85 +8788,190 @@ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "BusA2Data" } }, - "PTX.Service.DTO.Bus.Specification.V2.Scope+Operator": { - "title": "Operator", - "description": "營運業者資料", + "PTX.Service.DTO.Bus.Specification.V2.BusAlert": { + "title": "BusAlert", + "required": [ + "AlertID", + "Department", + "Description", + "Scope", + "Title" + ], "type": "object", "properties": { - "OperatorID": { + "AlertID": { "title": "String", - "description": "營運業者代碼 ,", - "type": "string" + "description": "通阻事件原單位發布代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorName": { - "title": "NameType", - "description": "營運業者名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.Scope+Stop": { - "title": "Stop", - "description": "站牌資料", - "type": "object", - "properties": { - "StopID": { + "Title": { "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", + "description": "通阻標題", + "type": "string", + "xml": { + "name": "String" + } + }, + "Description": { + "title": "String", + "description": "事件描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "Department": { + "title": "String", + "description": "發布單位", + "type": "string", + "xml": { + "name": "String" + } + }, + "Status": { + "title": "integer", + "description": "營運狀況 : [0:'全部營運停止',1:'全部營運正常',2:'有異常狀況']", "type": "string" }, - "StopName": { - "title": "NameType", - "description": "站牌名稱", + "Cause": { + "title": "integer", + "description": "原因 : [1:'事故',2:'維護',3:'技術問題',4:'施工',5:'急救',6:'天災',7:'示威遊行',8:'維安',9:'假日',10:'罷工',254:'其他',255:'未知原因']", + "type": "string" + }, + "Effect": { + "title": "integer", + "description": "影響 : [1:'車輛改道',2:'服務班次增加',3:'服務班次減少',4:'服務班次取消',5:'服務班次改變',6:'站牌不停靠',7:'重大延遲',254:'其他影響',255:'未知影響']", + "type": "string" + }, + "Scope": { + "title": "Scope", + "description": "通阻影響範圍", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope" } - ] + ], + "xml": { + "name": "Scope" + } }, - "StationID": { + "AlertURL": { "title": "String", - "description": "站位代碼", + "description": "詳細描述網站連結", + "type": "string", + "xml": { + "name": "String" + } + }, + "PublishTime": { + "title": "DateTime", + "description": "消息公告日期時間", + "type": "string" + }, + "StartTime": { + "title": "DateTime", + "description": "開始日期時間", + "type": "string" + }, + "EndTime": { + "title": "DateTime", + "description": "結束日期時間", + "type": "string" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]此筆資料最後更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "BusAlert" } }, - "PTX.Service.DTO.Bus.Specification.V2.Scope+Station": { - "title": "Station", - "description": "站位資料", + "PTX.Service.DTO.Bus.Specification.V2.BusDiscountPeriods": { + "title": "BusDiscountPeriods", + "description": "優惠時段", + "required": [ + "EndTime", + "ServiceDay", + "StartTime" + ], "type": "object", "properties": { - "StationID": { - "title": "String", - "description": "站位代碼", - "type": "string" - }, - "StationName": { - "title": "NameType", - "description": "站位名稱", + "ServiceDay": { + "title": "ServiceDay", + "description": "營運日型態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay" } - ] + ], + "xml": { + "name": "ServiceDay" + } + }, + "StartTime": { + "title": "String", + "description": "開始時間(HH:mm制)", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndTime": { + "title": "String", + "description": "結束時間(HH:mm制)", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "BusDiscountPeriods" } }, - "PTX.Service.DTO.Bus.Specification.V2.Scope+Route": { - "title": "Route", - "description": "路線資料", + "PTX.Service.DTO.Bus.Specification.V2.BusDisplayStopOfRoute": { + "title": "BusDisplayStopOfRoute", + "description": "顯示用路線站序資料", + "required": [ + "RouteID", + "RouteName", + "RouteUID", + "Stops", + "UpdateTime", + "VersionID" + ], "type": "object", "properties": { + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, "RouteID": { "title": "String", - "description": "地區既用中之班次代碼(為原資料內碼)", - "type": "string" + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -8712,335 +8980,189 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", - "description": "影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.Scope+SubRoute": { - "title": "SubRoute", - "description": "附屬路線資料", - "type": "object", - "properties": { - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬班次代碼(為原資料內碼)", - "type": "string" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "Stops": { + "title": "Array", + "description": "所有經過站牌", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.Stop" + }, + "xml": { + "name": "List`1" + } }, - "Direction": { + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "VersionID": { "format": "int32", - "title": "integer", - "description": "影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "title": "Int32", + "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "BusDisplayStopOfRoute" } }, - "PTX.Service.DTO.Bus.Specification.V2.Scope+Trip": { - "title": "Trip", - "description": "班次代碼資料", + "PTX.Service.DTO.Bus.Specification.V2.BusFare": { + "title": "BusFare", + "description": "票票價種類及費率說明", + "required": [ + "FareClass", + "Price", + "TicketType" + ], "type": "object", "properties": { - "TripID": { + "FareName": { "title": "String", - "description": "地區既用中之班次代碼(為原資料內碼)", - "type": "string" + "description": "票價名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteID": { - "title": "String", - "description": "地區既用中之班次代碼(為原資料內碼)", + "TicketType": { + "title": "integer", + "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", "type": "string" }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬班次代碼(為原資料內碼)", + "FareClass": { + "title": "integer", + "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", "type": "string" }, - "Direction": { + "Price": { "format": "int32", - "title": "integer", - "description": "影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "title": "Int32", + "description": "計費價格(新台幣),其中-1表示不提供售票服務", "type": "integer" }, - "TripDepTime": { - "title": "String", - "description": "首站發車時間(HH:mm)", - "type": "string" + "DiscountPeriods": { + "title": "Array", + "description": "優惠時段", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusDiscountPeriods" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusFare" } }, - "PTX.Service.DTO.Bus.Specification.V2.Scope": { - "title": "Scope", - "description": "通阻影響範圍", + "PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo": { + "title": "BusFirstLastTripInfo", + "description": "路線首末班車資料型別", + "required": [ + "Direction", + "FirstLastTrips", + "OperatorID", + "RouteID", + "RouteName", + "RouteUID", + "SubRouteID", + "SubRouteName", + "SubRouteUID", + "UpdateTime", + "VersionID" + ], "type": "object", "properties": { - "Operators": { - "title": "Array", - "description": "營運業者資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Operator" + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" } }, - "Stops": { - "title": "Array", - "description": "站牌資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Stop" + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" } }, - "Stations": { - "title": "Array", - "description": "站位資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Station" + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" } }, - "Routes": { - "title": "Array", - "description": "路線資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Route" + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" } }, - "SubRoutes": { - "title": "Array", - "description": "附屬路線資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+SubRoute" + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" } }, - "Trips": { - "title": "Array", - "description": "班次資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Trip" + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" } - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusAlert": { - "title": "BusAlert", - "required": [ - "AlertID", - "Department", - "Description", - "Scope", - "Title" - ], - "type": "object", - "properties": { - "AlertID": { - "title": "String", - "description": "通阻事件原單位發布代碼", - "type": "string" - }, - "Title": { - "title": "String", - "description": "通阻標題", - "type": "string" - }, - "Description": { - "title": "String", - "description": "事件描述", - "type": "string" - }, - "Department": { - "title": "String", - "description": "發布單位", - "type": "string" - }, - "Status": { - "format": "int32", - "title": "integer", - "description": "營運狀況 : [0:'全部營運停止',1:'全部營運正常',2:'有異常狀況']", - "type": "integer" - }, - "Cause": { - "format": "int32", - "title": "integer", - "description": "原因 : [1:'事故',2:'維護',3:'技術問題',4:'施工',5:'急救',6:'天災',7:'示威遊行',8:'維安',9:'假日',10:'罷工',254:'其他',255:'未知原因']", - "type": "integer" - }, - "Effect": { - "format": "int32", - "title": "integer", - "description": "影響 : [1:'車輛改道',2:'服務班次增加',3:'服務班次減少',4:'服務班次取消',5:'服務班次改變',6:'站牌不停靠',7:'重大延遲',254:'其他影響',255:'未知影響']", - "type": "integer" - }, - "Scope": { - "title": "Scope", - "description": "通阻影響範圍", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope" - } - ] - }, - "AlertURL": { - "title": "String", - "description": "詳細描述網站連結", - "type": "string" - }, - "PublishTime": { - "title": "DateTime", - "description": "消息公告日期時間", - "type": "string" - }, - "StartTime": { - "title": "DateTime", - "description": "開始日期時間", - "type": "string" - }, - "EndTime": { - "title": "DateTime", - "description": "結束日期時間", - "type": "string" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]此筆資料最後更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.Embedded.Stop": { - "title": "Stop", - "description": "站牌代碼資料", - "required": [ - "StationGroupID", - "StopID", - "StopName", - "StopPosition", - "StopSequence", - "StopUID" - ], - "type": "object", - "properties": { - "StopUID": { - "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "StopID": { - "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" - }, - "StopName": { - "title": "NameType", - "description": "站牌名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "StopBoarding": { - "format": "int32", - "title": "integer", - "description": "上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車']", - "type": "integer" - }, - "StopSequence": { - "format": "int32", - "title": "Int32", - "description": "路線經過站牌之順序", - "type": "integer" - }, - "StopPosition": { - "title": "PointType", - "description": "站牌位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" - } - ] - }, - "StationID": { - "title": "String", - "description": "站牌所屬的站位ID", - "type": "string" - }, - "StationGroupID": { - "title": "String", - "description": "站牌所屬的組站位ID", - "type": "string" - }, - "LocationCityCode": { - "title": "String", - "description": "站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusDisplayStopOfRoute": { - "title": "BusDisplayStopOfRoute", - "description": "顯示用路線站序資料", - "required": [ - "RouteID", - "RouteName", - "RouteUID", - "Stops", - "UpdateTime", - "VersionID" - ], - "type": "object", - "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" }, - "RouteName": { + "SubRouteName": { "title": "NameType", - "description": "路線名稱", + "description": "附屬路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" }, - "Stops": { + "FirstLastTrips": { "title": "Array", - "description": "所有經過站牌", + "description": "首末班車", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.Stop" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.FirstLastTrip" + }, + "xml": { + "name": "List`1" } }, "UpdateTime": { @@ -9054,6 +9176,9 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "BusFirstLastTripInfo" } }, "PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo+ServiceDay": { @@ -9070,216 +9195,130 @@ "type": "object", "properties": { "DayBeforeNationalHoliday": { - "format": "int32", "title": "integer", "description": "國定假日前一日營運與否 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "DayAfterNationalHoliday": { - "format": "int32", "title": "integer", "description": "國定假日後一日營運與否 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "TyphoonDay": { - "format": "int32", "title": "integer", "description": "颱風停止上班上課期間營運與否 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "Sunday": { - "format": "int32", "title": "integer", "description": "星期日是否營運 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "Monday": { - "format": "int32", "title": "integer", "description": "星期一是否營運 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "Tuesday": { - "format": "int32", "title": "integer", "description": "星期二是否營運 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "Wednesday": { - "format": "int32", "title": "integer", "description": "星期三是否營運 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "Thursday": { - "format": "int32", "title": "integer", "description": "星期四是否營運 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "Friday": { - "format": "int32", "title": "integer", "description": "星期五是否營運 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "Saturday": { - "format": "int32", "title": "integer", "description": "星期六是否營運 : [0:'否',1:'是']", - "type": "integer" + "type": "string" }, "NationalHolidays": { - "format": "int32", "title": "integer", "description": "國定假日營運與否 : [0:'否',1:'是']", - "type": "integer" + "type": "string" } + }, + "xml": { + "name": "ServiceDay" } }, - "PTX.Service.DTO.Bus.Specification.V2.FirstLastTrip": { - "title": "FirstLastTrip", - "description": "首末班車資料型別", + "PTX.Service.DTO.Bus.Specification.V2.BusFrequency": { + "title": "BusFrequency", + "description": "發車班距資料", "required": [ - "FirstTripDepTime", - "LastTripDepTime", - "ServiceDay" + "EndTime", + "MaxHeadwayMins", + "MinHeadwayMins", + "StartTime" ], "type": "object", "properties": { - "ServiceDay": { - "title": "ServiceDay", - "description": "服務日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo+ServiceDay" - } - ] - }, - "FirstTripDepTime": { + "StartTime": { "title": "String", - "description": "頭班車發車時間(HH:mm)", - "type": "string" + "description": "發車班距起始適用時間,格式為: HH:mm", + "type": "string", + "xml": { + "name": "String" + } }, - "LastTripDepTime": { + "EndTime": { "title": "String", - "description": "末班車發車時間(HH:mm)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo": { - "title": "BusFirstLastTripInfo", - "description": "路線首末班車資料型別", - "required": [ - "Direction", - "FirstLastTrips", - "OperatorID", - "RouteID", - "RouteName", - "RouteUID", - "SubRouteID", - "SubRouteName", - "SubRouteUID", - "UpdateTime", - "VersionID" - ], - "type": "object", - "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" - }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "發車班距結束適用時間,格式為: HH:mm", + "type": "string", + "xml": { + "name": "String" + } }, - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "MinHeadwayMins": { + "format": "int32", + "title": "Int32", + "description": "最小班距時間(分鐘)", + "type": "integer" }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" + "MaxHeadwayMins": { + "format": "int32", + "title": "Int32", + "description": "最大班距時間(分鐘)", + "type": "integer" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", + "ServiceDay": { + "title": "ServiceDay", + "description": "週內營運日", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay" } - ] - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + ], + "xml": { + "name": "ServiceDay" + } }, - "FirstLastTrips": { + "SpecialDays": { "title": "Array", - "description": "首末班車", + "description": "特殊營運日", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.FirstLastTrip" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SpecialDay" + }, + "xml": { + "name": "List`1" } - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.N1.Estimate": { - "title": "Estimate", - "type": "object", - "properties": { - "PlateNumb": { - "title": "String", - "description": "車輛車牌號碼", - "type": "string" - }, - "EstimateTime": { - "format": "int32", - "description": "車輛之到站時間預估(秒)", - "type": "integer" - }, - "IsLastBus": { - "description": "是否為末班車", - "type": "boolean" - }, - "VehicleStopStatus": { - "format": "int32", - "title": "integer", - "description": "車輛於該站之進離站狀態 : [0:'離站',1:'進站']", - "type": "integer" } + }, + "xml": { + "name": "BusFrequency" } }, "PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime": { @@ -9293,17 +9332,26 @@ "PlateNumb": { "title": "String", "description": "車牌號碼 [値為値為-1時,表示目前該站位無車輛行駛]", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopUID": { "title": "String", "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopID": { "title": "String", "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopName": { "title": "NameType", @@ -9312,17 +9360,26 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -9331,17 +9388,26 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "SubRouteUID": { "title": "String", "description": "子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", "description": "地區既用中之子路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteName": { "title": "NameType", @@ -9350,10 +9416,12 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "去返程(該方向指的是此車牌車輛目前所在路線的去返程方向,非指站站牌所在路線的去返程方向,使用時請加值業者多加注意) : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" @@ -9371,12 +9439,18 @@ "CurrentStop": { "title": "String", "description": "車輛目前所在站牌代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "DestinationStop": { "title": "String", "description": "車輛目的站牌代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopSequence": { "format": "int32", @@ -9384,16 +9458,14 @@ "type": "integer" }, "StopStatus": { - "format": "int32", "title": "integer", "description": "車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運']", - "type": "integer" + "type": "string" }, "MessageType": { - "format": "int32", "title": "integer", "description": "資料型態種類 : [0:'未知',1:'定期',2:'非定期']", - "type": "integer" + "type": "string" }, "NextBusTime": { "title": "DateTime", @@ -9410,6 +9482,9 @@ "type": "array", "items": { "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.N1.Estimate" + }, + "xml": { + "name": "List`1" } }, "DataTime": { @@ -9442,6 +9517,9 @@ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "BusN1EstimateTime" } }, "PTX.Service.DTO.Bus.Specification.V2.BusNews": { @@ -9460,53 +9538,79 @@ "NewsID": { "title": "String", "description": "最新消息原單位發布代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Language": { "title": "String", "description": "語系", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Department": { "title": "String", "description": "發布單位", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Title": { "title": "String", "description": "消息標題", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "NewsCategory": { - "format": "int32", "title": "integer", "description": "消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'通阻資訊',99:'其他']", - "type": "integer" + "type": "string" }, "Description": { "title": "String", "description": "內容描述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ContactName": { "title": "String", "description": "聯絡人/單位", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ContactPhone": { "title": "String", "description": "聯絡電話", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "NewsURL": { "title": "String", "description": "報導網站連結", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "AttachmentURL": { "title": "String", "description": "相關網站連結", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "PublishTime": { "title": "DateTime", @@ -9533,239 +9637,104 @@ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "BusNews" } }, - "PTX.Service.DTO.Shared.Specification.V2.Base.Operator": { - "title": "Operator", - "description": "營運業者資料型別", + "PTX.Service.DTO.Bus.Specification.V2.BusODFare": { + "title": "BusODFare", + "description": "起迄站間計費", "required": [ - "AuthorityCode", - "OperatorCode", - "OperatorID", - "OperatorName", - "OperatorNo", - "ProviderID", - "UpdateTime" + "DestinationStop", + "Direction", + "Fares", + "OriginStop" ], "type": "object", "properties": { - "ProviderID": { - "title": "String", - "description": "資料提供平台代碼", - "type": "string" + "Direction": { + "title": "integer", + "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer" }, - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" + "OriginStop": { + "title": "Stop", + "description": "計費起點站牌資訊", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Stop" + } + ], + "xml": { + "name": "Stop" + } }, - "OperatorName": { - "title": "NameType", - "description": "營運業者名稱", + "DestinationStop": { + "title": "Stop", + "description": "計費迄點站牌資訊", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Stop" } - ] + ], + "xml": { + "name": "Stop" + } }, - "OperatorPhone": { + "Fares": { + "title": "Array", + "description": "票價內容", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Fare" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "BusODFare" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.BusRoute": { + "title": "BusRoute", + "description": "路線資料型別", + "required": [ + "AuthorityID", + "BusRouteType", + "HasSubRoutes", + "Operators", + "ProviderID", + "RouteID", + "RouteName", + "RouteUID", + "UpdateTime", + "VersionID" + ], + "type": "object", + "properties": { + "RouteUID": { "title": "String", - "description": "營運業者連絡電話", - "type": "string" + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorEmail": { + "RouteID": { "title": "String", - "description": "營運業者電子信箱", - "type": "string" + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorUrl": { - "title": "String", - "description": "營運業者網址鏈結", - "type": "string" - }, - "ReservationUrl": { - "title": "String", - "description": "訂票網址鏈結", - "type": "string" - }, - "ReservationPhone": { - "title": "String", - "description": "訂票連絡電話", - "type": "string" - }, - "OperatorCode": { - "title": "String", - "description": "營運業者簡碼", - "type": "string" - }, - "AuthorityCode": { - "title": "String", - "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)", - "type": "string" - }, - "SubAuthorityCode": { - "title": "String", - "description": "營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)", - "type": "string" - }, - "OperatorNo": { - "title": "String", - "description": "營運業者編號[交通部票證資料系統定義]", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.Embedded.RouteOperator": { - "title": "RouteOperator", - "description": "營運業者資訊", - "required": [ - "OperatorCode", - "OperatorID", - "OperatorName", - "OperatorNo" - ], - "type": "object", - "properties": { - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" - }, - "OperatorName": { - "title": "NameType", - "description": "營運業者名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "OperatorCode": { - "title": "String", - "description": "營運業者簡碼", - "type": "string" - }, - "OperatorNo": { - "title": "String", - "description": "營運業者編號[交通部票證資料系統定義]", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusSubRoute": { - "title": "BusSubRoute", - "description": "附屬路線資料型別", - "required": [ - "Direction", - "OperatorIDs", - "SubRouteID", - "SubRouteName", - "SubRouteUID" - ], - "type": "object", - "properties": { - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" - }, - "OperatorIDs": { - "title": "Array", - "description": "營運業者代碼", - "type": "array", - "items": { - "title": "String", - "type": "string" - } - }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "Headsign": { - "title": "String", - "description": "車頭描述", - "type": "string" - }, - "HeadsignEn": { - "title": "String", - "description": "車頭英文描述", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" - }, - "FirstBusTime": { - "title": "String", - "description": "平日第一班發車時間", - "type": "string" - }, - "LastBusTime": { - "title": "String", - "description": "平日返程第一班發車時間", - "type": "string" - }, - "HolidayFirstBusTime": { - "title": "String", - "description": "假日去程第一班發車時間", - "type": "string" - }, - "HolidayLastBusTime": { - "title": "String", - "description": "假日返程第一班發車時間", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusRoute": { - "title": "BusRoute", - "description": "路線資料型別", - "required": [ - "AuthorityID", - "BusRouteType", - "HasSubRoutes", - "Operators", - "ProviderID", - "RouteID", - "RouteName", - "RouteUID", - "UpdateTime", - "VersionID" - ], - "type": "object", - "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" - }, - "HasSubRoutes": { - "title": "Boolean", - "description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)", - "type": "boolean" + "HasSubRoutes": { + "title": "Boolean", + "description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)", + "type": "boolean" }, "Operators": { "title": "Array", @@ -9773,17 +9742,26 @@ "type": "array", "items": { "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.RouteOperator" + }, + "xml": { + "name": "List`1" } }, "AuthorityID": { "title": "String", "description": "業管機關代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ProviderID": { "title": "String", "description": "資料提供平台代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRoutes": { "title": "Array", @@ -9791,10 +9769,12 @@ "type": "array", "items": { "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusSubRoute" + }, + "xml": { + "name": "List`1" } }, "BusRouteType": { - "format": "int32", "title": "integer", "description": "公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運',14:'接駁車']", "type": "integer" @@ -9806,62 +9786,98 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "DepartureStopNameZh": { "title": "String", "description": "起站中文名稱", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "DepartureStopNameEn": { "title": "String", "description": "起站英文名稱", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "DestinationStopNameZh": { "title": "String", "description": "終點站中文名稱", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "DestinationStopNameEn": { "title": "String", "description": "終點站英文名稱", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TicketPriceDescriptionZh": { "title": "String", "description": "票價中文敘述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TicketPriceDescriptionEn": { "title": "String", "description": "票價英文敘述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "FareBufferZoneDescriptionZh": { "title": "String", "description": "收費緩衝區中文敘述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "FareBufferZoneDescriptionEn": { "title": "String", "description": "收費緩衝區英文敘述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteMapImageUrl": { "title": "String", "description": "路線簡圖網址", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "City": { "title": "String", "description": "路線權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "CityCode": { "title": "String", "description": "路線權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "UpdateTime": { "title": "DateTime", @@ -9874,81 +9890,123 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "BusRoute" } }, - "PTX.Service.DTO.Bus.Specification.V2.SectionFare+Stop": { - "title": "Stop", + "PTX.Service.DTO.Bus.Specification.V2.BusRouteFare": { + "title": "BusRouteFare", + "description": "路線票價資料", "required": [ - "StopID", - "StopName" + "FarePricingType", + "IsForAllSubRoutes", + "IsFreeBus", + "OperatorID", + "RouteID", + "UpdateTime" ], "type": "object", "properties": { - "StopID": { + "RouteID": { "title": "String", - "description": "緩衝區站牌代碼", - "type": "string" + "description": "機關定義路線代號", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { + "RouteName": { "title": "String", - "description": "站牌名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.SectionFare+BufferZone": { - "title": "BufferZone", - "required": [ - "Direction", - "FareBufferZoneDestination", - "FareBufferZoneOrigin", - "SectionSequence" - ], - "type": "object", - "properties": { - "ZoneID": { + "description": "路線名稱", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorID": { "title": "String", - "description": "緩衝區代號", - "type": "string" + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SectionSequence": { - "format": "int32", - "title": "Int32", - "description": "緩衝區順序", - "type": "integer" + "SubRouteID": { + "title": "String", + "description": "機關定義附屬路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Direction": { - "format": "int32", + "SubRouteName": { + "title": "String", + "description": "附屬路線名稱", + "type": "string", + "xml": { + "name": "String" + } + }, + "FarePricingType": { "title": "integer", - "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + "description": "描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']", + "type": "string" }, - "FareBufferZoneOrigin": { - "title": "Stop", - "description": "緩衝區起點", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+Stop" - } - ] + "IsFreeBus": { + "title": "integer", + "description": "是否為免費公車 : [0:'否',1:'是']", + "type": "string" }, - "FareBufferZoneDestination": { - "title": "Stop", - "description": "緩衝區訖點", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+Stop" - } - ] + "IsForAllSubRoutes": { + "title": "integer", + "description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']", + "type": "string" }, - "BufferZoneDescription": { - "title": "String", - "description": "收費緩衝區描述", + "SectionFares": { + "title": "Array", + "description": "段次計費", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare" + }, + "xml": { + "name": "List`1" + } + }, + "StageFares": { + "title": "Array", + "description": "計費站區間計費", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStageFare" + }, + "xml": { + "name": "List`1" + } + }, + "ODFares": { + "title": "Array", + "description": "起迄站間計費", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusODFare" + }, + "xml": { + "name": "List`1" + } + }, + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "BusRouteFare" } }, - "PTX.Service.DTO.Bus.Specification.V2.SectionFare+Fare": { + "PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Fare": { "title": "Fare", "required": [ "FareClass", @@ -9958,16 +10016,14 @@ "type": "object", "properties": { "TicketType": { - "format": "int32", "title": "integer", "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", - "type": "integer" + "type": "string" }, "FareClass": { - "format": "int32", "title": "integer", "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", - "type": "integer" + "type": "string" }, "Price": { "format": "int32", @@ -9975,652 +10031,880 @@ "description": "計費價格(新台幣),其中-1表示不提供售票服務", "type": "integer" } + }, + "xml": { + "name": "Fare" } }, - "PTX.Service.DTO.Bus.Specification.V2.SectionFare": { - "title": "SectionFare", - "description": "段次計費", - "required": [ - "BufferZones", - "Fares" - ], - "type": "object", - "properties": { - "BufferZones": { - "title": "Array", - "description": "緩衝區資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+BufferZone" - } - }, - "Fares": { - "title": "Array", - "description": "每段收費資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+Fare" - } - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusStage": { - "title": "BusStage", - "description": "計費站", + "PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Stop": { + "title": "Stop", "required": [ - "StopID" + "StopID", + "StopName" ], "type": "object", "properties": { "StopID": { "title": "String", - "description": "站牌代碼", - "type": "string" + "description": "緩衝區站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, "StopName": { "title": "String", - "description": "站牌名稱", - "type": "string" + "description": "緩衝區站牌名稱", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Stop" } }, - "PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay": { - "title": "ServiceDay", - "description": "週內營運日資料", + "PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork": { + "title": "BusRouteNetwork", "required": [ - "Friday", - "Monday", - "Saturday", - "Sunday", - "Thursday", - "Tuesday", - "Wednesday" + "RouteID", + "RouteName", + "RouteUID", + "Segments", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "Sunday": { - "format": "int32", - "title": "integer", - "description": "星期日是否營運 : [0:'否',1:'是']", - "type": "integer" - }, - "Monday": { - "format": "int32", - "title": "integer", - "description": "星期一是否營運 : [0:'否',1:'是']", - "type": "integer" - }, - "Tuesday": { - "format": "int32", - "title": "integer", - "description": "星期二是否營運 : [0:'否',1:'是']", - "type": "integer" + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "Wednesday": { - "format": "int32", - "title": "integer", - "description": "星期三是否營運 : [0:'否',1:'是']", - "type": "integer" + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "Thursday": { - "format": "int32", - "title": "integer", - "description": "星期四是否營運 : [0:'否',1:'是']", - "type": "integer" + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "Friday": { - "format": "int32", - "title": "integer", - "description": "星期五是否營運 : [0:'否',1:'是']", - "type": "integer" + "Segments": { + "title": "Array", + "description": "站間線段序號", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork+Segment" + }, + "xml": { + "name": "List`1" + } }, - "Saturday": { - "format": "int32", - "title": "integer", - "description": "星期六是否營運 : [0:'否',1:'是']", - "type": "integer" + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "NationalHolidays": { + "VersionID": { "format": "int32", - "title": "integer", - "description": "國定假日營運與否 : [0:'否',1:'是']", + "title": "Int32", + "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "BusRouteNetwork" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusDiscountPeriods": { - "title": "BusDiscountPeriods", - "description": "優惠時段", + "PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork+Segment": { + "title": "Segment", "required": [ - "EndTime", - "ServiceDay", - "StartTime" + "Distance", + "FromStationID", + "Sequence", + "ToStationID" ], "type": "object", "properties": { - "ServiceDay": { - "title": "ServiceDay", - "description": "營運日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay" - } - ] + "Sequence": { + "format": "float", + "title": "Single", + "description": "站間線段序號", + "type": "number" }, - "StartTime": { + "FromStationID": { "title": "String", - "description": "開始時間(HH:mm制)", - "type": "string" + "description": "表BusStation唯一碼(起點站牌)", + "type": "string", + "xml": { + "name": "String" + } }, - "EndTime": { + "ToStationID": { "title": "String", - "description": "結束時間(HH:mm制)", - "type": "string" + "description": "表BusStation唯一碼(迄點站牌)", + "type": "string", + "xml": { + "name": "String" + } + }, + "Distance": { + "format": "float", + "title": "Single", + "description": "站間線段距離", + "type": "number" } + }, + "xml": { + "name": "Segment" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusFare": { - "title": "BusFare", - "description": "票票價種類及費率說明", + "PTX.Service.DTO.Bus.Specification.V2.BusS2STravelTime": { + "title": "BusS2STravelTime", + "description": "站間旅行時間資料型別", "required": [ - "FareClass", - "Price", - "TicketType" + "Direction", + "RouteID", + "RouteUID", + "SubRouteID", + "SubRouteUID", + "TravelTimes", + "UpdateTime" ], "type": "object", "properties": { - "FareName": { + "RouteUID": { "title": "String", - "description": "票價名稱", - "type": "string" - }, - "TicketType": { - "format": "int32", - "title": "integer", - "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", - "type": "integer" + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "FareClass": { - "format": "int32", - "title": "integer", - "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", - "type": "integer" + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "Price": { - "format": "int32", - "title": "Int32", - "description": "計費價格(新台幣),其中-1表示不提供售票服務", - "type": "integer" + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "DiscountPeriods": { - "title": "Array", - "description": "優惠時段", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusDiscountPeriods" + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" } - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusStageFare": { - "title": "BusStageFare", - "description": "此計費方式以一路線內所有站牌分區收費。(公總稱之為計費站收費, Stage=計費站)", - "required": [ - "DestinationStage", - "Direction", - "Fares", - "OriginStage" - ], - "type": "object", - "properties": { + }, "Direction": { - "format": "int32", "title": "integer", - "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" }, - "OriginStage": { - "title": "BusStage", - "description": "起點計費站", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStage" - } - ] - }, - "DestinationStage": { - "title": "BusStage", - "description": "訖點計費站", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStage" - } - ] - }, - "Fares": { + "TravelTimes": { "title": "Array", - "description": "票價內容", + "description": "旅行時間資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFare" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.ServiceTime" + }, + "xml": { + "name": "List`1" } + }, + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" } + }, + "xml": { + "name": "BusS2STravelTime" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusRouteFare": { - "title": "BusRouteFare", - "description": "路線票價資料", + "PTX.Service.DTO.Bus.Specification.V2.BusSchedule": { + "title": "BusSchedule", + "description": "班表資料", "required": [ - "FarePricingType", - "IsForAllSubRoutes", - "IsFreeBus", - "OperatorID", + "Direction", "RouteID", - "UpdateTime" + "RouteName", + "RouteUID", + "SubRouteID", + "SubRouteName", + "SubRouteUID", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, "RouteID": { "title": "String", - "description": "機關定義路線代號", - "type": "string" + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { - "title": "String", + "title": "NameType", "description": "路線名稱", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "OperatorID": { + "SubRouteUID": { "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", - "description": "機關定義附屬路線代碼", - "type": "string" + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteName": { - "title": "String", + "title": "NameType", "description": "附屬路線名稱", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "FarePricingType": { - "format": "int32", + "Direction": { "title": "integer", - "description": "描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']", + "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" }, - "IsFreeBus": { - "format": "int32", - "title": "integer", - "description": "是否為免費公車 : [0:'否',1:'是']", - "type": "integer" + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "IsForAllSubRoutes": { - "format": "int32", - "title": "integer", - "description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']", - "type": "integer" + "OperatorCode": { + "title": "String", + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SectionFares": { + "Timetables": { "title": "Array", - "description": "段次計費", + "description": "預定班表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusTimetable" + }, + "xml": { + "name": "List`1" } }, - "StageFares": { + "Frequencys": { "title": "Array", - "description": "計費站區間計費", + "description": "發車班距", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStageFare" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFrequency" + }, + "xml": { + "name": "List`1" } }, "UpdateTime": { "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.TravelTime": { - "title": "TravelTime", - "required": [ - "FromStationID", - "FromStopID", - "RunTime", - "ToStationID", - "ToStopID" - ], - "type": "object", - "properties": { - "FromStopID": { - "title": "String", - "description": "起始站牌代碼", - "type": "string" - }, - "ToStopID": { - "title": "String", - "description": "終點站牌代碼", - "type": "string" - }, - "FromStationID": { - "title": "String", - "description": "起始站位代碼", - "type": "string" - }, - "ToStationID": { - "title": "String", - "description": "終點站位代碼", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "RunTime": { - "format": "int32", - "title": "Int32", - "description": "站間預估行駛時間 [當RunTime值為-1時,代表該區間無提供旅行時間資料。]", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.ServiceTime": { - "title": "ServiceTime", - "description": "行駛時間資料型別", - "required": [ - "EndHour", - "S2STimes", - "StartHour", - "Weekday" - ], - "type": "object", - "properties": { - "Weekday": { - "format": "int32", - "title": "Int32", - "description": "星期", - "type": "integer" - }, - "StartHour": { - "format": "int32", - "title": "Int32", - "description": "起始時區(小時)", - "type": "integer" - }, - "EndHour": { + "VersionID": { "format": "int32", "title": "Int32", - "description": "結束時區(小時)", + "description": "資料版本編號", "type": "integer" - }, - "S2STimes": { - "title": "Array", - "description": "站間行駛時間資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.TravelTime" - } } + }, + "xml": { + "name": "BusSchedule" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusS2STravelTime": { - "title": "BusS2STravelTime", - "description": "站間旅行時間資料型別", + "PTX.Service.DTO.Bus.Specification.V2.BusShape": { + "title": "BusShape", + "description": "公車線型資料", "required": [ "Direction", + "EncodedPolyline", + "Geometry", "RouteID", + "RouteName", "RouteUID", - "SubRouteID", "SubRouteUID", - "TravelTimes", - "UpdateTime" + "UpdateTime", + "VersionID" ], "type": "object", "properties": { "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, "SubRouteUID": { "title": "String", "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "附屬路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", - "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "description": "去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" }, - "TravelTimes": { - "title": "Array", - "description": "旅行時間資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.ServiceTime" + "Geometry": { + "title": "String", + "description": "well-known text,為路線軌跡資料", + "type": "string", + "xml": { + "name": "String" + } + }, + "EncodedPolyline": { + "title": "String", + "description": "路線軌跡編碼(encoded polyline)", + "type": "string", + "xml": { + "name": "String" } }, "UpdateTime": { "title": "DateTime", "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號(由於該服務資料不再版控,固定帶入版號0)", + "type": "integer" } + }, + "xml": { + "name": "BusShape" } }, - "PTX.Service.DTO.Bus.Specification.V2.DatePeriod": { - "title": "DatePeriod", + "PTX.Service.DTO.Bus.Specification.V2.BusStage": { + "title": "BusStage", + "description": "計費站", + "required": [ + "StopID" + ], "type": "object", "properties": { - "StartDate": { + "StopID": { "title": "String", - "description": "營運起始日(格式: yyyy-MM-dd)", - "type": "string" + "description": "站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "EndDate": { + "StopName": { "title": "String", - "description": "營運結束日(格式: yyyy-MM-dd)", - "type": "string" + "description": "站牌名稱", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "BusStage" } }, - "PTX.Service.DTO.Bus.Specification.V2.SpecialDay": { - "title": "SpecialDay", - "description": "特殊營運日資料", + "PTX.Service.DTO.Bus.Specification.V2.BusStageFare": { + "title": "BusStageFare", + "description": "此計費方式以一路線內所有站牌分區收費。(公總稱之為計費站收費, Stage=計費站)", + "required": [ + "DestinationStage", + "Direction", + "Fares", + "OriginStage" + ], "type": "object", "properties": { - "Dates": { - "title": "Array", - "description": "不連續特殊日期", - "type": "array", - "items": { - "title": "String", - "type": "string" - } + "Direction": { + "title": "integer", + "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer" }, - "DatePeriod": { - "title": "DatePeriod", - "description": "連續特殊日期", + "OriginStage": { + "title": "BusStage", + "description": "起點計費站", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.DatePeriod" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStage" } - ] + ], + "xml": { + "name": "BusStage" + } }, - "ServiceStatus": { - "format": "int32", - "title": "integer", - "description": "營運服務狀態代碼 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']", - "type": "integer" + "DestinationStage": { + "title": "BusStage", + "description": "訖點計費站", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStage" + } + ], + "xml": { + "name": "BusStage" + } }, - "Description": { - "title": "String", - "description": "特殊營運描述", - "type": "string" + "Fares": { + "title": "Array", + "description": "票價內容", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFare" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusStageFare" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusStopTime": { - "title": "BusStopTime", - "description": "公車停靠時間資料", + "PTX.Service.DTO.Bus.Specification.V2.BusStation": { + "title": "BusStation", + "description": "站牌/位資料型別", "required": [ - "ArrivalTime", - "DepartureTime", - "StopID", - "StopName", - "StopSequence", - "StopUID" + "StationGroupID", + "StationID", + "StationName", + "StationPosition", + "StationUID", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "StopSequence": { - "format": "int32", - "title": "Int32", - "description": "路線經過站牌之順序(由1開始)", - "type": "integer" - }, - "StopUID": { + "StationUID": { "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "StopID": { + "StationID": { "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" + "description": "站位代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { + "StationName": { "title": "NameType", - "description": "站牌名稱", + "description": "站位名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "ArrivalTime": { - "title": "String", - "description": "到站時間,格式為:HH:mm", - "type": "string" - }, - "DepartureTime": { - "title": "String", - "description": "離站時間,格式為:HH:mm", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusTimetable": { - "title": "BusTimetable", - "description": "班次資料", - "required": [ - "StopTimes" - ], - "type": "object", - "properties": { - "TripID": { - "title": "String", - "description": "班次代碼,為無意義之編碼", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "ServiceDay": { - "title": "ServiceDay", - "description": "週內營運日", + "StationPosition": { + "title": "PointType", + "description": "站位位置", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" } - ] + ], + "xml": { + "name": "PointType" + } }, - "SpecialDays": { - "title": "Array", - "description": "特殊營運日", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SpecialDay" + "StationAddress": { + "title": "String", + "description": "站位地址", + "type": "string", + "xml": { + "name": "String" } }, - "StopTimes": { + "StationGroupID": { + "title": "String", + "description": "站牌所屬的組站位ID", + "type": "string", + "xml": { + "name": "String" + } + }, + "Stops": { "title": "Array", - "description": "公車停靠時間資料", + "description": "站牌與所行經此站牌之路線列表(資料會對路線展開,因此可能會有重複的站牌資料)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStopTime" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.StationStop" + }, + "xml": { + "name": "List`1" } - } - } - }, - "PTX.Service.DTO.Bus.Specification.V2.BusFrequency": { - "title": "BusFrequency", - "description": "發車班距資料", - "required": [ - "EndTime", - "MaxHeadwayMins", - "MinHeadwayMins", - "StartTime" - ], - "type": "object", - "properties": { - "StartTime": { + }, + "LocationCityCode": { "title": "String", - "description": "發車班距起始適用時間,格式為: HH:mm", - "type": "string" + "description": "站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", + "type": "string", + "xml": { + "name": "String" + } }, - "EndTime": { + "Bearing": { "title": "String", - "description": "發車班距結束適用時間,格式為: HH:mm", + "description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行", + "type": "string", + "xml": { + "name": "String" + } + }, + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "MinHeadwayMins": { + "VersionID": { "format": "int32", "title": "Int32", - "description": "最小班距時間(分鐘)", + "description": "資料版本編號", "type": "integer" + } + }, + "xml": { + "name": "BusStation" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.BusStationGroup": { + "title": "BusStationGroup", + "description": "組站位資料型別", + "required": [ + "StationGroupID", + "StationGroupName", + "StationGroupPosition", + "StationGroupUID", + "UpdateTime", + "VersionID" + ], + "type": "object", + "properties": { + "StationGroupUID": { + "title": "String", + "description": "組站位唯一識別代碼,規則為 {業管機關簡碼} + {StationGroupID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "MaxHeadwayMins": { + "StationGroupID": { + "title": "String", + "description": "組站位代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationGroupName": { + "title": "NameType", + "description": "組站位名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StationGroupPosition": { + "title": "PointType", + "description": "組站位位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } + }, + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "VersionID": { "format": "int32", "title": "Int32", - "description": "最大班距時間(分鐘)", + "description": "資料版本編號", "type": "integer" + } + }, + "xml": { + "name": "BusStationGroup" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.BusStop": { + "title": "BusStop", + "description": "站牌/位資料型別", + "required": [ + "AuthorityID", + "StationGroupID", + "StopID", + "StopName", + "StopPosition", + "StopUID", + "UpdateTime", + "VersionID" + ], + "type": "object", + "properties": { + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "ServiceDay": { - "title": "ServiceDay", - "description": "週內營運日", + "StopID": { + "title": "String", + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "AuthorityID": { + "title": "String", + "description": "業管機關代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "SpecialDays": { - "title": "Array", - "description": "特殊營運日", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SpecialDay" + "StopPosition": { + "title": "PointType", + "description": "站牌位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } + }, + "StopAddress": { + "title": "String", + "description": "站牌地址", + "type": "string", + "xml": { + "name": "String" + } + }, + "Bearing": { + "title": "String", + "description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationID": { + "title": "String", + "description": "站牌所屬的站位ID", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationGroupID": { + "title": "String", + "description": "站牌所屬的組站位ID", + "type": "string", + "xml": { + "name": "String" } + }, + "StopDescription": { + "title": "String", + "description": "站牌詳細說明描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "City": { + "title": "String", + "description": "站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]", + "type": "string", + "xml": { + "name": "String" + } + }, + "CityCode": { + "title": "String", + "description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", + "type": "string", + "xml": { + "name": "String" + } + }, + "LocationCityCode": { + "title": "String", + "description": "站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", + "type": "string", + "xml": { + "name": "String" + } + }, + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "BusStop" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusSchedule": { - "title": "BusSchedule", - "description": "班表資料", + "PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute": { + "title": "BusStopOfRoute", + "description": "路線站序資料", "required": [ - "Direction", "RouteID", "RouteName", "RouteUID", + "Stops", "SubRouteID", "SubRouteName", "SubRouteUID", @@ -10632,12 +10916,18 @@ "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -10646,17 +10936,37 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } + }, + "Operators": { + "title": "Array", + "description": "營運業者", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.RouteOperator" + }, + "xml": { + "name": "List`1" + } }, "SubRouteUID": { "title": "String", "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteName": { "title": "NameType", @@ -10665,38 +10975,41 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "integer" }, - "OperatorID": { + "City": { "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorCode": { + "CityCode": { "title": "String", - "description": "營運業者簡碼", - "type": "string" - }, - "Timetables": { - "title": "Array", - "description": "預定班表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusTimetable" + "description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", + "type": "string", + "xml": { + "name": "String" } }, - "Frequencys": { + "Stops": { "title": "Array", - "description": "發車班距", + "description": "所有經過站牌", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFrequency" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.Stop" + }, + "xml": { + "name": "List`1" } }, "UpdateTime": { @@ -10710,88 +11023,1100 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "BusStopOfRoute" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusShape": { - "title": "BusShape", - "description": "公車線型資料", + "PTX.Service.DTO.Bus.Specification.V2.BusStopTime": { + "title": "BusStopTime", + "description": "公車停靠時間資料", "required": [ - "Direction", - "EncodedPolyline", - "Geometry", - "RouteID", - "RouteName", - "RouteUID", - "SubRouteUID", - "UpdateTime", - "VersionID" + "ArrivalTime", + "DepartureTime", + "StopID", + "StopName", + "StopSequence", + "StopUID" ], "type": "object", "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" - }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "StopSequence": { + "format": "int32", + "title": "Int32", + "description": "路線經過站牌之順序(由1開始)", + "type": "integer" + }, + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopID": { + "title": "String", + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "ArrivalTime": { + "title": "String", + "description": "到站時間,格式為:HH:mm", + "type": "string", + "xml": { + "name": "String" + } + }, + "DepartureTime": { + "title": "String", + "description": "離站時間,格式為:HH:mm", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "BusStopTime" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.BusSubRoute": { + "title": "BusSubRoute", + "description": "附屬路線資料型別", + "required": [ + "Direction", + "OperatorIDs", + "SubRouteID", + "SubRouteName", + "SubRouteUID" + ], + "type": "object", + "properties": { + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorIDs": { + "title": "Array", + "description": "營運業者代碼", + "type": "array", + "items": { + "title": "String", + "type": "string", + "xml": { + "name": "String" + } + }, + "xml": { + "name": "List`1" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "附屬路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Headsign": { + "title": "String", + "description": "車頭描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "HeadsignEn": { + "title": "String", + "description": "車頭英文描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer" + }, + "FirstBusTime": { + "title": "String", + "description": "平日第一班發車時間", + "type": "string", + "xml": { + "name": "String" + } + }, + "LastBusTime": { + "title": "String", + "description": "平日返程第一班發車時間", + "type": "string", + "xml": { + "name": "String" + } + }, + "HolidayFirstBusTime": { + "title": "String", + "description": "假日去程第一班發車時間", + "type": "string", + "xml": { + "name": "String" + } + }, + "HolidayLastBusTime": { + "title": "String", + "description": "假日返程第一班發車時間", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "BusSubRoute" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.BusTimetable": { + "title": "BusTimetable", + "description": "班次資料", + "required": [ + "StopTimes" + ], + "type": "object", + "properties": { + "TripID": { + "title": "String", + "description": "班次代碼,為無意義之編碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "ServiceDay": { + "title": "ServiceDay", + "description": "週內營運日", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" + } + }, + "SpecialDays": { + "title": "Array", + "description": "特殊營運日", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SpecialDay" + }, + "xml": { + "name": "List`1" + } + }, + "StopTimes": { + "title": "Array", + "description": "公車停靠時間資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStopTime" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "BusTimetable" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.BusVehicleInfo": { + "title": "BusVehicleInfo", + "description": "公車車輛基本資料", + "required": [ + "PlateNumb", + "UpdateTime", + "VehicleType" + ], + "type": "object", + "properties": { + "PlateNumb": { + "title": "String", + "description": "車牌號碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "VehicleType": { + "title": "integer", + "description": "車輛種類 : [0:'一般',1:'無障礙公車',2:'復康巴士',3:'小型巴士']", + "type": "integer" + }, + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + } + }, + "xml": { + "name": "BusVehicleInfo" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.BusVersion": { + "title": "BusVersion", + "description": "公車版本資料型別", + "required": [ + "UpdateCheckTime", + "UpdateTime", + "VersionID" + ], + "type": "object", + "properties": { + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" + }, + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateCheckTime": { + "title": "DateTime", + "description": "此資料版本最後檢查更新之日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + } + }, + "xml": { + "name": "BusVersion" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.DatePeriod": { + "title": "DatePeriod", + "type": "object", + "properties": { + "StartDate": { + "title": "String", + "description": "營運起始日(格式: yyyy-MM-dd)", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndDate": { + "title": "String", + "description": "營運結束日(格式: yyyy-MM-dd)", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "DatePeriod" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Embedded.RouteOperator": { + "title": "RouteOperator", + "description": "營運業者資訊", + "required": [ + "OperatorCode", + "OperatorID", + "OperatorName", + "OperatorNo" + ], + "type": "object", + "properties": { + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { + "title": "NameType", + "description": "營運業者名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "OperatorCode": { + "title": "String", + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorNo": { + "title": "String", + "description": "營運業者編號[交通部票證資料系統定義]", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "RouteOperator" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay": { + "title": "ServiceDay", + "description": "週內營運日資料", + "required": [ + "Friday", + "Monday", + "Saturday", + "Sunday", + "Thursday", + "Tuesday", + "Wednesday" + ], + "type": "object", + "properties": { + "Sunday": { + "title": "integer", + "description": "星期日是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Monday": { + "title": "integer", + "description": "星期一是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Tuesday": { + "title": "integer", + "description": "星期二是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Wednesday": { + "title": "integer", + "description": "星期三是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Thursday": { + "title": "integer", + "description": "星期四是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Friday": { + "title": "integer", + "description": "星期五是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Saturday": { + "title": "integer", + "description": "星期六是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "NationalHolidays": { + "title": "integer", + "description": "國定假日營運與否 : [0:'否',1:'是']", + "type": "string" + } + }, + "xml": { + "name": "ServiceDay" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Embedded.Stop": { + "title": "Stop", + "description": "站牌代碼資料", + "required": [ + "StationGroupID", + "StopID", + "StopName", + "StopPosition", + "StopSequence", + "StopUID" + ], + "type": "object", + "properties": { + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopID": { + "title": "String", + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StopBoarding": { + "title": "integer", + "description": "上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車']", + "type": "string" + }, + "StopSequence": { + "format": "int32", + "title": "Int32", + "description": "路線經過站牌之順序", + "type": "integer" + }, + "StopPosition": { + "title": "PointType", + "description": "站牌位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } + }, + "StationID": { + "title": "String", + "description": "站牌所屬的站位ID", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationGroupID": { + "title": "String", + "description": "站牌所屬的組站位ID", + "type": "string", + "xml": { + "name": "String" + } + }, + "LocationCityCode": { + "title": "String", + "description": "站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Stop" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.FirstLastTrip": { + "title": "FirstLastTrip", + "description": "首末班車資料型別", + "required": [ + "FirstTripDepTime", + "LastTripDepTime", + "ServiceDay" + ], + "type": "object", + "properties": { + "ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo+ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" + } + }, + "FirstTripDepTime": { + "title": "String", + "description": "頭班車發車時間(HH:mm)", + "type": "string", + "xml": { + "name": "String" + } + }, + "LastTripDepTime": { + "title": "String", + "description": "末班車發車時間(HH:mm)", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "FirstLastTrip" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.N1.Estimate": { + "title": "Estimate", + "type": "object", + "properties": { + "PlateNumb": { + "title": "String", + "description": "車輛車牌號碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "EstimateTime": { + "format": "int32", + "description": "車輛之到站時間預估(秒)", + "type": "integer" + }, + "IsLastBus": { + "description": "是否為末班車", + "type": "boolean" + }, + "VehicleStopStatus": { + "title": "integer", + "description": "車輛於該站之進離站狀態 : [0:'離站',1:'進站']", + "type": "string" + } + }, + "xml": { + "name": "Estimate" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Scope": { + "title": "Scope", + "description": "通阻影響範圍", + "type": "object", + "properties": { + "Operators": { + "title": "Array", + "description": "營運業者資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Operator" + }, + "xml": { + "name": "List`1" + } + }, + "Stops": { + "title": "Array", + "description": "站牌資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Stop" + }, + "xml": { + "name": "List`1" + } + }, + "Stations": { + "title": "Array", + "description": "站位資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Station" + }, + "xml": { + "name": "List`1" + } + }, + "Routes": { + "title": "Array", + "description": "路線資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Route" + }, + "xml": { + "name": "List`1" + } + }, + "SubRoutes": { + "title": "Array", + "description": "附屬路線資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+SubRoute" + }, + "xml": { + "name": "List`1" + } + }, + "Trips": { + "title": "Array", + "description": "班次資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Scope+Trip" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "Scope" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Scope+Operator": { + "title": "Operator", + "description": "營運業者資料", + "type": "object", + "properties": { + "OperatorID": { + "title": "String", + "description": "營運業者代碼 ,", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { + "title": "NameType", + "description": "營運業者名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + } + }, + "xml": { + "name": "Operator" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Scope+Route": { + "title": "Route", + "description": "路線資料", + "type": "object", + "properties": { + "RouteID": { + "title": "String", + "description": "地區既用中之班次代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Direction": { + "title": "integer", + "description": "影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer" + } + }, + "xml": { + "name": "Route" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Scope+Station": { + "title": "Station", + "description": "站位資料", + "type": "object", + "properties": { + "StationID": { + "title": "String", + "description": "站位代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "站位名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + } + }, + "xml": { + "name": "Station" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Scope+Stop": { + "title": "Stop", + "description": "站牌資料", + "type": "object", + "properties": { + "StopID": { + "title": "String", + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StationID": { + "title": "String", + "description": "站位代碼", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Stop" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Scope+SubRoute": { + "title": "SubRoute", + "description": "附屬路線資料", + "type": "object", + "properties": { + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬班次代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "附屬路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Direction": { + "title": "integer", + "description": "影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer" + } + }, + "xml": { + "name": "SubRoute" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.Scope+Trip": { + "title": "Trip", + "description": "班次代碼資料", + "type": "object", + "properties": { + "TripID": { + "title": "String", + "description": "地區既用中之班次代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteID": { + "title": "String", + "description": "地區既用中之班次代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬班次代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer" + }, + "TripDepTime": { + "title": "String", + "description": "首站發車時間(HH:mm)", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Trip" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.SectionFare": { + "title": "SectionFare", + "description": "段次計費", + "required": [ + "BufferZones", + "Fares" + ], + "type": "object", + "properties": { + "BufferZones": { + "title": "Array", + "description": "緩衝區資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+BufferZone" + }, + "xml": { + "name": "List`1" + } + }, + "Fares": { + "title": "Array", + "description": "每段收費資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Fare" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "SectionFare" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.SectionFare+BufferZone": { + "title": "BufferZone", + "required": [ + "Direction", + "FareBufferZoneDestination", + "FareBufferZoneOrigin", + "SectionSequence" + ], + "type": "object", + "properties": { + "ZoneID": { + "title": "String", + "description": "緩衝區代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "SectionSequence": { + "format": "int32", + "title": "Int32", + "description": "緩衝區順序", + "type": "integer" + }, + "Direction": { + "title": "integer", + "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer" + }, + "FareBufferZoneOrigin": { + "title": "Stop", + "description": "緩衝區起點", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Stop" + } + ], + "xml": { + "name": "Stop" + } + }, + "FareBufferZoneDestination": { + "title": "Stop", + "description": "緩衝區訖點", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Stop" + } + ], + "xml": { + "name": "Stop" + } + }, + "BufferZoneDescription": { + "title": "String", + "description": "收費緩衝區描述", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "BufferZone" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.ServiceTime": { + "title": "ServiceTime", + "description": "行駛時間資料型別", + "required": [ + "EndHour", + "S2STimes", + "StartHour", + "Weekday" + ], + "type": "object", + "properties": { + "Weekday": { + "format": "int32", + "title": "Int32", + "description": "星期", + "type": "integer" + }, + "StartHour": { + "format": "int32", + "title": "Int32", + "description": "起始時區(小時)", + "type": "integer" + }, + "EndHour": { + "format": "int32", + "title": "Int32", + "description": "結束時區(小時)", + "type": "integer" + }, + "S2STimes": { + "title": "Array", + "description": "站間行駛時間資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.TravelTime" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "ServiceTime" + } + }, + "PTX.Service.DTO.Bus.Specification.V2.SpecialDay": { + "title": "SpecialDay", + "description": "特殊營運日資料", + "type": "object", + "properties": { + "Dates": { + "title": "Array", + "description": "不連續特殊日期", + "type": "array", + "items": { + "title": "String", + "type": "string", + "xml": { + "name": "String" } - ] - }, - "SubRouteUID": { - "title": "String", - "type": "string" - }, - "SubRouteID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + }, + "xml": { + "name": "List`1" + } }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", + "DatePeriod": { + "title": "DatePeriod", + "description": "連續特殊日期", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.DatePeriod" } - ] + ], + "xml": { + "name": "DatePeriod" + } }, - "Direction": { - "format": "int32", + "ServiceStatus": { "title": "integer", - "description": "去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" - }, - "Geometry": { - "title": "String", - "description": "well-known text,為路線軌跡資料", + "description": "營運服務狀態代碼 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']", "type": "string" }, - "EncodedPolyline": { + "Description": { "title": "String", - "description": "路線軌跡編碼(encoded polyline)", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號(由於該服務資料不再版控,固定帶入版號0)", - "type": "integer" + "description": "特殊營運描述", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "SpecialDay" } }, "PTX.Service.DTO.Bus.Specification.V2.StationStop": { @@ -10810,12 +12135,18 @@ "StopUID": { "title": "String", "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopID": { "title": "String", "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopName": { "title": "NameType", @@ -10824,17 +12155,26 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -10843,396 +12183,364 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } } + }, + "xml": { + "name": "StationStop" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusStation": { - "title": "BusStation", - "description": "站牌/位資料型別", + "PTX.Service.DTO.Bus.Specification.V2.TravelTime": { + "title": "TravelTime", "required": [ - "StationGroupID", - "StationID", - "StationName", - "StationPosition", - "StationUID", - "UpdateTime", - "VersionID" + "FromStationID", + "FromStopID", + "RunTime", + "ToStationID", + "ToStopID" ], "type": "object", "properties": { - "StationUID": { - "title": "String", - "description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "StationID": { + "FromStopID": { "title": "String", - "description": "站位代碼", - "type": "string" - }, - "StationName": { - "title": "NameType", - "description": "站位名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "StationPosition": { - "title": "PointType", - "description": "站位位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" - } - ] + "description": "起始站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationAddress": { + "ToStopID": { "title": "String", - "description": "站位地址", - "type": "string" + "description": "終點站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationGroupID": { + "FromStationID": { "title": "String", - "description": "站牌所屬的組站位ID", - "type": "string" - }, - "Stops": { - "title": "Array", - "description": "站牌與所行經此站牌之路線列表(資料會對路線展開,因此可能會有重複的站牌資料)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.StationStop" + "description": "起始站位代碼", + "type": "string", + "xml": { + "name": "String" } }, - "Bearing": { + "ToStationID": { "title": "String", - "description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "description": "終點站位代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "VersionID": { + "RunTime": { "format": "int32", "title": "Int32", - "description": "資料版本編號", + "description": "站間預估行駛時間 [當RunTime值為-1時,代表該區間無提供旅行時間資料。]", "type": "integer" } + }, + "xml": { + "name": "TravelTime" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusStationGroup": { - "title": "BusStationGroup", - "description": "組站位資料型別", - "required": [ - "StationGroupID", - "StationGroupName", - "StationGroupPosition", - "StationGroupUID", - "UpdateTime", - "VersionID" - ], + "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": { + "title": "NameType", + "description": "名稱資料型別", "type": "object", "properties": { - "StationGroupUID": { + "Zh_tw": { "title": "String", - "description": "組站位唯一識別代碼,規則為 {業管機關簡碼} + {StationGroupID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "中文繁體名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "StationGroupID": { + "En": { "title": "String", - "description": "組站位代碼", - "type": "string" - }, - "StationGroupName": { - "title": "NameType", - "description": "組站位名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "StationGroupPosition": { - "title": "PointType", - "description": "組站位位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" - } - ] - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "description": "英文名稱", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "NameType" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusStop": { - "title": "BusStop", - "description": "站牌/位資料型別", + "PTX.Service.DTO.Shared.Specification.V2.Base.Operator": { + "title": "Operator", + "description": "營運業者資料型別", "required": [ - "AuthorityID", - "StationGroupID", - "StopID", - "StopName", - "StopPosition", - "StopUID", - "UpdateTime", - "VersionID" + "AuthorityCode", + "OperatorCode", + "OperatorID", + "OperatorName", + "OperatorNo", + "ProviderID", + "UpdateTime" ], "type": "object", "properties": { - "StopUID": { - "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "StopID": { + "ProviderID": { "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" + "description": "資料提供平台代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "AuthorityID": { + "OperatorID": { "title": "String", - "description": "業管機關代碼", - "type": "string" + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { + "OperatorName": { "title": "NameType", - "description": "站牌名稱", + "description": "營運業者名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "StopPosition": { - "title": "PointType", - "description": "站牌位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" - } - ] + "OperatorPhone": { + "title": "String", + "description": "營運業者連絡電話", + "type": "string", + "xml": { + "name": "String" + } }, - "StopAddress": { + "OperatorEmail": { "title": "String", - "description": "站牌地址", - "type": "string" + "description": "營運業者電子信箱", + "type": "string", + "xml": { + "name": "String" + } }, - "Bearing": { + "OperatorUrl": { "title": "String", - "description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行", - "type": "string" + "description": "營運業者網址鏈結", + "type": "string", + "xml": { + "name": "String" + } }, - "StationID": { + "ReservationUrl": { "title": "String", - "description": "站牌所屬的站位ID", - "type": "string" + "description": "訂票網址鏈結", + "type": "string", + "xml": { + "name": "String" + } }, - "StationGroupID": { + "ReservationPhone": { "title": "String", - "description": "站牌所屬的組站位ID", - "type": "string" + "description": "訂票連絡電話", + "type": "string", + "xml": { + "name": "String" + } }, - "StopDescription": { + "OperatorCode": { "title": "String", - "description": "站牌詳細說明描述", - "type": "string" + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "City": { + "AuthorityCode": { "title": "String", - "description": "站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]", - "type": "string" + "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)", + "type": "string", + "xml": { + "name": "String" + } }, - "CityCode": { + "SubAuthorityCode": { "title": "String", - "description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", - "type": "string" + "description": "營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)", + "type": "string", + "xml": { + "name": "String" + } }, - "LocationCityCode": { + "OperatorNo": { "title": "String", - "description": "站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", - "type": "string" + "description": "營運業者編號[交通部票證資料系統定義]", + "type": "string", + "xml": { + "name": "String" + } }, "UpdateTime": { "title": "DateTime", "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + } + }, + "xml": { + "name": "Operator" + } + }, + "PTX.Service.DTO.Shared.Specification.V2.Base.PointType": { + "title": "PointType", + "description": "座標資料型別", + "type": "object", + "properties": { + "PositionLon": { + "format": "double", + "description": "位置經度(WGS84)", + "type": "number" }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "PositionLat": { + "format": "double", + "description": "位置緯度(WGS84)", + "type": "number" + }, + "GeoHash": { + "title": "String", + "description": "地理空間編碼", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "PointType" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute": { - "title": "BusStopOfRoute", - "description": "路線站序資料", + "PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth": { + "title": "DisplayHealth", + "description": "API服務健康狀態", "required": [ - "RouteID", - "RouteName", - "RouteUID", - "Stops", - "SubRouteID", - "SubRouteName", - "SubRouteUID", - "UpdateTime", - "VersionID" + "ServiceID", + "ServiceName" ], "type": "object", "properties": { - "RouteUID": { + "ServiceID": { "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "API服務代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteID": { + "ServiceName": { "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "description": "API服務中文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", + "Inbound": { + "title": "Inbound", + "description": "本平台資料來源轉入狀態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Inbound" } - ] - }, - "Operators": { - "title": "Array", - "description": "營運業者", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.RouteOperator" + ], + "xml": { + "name": "Inbound" } }, - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" - }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", + "Outbound": { + "title": "Outbound", + "description": "本平台API狀態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Outbound" } - ] - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" - }, - "City": { - "title": "String", - "description": "站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]", - "type": "string" - }, - "CityCode": { - "title": "String", - "description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", - "type": "string" - }, - "Stops": { - "title": "Array", - "description": "所有經過站牌", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Embedded.Stop" + ], + "xml": { + "name": "Outbound" } - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" } + }, + "xml": { + "name": "DisplayHealth" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusVehicleInfo": { - "title": "BusVehicleInfo", - "description": "公車車輛基本資料", + "PTX.Service.DTO.Shared.Specification.V3.Base.Inbound": { + "title": "Inbound", + "description": "本平台資料來源轉入狀態", "required": [ - "PlateNumb", - "UpdateTime", - "VehicleType" + "CheckTime", + "Status" ], "type": "object", "properties": { - "PlateNumb": { - "title": "String", - "description": "車牌號碼", + "CheckTime": { + "title": "DateTime", + "description": "檢核時間", "type": "string" }, - "VehicleType": { - "format": "int32", + "Status": { "title": "integer", - "description": "車輛種類 : [0:'一般',1:'無障礙公車',2:'復康巴士',3:'小型巴士']", - "type": "integer" - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "檢核結果狀態 : [0:'失敗',1:'成功']", "type": "string" + }, + "Reason": { + "title": "String", + "description": "檢核失敗原因", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Inbound" } }, - "PTX.Service.DTO.Bus.Specification.V2.BusVersion": { - "title": "BusVersion", - "description": "公車版本資料型別", + "PTX.Service.DTO.Shared.Specification.V3.Base.Outbound": { + "title": "Outbound", + "description": "本平台API狀態", "required": [ - "UpdateCheckTime", - "UpdateTime", - "VersionID" + "CheckTime", + "Status" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, - "UpdateTime": { + "CheckTime": { "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "檢核時間", "type": "string" }, - "UpdateCheckTime": { - "title": "DateTime", - "description": "此資料版本最後檢查更新之日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "Status": { + "title": "integer", + "description": "檢核結果狀態 : [0:'失敗',1:'成功']", "type": "string" + }, + "Reason": { + "title": "String", + "description": "檢核失敗原因", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Outbound" } } }, diff --git a/oas.bus.v3.json b/oas.bus.v3.json index 302c874d..c7cc2c90 100644 --- a/oas.bus.v3.json +++ b/oas.bus.v3.json @@ -2754,7 +2754,7 @@ "CityBus" ], "summary": "取得指定[縣市]的市區公車路線網路拓撲資料", - "operationId": "CityBusApi_RouteNetwork", + "operationId": "CityBusApi_RouteNetwork_2", "produces": [ "application/json", "application/xml" @@ -2964,132 +2964,6 @@ } }, "definitions": { - "PTX.Service.DTO.Shared.Specification.V3.Base.Inbound": { - "title": "Inbound", - "description": "本平台資料來源轉入狀態", - "required": [ - "CheckTime", - "Status" - ], - "type": "object", - "properties": { - "CheckTime": { - "title": "DateTime", - "description": "檢核時間", - "type": "string" - }, - "Status": { - "format": "int32", - "title": "integer", - "description": "檢核結果狀態 : [0:'失敗',1:'成功']", - "type": "integer" - }, - "Reason": { - "title": "String", - "description": "檢核失敗原因", - "type": "string" - } - } - }, - "PTX.Service.DTO.Shared.Specification.V3.Base.Outbound": { - "title": "Outbound", - "description": "本平台API狀態", - "required": [ - "CheckTime", - "Status" - ], - "type": "object", - "properties": { - "CheckTime": { - "title": "DateTime", - "description": "檢核時間", - "type": "string" - }, - "Status": { - "format": "int32", - "title": "integer", - "description": "檢核結果狀態 : [0:'失敗',1:'成功']", - "type": "integer" - }, - "Reason": { - "title": "String", - "description": "檢核失敗原因", - "type": "string" - } - } - }, - "PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth": { - "title": "DisplayHealth", - "description": "API服務健康狀態", - "required": [ - "ServiceID", - "ServiceName" - ], - "type": "object", - "properties": { - "ServiceID": { - "title": "String", - "description": "API服務代碼", - "type": "string" - }, - "ServiceName": { - "title": "String", - "description": "API服務中文名稱", - "type": "string" - }, - "Inbound": { - "title": "Inbound", - "description": "本平台資料來源轉入狀態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Inbound" - } - ] - }, - "Outbound": { - "title": "Outbound", - "description": "本平台API狀態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Outbound" - } - ] - } - } - }, - "PTX.Service.DTO.Shared.Specification.V3.Base.NameType": { - "title": "NameType", - "type": "object", - "properties": { - "Zh_tw": { - "title": "String", - "description": "中文繁體名稱", - "type": "string" - }, - "En": { - "title": "String", - "description": "英文名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Shared.Specification.V3.Base.PointType": { - "title": "PointType", - "description": "座標資料型別", - "type": "object", - "properties": { - "PositionLat": { - "format": "double", - "description": "位置緯度(WGS84)", - "type": "number" - }, - "PositionLon": { - "format": "double", - "description": "位置經度(WGS84)", - "type": "number" - } - } - }, "PTX.Service.DTO.Bus.Specification.V3.A1Data": { "title": "A1Data", "required": [ @@ -3111,12 +2985,18 @@ "PlateNumb": { "title": "String", "description": "車牌號碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorID": { "title": "String", "description": "營運業者代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorName": { "title": "NameType", @@ -3125,22 +3005,34 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "OperatorCode": { "title": "String", "description": "營運業者簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -3149,17 +3041,26 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "SubRouteUID": { "title": "String", "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteName": { "title": "NameType", @@ -3168,24 +3069,28 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "TripID": { "title": "String", "description": "班次代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + "type": "string" }, "MessageType": { - "format": "int32", "title": "integer", "description": "資料型態種類 : [0:'未知',1:'定期',2:'非定期']", - "type": "integer" + "type": "string" }, "BusPosition": { "title": "PointType", @@ -3194,7 +3099,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" } - ] + ], + "xml": { + "name": "PointType" + } }, "Speed": { "format": "double", @@ -3209,22 +3117,19 @@ "type": "number" }, "DutyStatus": { - "format": "int32", "title": "integer", "description": "勤務狀態 : [0:'正常',1:'開始',2:'結束']", - "type": "integer" + "type": "string" }, "BusStatus": { - "format": "int32", "title": "integer", "description": "行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知']", - "type": "integer" + "type": "string" }, "VehicleType": { - "format": "int32", "title": "integer", "description": "車輛種類 : [1:'一般',2:'復康巴士',3:'專車',4:'其他']", - "type": "integer" + "type": "string" }, "GPSTime": { "title": "DateTime", @@ -3246,61 +3151,9 @@ "description": "來源端平台資料傳出時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A1Data]": { - "title": "BusA1DataList", - "description": "基本 wrapper", - "required": [ - "A1Datas", - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - }, - "A1Datas": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.A1Data" - } - } + }, + "xml": { + "name": "A1Data" } }, "PTX.Service.DTO.Bus.Specification.V3.A2Data": { @@ -3321,12 +3174,18 @@ "PlateNumb": { "title": "String", "description": "車牌號碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorID": { "title": "String", "description": "營運業者代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorName": { "title": "NameType", @@ -3335,22 +3194,34 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "OperatorCode": { "title": "String", "description": "營運業者簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -3359,17 +3230,26 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "SubRouteUID": { "title": "String", "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteName": { "title": "NameType", @@ -3378,28 +3258,39 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "TripID": { "title": "String", "description": "班次代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + "type": "string" }, "StopUID": { "title": "String", "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopID": { "title": "String", "description": "地區既用中之站牌代號(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StopName": { "title": "NameType", @@ -3408,37 +3299,35 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "MessageType": { - "format": "int32", "title": "integer", "description": "資料型態種類 : [0:'未知',1:'定期',2:'非定期']", - "type": "integer" + "type": "string" }, "A2EventType": { - "format": "int32", "title": "integer", "description": "進站離站 : [0:'離站',1:'進站']", - "type": "integer" + "type": "string" }, "VehicleType": { - "format": "int32", "title": "integer", "description": "車輛種類 : [1:'一般',2:'復康巴士',3:'專車',4:'其他']", - "type": "integer" + "type": "string" }, "DutyStatus": { - "format": "int32", "title": "integer", "description": "勤務狀態 : [0:'正常',1:'開始',2:'結束']", - "type": "integer" + "type": "string" }, "BusStatus": { - "format": "int32", "title": "integer", "description": "行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知']", - "type": "integer" + "type": "string" }, "GPSTime": { "title": "DateTime", @@ -3460,175 +3349,9 @@ "description": "來源端平台資料傳出時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A2Data]": { - "title": "BusA2DataList", - "description": "基本 wrapper", - "required": [ - "A2Datas", - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - }, - "A2Datas": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.A2Data" - } - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Scope+Route": { - "title": "Route", - "description": "路線資料", - "type": "object", - "properties": { - "RouteID": { - "title": "String", - "description": "地區既用中之班次代碼(為原資料內碼)", - "type": "string" - }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Scope+SubRoute": { - "title": "SubRoute", - "description": "附屬路線資料", - "type": "object", - "properties": { - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬班次代碼(為原資料內碼)", - "type": "string" - }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Scope+Stop": { - "title": "Stop", - "description": "站牌資料", - "type": "object", - "properties": { - "StopID": { - "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" - }, - "StopName": { - "title": "NameType", - "description": "站牌名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Scope+Trip": { - "title": "Trip", - "description": "班次代碼資料", - "type": "object", - "properties": { - "TripID": { - "title": "String", - "description": "地區既用中之班次代碼(為原資料內碼)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Scope": { - "title": "Scope", - "description": "通阻影響範圍", - "type": "object", - "properties": { - "Routes": { - "title": "Array", - "description": "路線資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Route" - } - }, - "SubRoutes": { - "title": "Array", - "description": "附屬路線資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+SubRoute" - } - }, - "Stops": { - "title": "Array", - "description": "站牌資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Stop" - } - }, - "TripIDs": { - "title": "Array", - "description": "班次代碼資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Trip" - } - } + }, + "xml": { + "name": "A2Data" } }, "PTX.Service.DTO.Bus.Specification.V3.Alert": { @@ -3642,12 +3365,18 @@ "AlertID": { "title": "String", "description": "通阻事件原單位發布代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Title": { "title": "String", "description": "通阻標題", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Scope": { "title": "Scope", @@ -3656,22 +3385,34 @@ { "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope" } - ] + ], + "xml": { + "name": "Scope" + } }, "Direction": { "title": "String", "description": "影響方向", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Description": { "title": "String", "description": "事件描述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "AlertURL": { "title": "String", "description": "詳細描述網站連結", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "PublishTime": { "title": "DateTime", @@ -3693,162 +3434,347 @@ "description": "[來源端平臺]此筆資料最後更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "Alert" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.Alert]": { - "title": "BusAlertList", - "description": "基本 wrapper", + "PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable": { + "title": "DailyTimeTable", + "description": "每日時刻表資料", "required": [ - "Alerts", - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "Date", + "Direction", + "OperatorCode", + "OperatorID", + "RouteID", + "RouteName", + "RouteUID", + "SubRouteID" ], "type": "object", "properties": { - "UpdateTime": { + "Date": { "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "適用日期", "type": "string" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "AuthorityCode": { + "OperatorID": { "title": "String", - "description": "業管機關簡碼", - "type": "string" + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "OperatorCode": { + "title": "String", + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Alerts": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Alert" + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" } - } - } + }, + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "附屬路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Direction": { + "title": "integer", + "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" + }, + "Timetables": { + "title": "Array", + "description": "預定班表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.TimeTable" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "DailyTimeTable" + } }, - "PTX.Service.DTO.Bus.Specification.V3.StopTime": { - "title": "StopTime", + "PTX.Service.DTO.Bus.Specification.V3.Depot": { + "title": "Depot", "required": [ - "ArrivalTime", - "DepartureTime", - "StopID", - "StopSequence", - "StopUID" + "DepotAddress", + "DepotID", + "DepotName", + "DepotPhone", + "DepotPosition", + "DepotUID" ], "type": "object", "properties": { - "StopSequence": { - "format": "int32", - "title": "Int32", - "description": "路線經過站牌之順序(由1開始)", - "type": "integer" - }, - "StopUID": { + "DepotUID": { "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "營業所唯一識別代碼,規則為 {業管機關簡碼} + {DepotID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "StopID": { + "DepotID": { "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" + "description": "營業所代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { + "DepotName": { "title": "NameType", - "description": "站牌名稱", + "description": "營業所名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ArrivalTime": { + "DepotPosition": { + "title": "PointType", + "description": "營業所位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } + }, + "DepotAddress": { "title": "String", - "description": "到站時間,格式為:HH:mm", - "type": "string" + "description": "營業所地址", + "type": "string", + "xml": { + "name": "String" + } }, - "DepartureTime": { + "DepotPhone": { "title": "String", - "description": "離站時間,格式為:HH:mm", - "type": "string" + "description": "營業所電話", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Depot" } }, - "PTX.Service.DTO.Bus.Specification.V3.TimeTable": { - "title": "TimeTable", + "PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute": { + "title": "DisplayStopOfRoute", "required": [ - "StopTimes" + "Direction", + "RouteID", + "RouteName", + "RouteUID", + "Stops" ], "type": "object", "properties": { - "TripID": { + "RouteUID": { "title": "String", - "description": "班次代碼,為無意義之編碼", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Direction": { + "title": "integer", + "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "string" }, - "StopTimes": { + "Stops": { "title": "Array", - "description": "公車停靠時間資料", + "description": "路線站序資料", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopTime" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute+Stop" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "DisplayStopOfRoute" } }, - "PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable": { - "title": "DailyTimeTable", - "description": "每日時刻表資料", + "PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute+Stop": { + "title": "Stop", + "description": "路線站序資料", + "required": [ + "StopID", + "StopName", + "StopPosition", + "StopSequence", + "StopUID" + ], + "type": "object", + "properties": { + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopID": { + "title": "String", + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StopSequence": { + "format": "int32", + "title": "Int32", + "description": "路線經過站牌之順序", + "type": "integer" + }, + "StopPosition": { + "title": "PointType", + "description": "站牌位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } + } + }, + "xml": { + "name": "Stop" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo": { + "title": "FirstLastTripInfo", "required": [ - "Date", "Direction", - "OperatorCode", + "FirstLastTrips", "OperatorID", "RouteID", "RouteName", - "RouteUID", - "SubRouteID" + "RouteUID" ], "type": "object", "properties": { - "Date": { - "title": "DateTime", - "description": "適用日期", - "type": "string" - }, "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -3857,27 +3783,34 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "OperatorID": { "title": "String", "description": "營運業者代碼", - "type": "string" - }, - "OperatorCode": { - "title": "String", - "description": "營運業者簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteUID": { "title": "String", "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteID": { "title": "String", "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "SubRouteName": { "title": "NameType", @@ -3886,1240 +3819,2470 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", - "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" }, - "Timetables": { + "FirstLastTrips": { "title": "Array", - "description": "預定班表", + "description": "路線首末班車資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.TimeTable" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+FirstLastTrip" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "FirstLastTripInfo" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable]": { - "title": "BusDailyTimeTableList", - "description": "基本 wrapper", + "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+FirstLastTrip": { + "title": "FirstLastTrip", "required": [ - "AuthorityCode", - "DailyTimeTables", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "FirstTripDepTime", + "LastTripDepTime", + "ServiceDay" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" + "ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { + "FirstTripDepTime": { "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "description": "頭班車發車時間(HH:mm)", + "type": "string", + "xml": { + "name": "String" + } }, - "DailyTimeTables": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable" + "LastTripDepTime": { + "title": "String", + "description": "末班車發車時間(HH:mm)", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "FirstLastTrip" } }, - "PTX.Service.DTO.Bus.Specification.V3.Depot": { - "title": "Depot", + "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+ServiceDay": { + "title": "ServiceDay", "required": [ - "DepotAddress", - "DepotID", - "DepotName", - "DepotPhone", - "DepotPosition", - "DepotUID" + "Friday", + "Monday", + "Saturday", + "Sunday", + "Thursday", + "Tuesday", + "Wednesday" ], "type": "object", "properties": { - "DepotUID": { - "title": "String", - "description": "營業所唯一識別代碼,規則為 {業管機關簡碼} + {DepotID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "DepotID": { + "ServiceTag": { "title": "String", - "description": "營業所代碼", - "type": "string" + "description": "服務日標籤", + "type": "string", + "xml": { + "name": "String" + } }, - "DepotName": { - "title": "NameType", - "description": "營業所名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Monday": { + "title": "Boolean", + "description": "星期一營運與否", + "type": "boolean" }, - "DepotPosition": { - "title": "PointType", - "description": "營業所位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" - } - ] + "Tuesday": { + "title": "Boolean", + "description": "星期二營運與否", + "type": "boolean" }, - "DepotAddress": { - "title": "String", - "description": "營業所地址", - "type": "string" + "Wednesday": { + "title": "Boolean", + "description": "星期三營運與否", + "type": "boolean" }, - "DepotPhone": { - "title": "String", - "description": "營業所電話", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Depot]": { - "title": "BusDepotList", - "description": "版本 wrapper (具有版本資訊)", - "required": [ - "AuthorityCode", - "Depots", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime", - "VersionID" - ], - "type": "object", - "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "Thursday": { + "title": "Boolean", + "description": "星期四營運與否", + "type": "boolean" }, - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Friday": { + "title": "Boolean", + "description": "星期五營運與否", + "type": "boolean" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" + "Saturday": { + "title": "Boolean", + "description": "星期六營運與否", + "type": "boolean" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Sunday": { + "title": "Boolean", + "description": "星期日營運與否", + "type": "boolean" }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "NationalHolidays": { + "description": "國定假日營運與否", + "type": "boolean" }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" + "DayBeforeNationalHoliday": { + "description": "國定假日前一日營運與否", + "type": "boolean" }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "DayAfterNationalHoliday": { + "description": "國定假日後一日營運與否", + "type": "boolean" }, - "Depots": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Depot" - } + "TyphoonDay": { + "description": "颱風停止上班上課期間營運與否", + "type": "boolean" } + }, + "xml": { + "name": "ServiceDay" } }, - "PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute+Stop": { - "title": "Stop", - "description": "路線站序資料", + "PTX.Service.DTO.Bus.Specification.V3.N1Data": { + "title": "N1Data", "required": [ + "Direction", + "RecTime", + "RouteID", "StopID", - "StopName", - "StopPosition", - "StopSequence", - "StopUID" + "TransTime" ], "type": "object", "properties": { - "StopUID": { + "RouteUID": { "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "StopID": { + "RouteID": { "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { + "RouteName": { "title": "NameType", - "description": "站牌名稱", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "StopSequence": { - "format": "int32", - "title": "Int32", - "description": "路線經過站牌之順序", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "StopPosition": { - "title": "PointType", - "description": "站牌位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" - } - ] - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute": { - "title": "DisplayStopOfRoute", - "required": [ - "Direction", - "RouteID", - "RouteName", - "RouteUID", - "Stops" - ], - "type": "object", - "properties": { - "RouteUID": { + "SubRouteUID": { "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteID": { + "SubRouteID": { "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteName": { + "SubRouteName": { "title": "NameType", - "description": "路線名稱", + "description": "附屬路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", - "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + "description": "車輛去返程(該方向指的是此公車運具目前所在路線的去返程方向,非指站牌所在路線的去返程方向,使用時請加值業者多加注意) : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" }, - "Stops": { - "title": "Array", - "description": "路線站序資料", + "DestinationStopID": { + "title": "String", + "description": "迄點站站牌ID代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStopName": { + "title": "NameType", + "description": "迄點站站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopID": { + "title": "String", + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "PlateNumb": { + "title": "String", + "description": "車牌號碼 [値為値為-1時,表示目前該站牌無車輛行駛]", + "type": "string", + "xml": { + "name": "String" + } + }, + "EstimateTime": { + "format": "int32", + "description": "到站時間預估(秒) [當StopStatus値為1~4或PlateNumb値為-1時,EstimateTime値為空値; 反之,EstimateTime有値]", + "type": "integer" + }, + "ScheduledTime": { + "title": "String", + "description": "預排班表時間", + "type": "string", + "xml": { + "name": "String" + } + }, + "IsLastBus": { + "description": "是否為末班車", + "type": "boolean" + }, + "CurrentStop": { + "title": "String", + "description": "車輛目前所在站牌代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopStatus": { + "title": "integer", + "description": "車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運']", + "type": "string" + }, + "StopCountDown": { + "format": "int32", + "description": "路線經過站牌之順序", + "type": "integer" + }, + "DataTime": { + "title": "DateTime", + "description": "系統演算該筆預估到站資料的時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "RecTime": { + "title": "DateTime", + "description": "來源端平台接收時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "TransTime": { + "title": "DateTime", + "description": "來源端平台資料傳出時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + } + }, + "xml": { + "name": "N1Data" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Network": { + "title": "Network", + "required": [ + "NetworkID", + "NetworkMapURL", + "NetworkName" + ], + "type": "object", + "properties": { + "NetworkID": { + "title": "String", + "description": "公車路網代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "NetworkName": { + "title": "NameType", + "description": "路網名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "NetworkMapURL": { + "title": "NetworkMapURL", + "description": "路網圖網址URL", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.NetworkMapURL" + } + ], + "xml": { + "name": "NetworkMapURL" + } + }, + "LBSMapURLs": { + "title": "Array", + "description": "適地性路網圖資網址URL", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Network+LBSMapURL" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "Network" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Network+LBSMapURL": { + "title": "LBSMapURL", + "type": "object", + "properties": { + "MapName": { + "title": "String", + "description": "路網圖", + "type": "string", + "xml": { + "name": "String" + } + }, + "Zh_tw": { + "title": "String", + "description": "路網圖網址URL(中文版)", + "type": "string", + "xml": { + "name": "String" + } + }, + "En": { + "title": "String", + "description": "路網圖網址URL(英文版)", + "type": "string", + "xml": { + "name": "String" + } + }, + "LBSLocation": { + "title": "PointType", + "description": "適地性圖資貼放的位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } + } + }, + "xml": { + "name": "LBSMapURL" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.NetworkMapURL": { + "title": "NetworkMapURL", + "required": [ + "MapName", + "MapNameURL" + ], + "type": "object", + "properties": { + "MapName": { + "title": "String", + "description": "路網圖名稱", + "type": "string", + "xml": { + "name": "String" + } + }, + "MapNameURL": { + "title": "NameType", + "description": "路網圖網址URL", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + } + }, + "xml": { + "name": "NetworkMapURL" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.News": { + "title": "News", + "required": [ + "Description", + "Language", + "NewsCategory", + "NewsID", + "PublishTime", + "Title" + ], + "type": "object", + "properties": { + "NewsID": { + "title": "String", + "description": "最新消息原單位發布代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Language": { + "title": "String", + "description": "語系", + "type": "string", + "xml": { + "name": "String" + } + }, + "Department": { + "title": "String", + "description": "發布單位", + "type": "string", + "xml": { + "name": "String" + } + }, + "Title": { + "title": "String", + "description": "消息標題", + "type": "string", + "xml": { + "name": "String" + } + }, + "NewsCategory": { + "title": "String", + "description": "消息類別= ['1: 最新消息', '2: 新聞稿', '3: 營運資訊', '4: 轉乘資訊', '5: 活動訊息', '6: 系統公告', '99: 其他']", + "type": "string", + "xml": { + "name": "String" + } + }, + "Description": { + "title": "String", + "description": "內容描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "NewsURL": { + "title": "String", + "description": "報導網站連結", + "type": "string", + "xml": { + "name": "String" + } + }, + "AttachmentURL": { + "title": "String", + "description": "相關網站連結", + "type": "string", + "xml": { + "name": "String" + } + }, + "PublishTime": { + "title": "DateTime", + "description": "消息公告日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "StartTime": { + "title": "DateTime", + "description": "開始時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "EndTime": { + "title": "DateTime", + "description": "結束時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]此筆資料最後更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + } + }, + "xml": { + "name": "News" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Operator": { + "title": "Operator", + "required": [ + "OperatorCode", + "OperatorEmail", + "OperatorID", + "OperatorName", + "OperatorPhone", + "OperatorUrl" + ], + "type": "object", + "properties": { + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorCode": { + "title": "String", + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { + "title": "NameType", + "description": "營運業者名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "OperatorNo": { + "title": "String", + "description": "營運業者編號[交通部票證資料系統定義]", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubAuthorityCode": { + "title": "String", + "description": "營運業者所屬業管子機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorPhone": { + "title": "String", + "description": "營運業者連絡電話", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorEmail": { + "title": "String", + "description": "營運業者電子信箱", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorUrl": { + "title": "String", + "description": "營運業者網址鏈結", + "type": "string", + "xml": { + "name": "String" + } + }, + "FareURL": { + "title": "String", + "description": "營運業者票價查詢網站連結", + "type": "string", + "xml": { + "name": "String" + } + }, + "ReservationUrl": { + "title": "String", + "description": "訂票網址鏈結", + "type": "string", + "xml": { + "name": "String" + } + }, + "ReservationPhone": { + "title": "String", + "description": "訂票連絡電話", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorLogoURL": { + "title": "String", + "description": "營運業者Logo網址", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Operator" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Route": { + "title": "Route", + "description": "路線資料型別", + "required": [ + "DepartureStopName", + "DestinationStopName", + "EndStop", + "HasSubRoutes", + "IsCircular", + "Operators", + "RouteID", + "RouteName", + "RouteType", + "RouteUID", + "ServiceType", + "StartStop", + "TicketPriceDescription" + ], + "type": "object", + "properties": { + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "RouteLongName": { + "title": "NameType", + "description": "路線長名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "RouteDescription": { + "title": "String", + "description": "路線描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "HasSubRoutes": { + "title": "Boolean", + "description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)", + "type": "boolean" + }, + "Operators": { + "title": "Array", + "description": "營運業者", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Operator" + }, + "xml": { + "name": "List`1" + } + }, + "RouteType": { + "title": "integer", + "description": "公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運']", + "type": "string" + }, + "ServiceType": { + "title": "ServiceType", + "description": "公車路線服務類型", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.ServiceType" + } + ], + "xml": { + "name": "ServiceType" + } + }, + "TicketPriceDescription": { + "title": "NameType", + "description": "票價描述", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "DepartureStopName": { + "title": "NameType", + "description": "路線起站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "DestinationStopName": { + "title": "NameType", + "description": "路線迄站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "FareBufferZoneDescription": { + "title": "NameType", + "description": "計費緩衝區敘述", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StartStop": { + "title": "Stop", + "description": "起始站牌", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Stop" + } + ], + "xml": { + "name": "Stop" + } + }, + "EndStop": { + "title": "Stop", + "description": "終點站牌", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Stop" + } + ], + "xml": { + "name": "Stop" + } + }, + "IsCircular": { + "title": "Boolean", + "description": "是否為環狀線", + "type": "boolean" + }, + "RouteURL": { + "title": "String", + "description": "路線資訊說明網址", + "type": "string", + "xml": { + "name": "String" + } + }, + "LiveBusURL": { + "title": "String", + "description": "路線公車動態資訊網址", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteMapImageURL": { + "title": "String", + "description": "路線簡圖網址", + "type": "string", + "xml": { + "name": "String" + } + }, + "FareURL": { + "title": "String", + "description": "收費資訊說明網址", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteDistance": { + "format": "float", + "description": "路線旅行長度", + "type": "number" + } + }, + "xml": { + "name": "Route" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Route+Operator": { + "title": "Operator", + "description": "營運業者資訊", + "required": [ + "OperatorCode", + "OperatorID", + "OperatorName", + "OperatorNo" + ], + "type": "object", + "properties": { + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { + "title": "NameType", + "description": "營運業者代碼", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "OperatorCode": { + "title": "String", + "description": "平台代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorNo": { + "title": "String", + "description": "營運業者編號[交通部票證資料系統定義]", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Operator" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Route+Stop": { + "title": "Stop", + "required": [ + "StopID", + "StopName" + ], + "type": "object", + "properties": { + "StopID": { + "title": "String", + "description": "站牌代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + } + }, + "xml": { + "name": "Stop" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteFare": { + "title": "RouteFare", + "description": "每日時刻表資料", + "required": [ + "FarePricingType", + "IsForAllSubRoutes", + "IsFreeBus", + "RouteID", + "RouteUID" + ], + "type": "object", + "properties": { + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "附屬路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "FarePricingType": { + "title": "integer", + "description": "描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']", + "type": "string" + }, + "IsFreeBus": { + "title": "integer", + "description": "是否為免費公車 : [0:'否',1:'是']", + "type": "string" + }, + "IsForAllSubRoutes": { + "title": "integer", + "description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']", + "type": "string" + }, + "SectionFares": { + "title": "Array", + "description": "段次計費", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute+Stop" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare" + }, + "xml": { + "name": "List`1" + } + }, + "ODFares": { + "title": "Array", + "description": "起迄站間計費", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare" + }, + "xml": { + "name": "List`1" + } + }, + "StageFares": { + "title": "Array", + "description": "計費站區間計費", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "RouteFare" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare": { + "title": "ODFare", + "required": [ + "DestinationStops", + "Direction", + "Fares", + "OriginStops" + ], + "type": "object", + "properties": { + "Direction": { + "title": "integer", + "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" + }, + "OriginStops": { + "title": "OD", + "description": "計費起點", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD" + } + ], + "xml": { + "name": "OD" + } + }, + "DestinationStops": { + "title": "OD", + "description": "計費迄點", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD" + } + ], + "xml": { + "name": "OD" + } + }, + "Fares": { + "title": "Array", + "description": "計費價格", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+FareOD" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "ODFare" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+FareOD": { + "title": "FareOD", + "required": [ + "FareClass", + "Price", + "TicketType" + ], + "type": "object", + "properties": { + "TicketType": { + "title": "integer", + "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", + "type": "string" + }, + "FareClass": { + "title": "integer", + "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", + "type": "string" + }, + "Price": { + "title": "String", + "description": "計費價格", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "FareOD" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD": { + "title": "OD", + "required": [ + "StopID", + "StopUID" + ], + "type": "object", + "properties": { + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopID": { + "title": "String", + "description": "計費起點站牌代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" } } + }, + "xml": { + "name": "OD" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute]": { - "title": "BusDisplayStopOfRouteList", - "description": "版本 wrapper (具有版本資訊)", + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare": { + "title": "SectionFare", "required": [ - "AuthorityCode", - "DisplayStopOfRoutes", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime", - "VersionID" + "BufferZones", + "Fares" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "BufferZones": { + "title": "Array", + "description": "緩衝區資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+BufferZone" + }, + "xml": { + "name": "List`1" + } }, - "DisplayStopOfRoutes": { + "Fares": { "title": "Array", - "description": "資料列表", + "description": "每段收費資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareSection" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "SectionFare" } }, - "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+ServiceDay": { - "title": "ServiceDay", + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+BufferZone": { + "title": "BufferZone", "required": [ - "Friday", - "Monday", - "Saturday", - "Sunday", - "Thursday", - "Tuesday", - "Wednesday" + "Direction", + "FareBufferZoneDestination", + "FareBufferZoneOrigin", + "SectionSequence" ], "type": "object", "properties": { - "ServiceTag": { + "ZoneID": { "title": "String", - "description": "服務日標籤", - "type": "string" + "description": "緩衝區代號", + "type": "string", + "xml": { + "name": "String" + } }, - "Monday": { - "title": "Boolean", - "description": "星期一營運與否", - "type": "boolean" + "SectionSequence": { + "title": "String", + "description": "緩衝區順序", + "type": "string", + "xml": { + "name": "String" + } }, - "Tuesday": { - "title": "Boolean", - "description": "星期二營運與否", - "type": "boolean" + "Direction": { + "title": "integer", + "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" }, - "Wednesday": { - "title": "Boolean", - "description": "星期三營運與否", - "type": "boolean" + "FareBufferZoneOrigin": { + "title": "FareBufferZone", + "description": "緩衝區起點", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone" + } + ], + "xml": { + "name": "FareBufferZone" + } }, - "Thursday": { - "title": "Boolean", - "description": "星期四營運與否", - "type": "boolean" + "FareBufferZoneDestination": { + "title": "FareBufferZone", + "description": "緩衝區訖點", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone" + } + ], + "xml": { + "name": "FareBufferZone" + } }, - "Friday": { - "title": "Boolean", - "description": "星期五營運與否", - "type": "boolean" + "BufferZoneDescription": { + "title": "String", + "description": "收費緩衝區描述", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "BufferZone" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone": { + "title": "FareBufferZone", + "required": [ + "StopID", + "StopUID" + ], + "type": "object", + "properties": { + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "Saturday": { - "title": "Boolean", - "description": "星期六營運與否", - "type": "boolean" + "StopID": { + "title": "String", + "description": "緩衝區站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Sunday": { - "title": "Boolean", - "description": "星期日營運與否", - "type": "boolean" + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + } + }, + "xml": { + "name": "FareBufferZone" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareSection": { + "title": "FareSection", + "required": [ + "FareClass", + "Price", + "TicketType" + ], + "type": "object", + "properties": { + "TicketType": { + "title": "integer", + "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", + "type": "string" }, - "NationalHolidays": { - "description": "國定假日營運與否", - "type": "boolean" + "FareClass": { + "title": "integer", + "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", + "type": "string" }, - "DayBeforeNationalHoliday": { - "description": "國定假日前一日營運與否", - "type": "boolean" + "Price": { + "title": "String", + "description": "計費價格", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "FareSection" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare": { + "title": "StageFare", + "required": [ + "DestinationStage", + "Direction", + "Fares", + "OriginStage" + ], + "type": "object", + "properties": { + "Direction": { + "title": "integer", + "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" }, - "DayAfterNationalHoliday": { - "description": "國定假日後一日營運與否", - "type": "boolean" + "OriginStage": { + "title": "Stage", + "description": "起點計費站", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage" + } + ], + "xml": { + "name": "Stage" + } }, - "TyphoonDay": { - "description": "颱風停止上班上課期間營運與否", - "type": "boolean" + "DestinationStage": { + "title": "Stage", + "description": "訖點計費站", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage" + } + ], + "xml": { + "name": "Stage" + } + }, + "Fares": { + "title": "Array", + "description": "票價內容", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+FareStage" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "StageFare" } }, - "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+FirstLastTrip": { - "title": "FirstLastTrip", + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+DiscountPeriod": { + "title": "DiscountPeriod", + "description": "優惠時段", "required": [ - "FirstTripDepTime", - "LastTripDepTime", - "ServiceDay" + "EndTime", + "ServiceDay", + "StartTime" ], "type": "object", "properties": { "ServiceDay": { "title": "ServiceDay", - "description": "服務日型態", + "description": "營運日型態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+ServiceDay" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+ServiceDay" } - ] + ], + "xml": { + "name": "ServiceDay" + } }, - "FirstTripDepTime": { + "StartTime": { "title": "String", - "description": "頭班車發車時間(HH:mm)", - "type": "string" + "description": "開始時間(HH:mm制)", + "type": "string", + "xml": { + "name": "String" + } }, - "LastTripDepTime": { + "EndTime": { "title": "String", - "description": "末班車發車時間(HH:mm)", - "type": "string" + "description": "結束時間(HH:mm制)", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "DiscountPeriod" } }, - "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo": { - "title": "FirstLastTripInfo", + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+FareStage": { + "title": "FareStage", + "description": "票價內容", "required": [ - "Direction", - "FirstLastTrips", - "OperatorID", - "RouteID", - "RouteName", - "RouteUID" + "FareName", + "TicketType" ], "type": "object", "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" - }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" - }, - "SubRouteUID": { + "FareName": { "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "票價名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "TicketType": { + "title": "integer", + "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", "type": "string" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "Direction": { - "format": "int32", + "FareClass": { "title": "integer", - "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", + "type": "string" }, - "FirstLastTrips": { + "DiscountPeriods": { "title": "Array", - "description": "路線首末班車資訊", + "description": "優惠時段", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+FirstLastTrip" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+DiscountPeriod" + }, + "xml": { + "name": "List`1" + } + }, + "Price": { + "title": "String", + "description": "計費價格", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "FareStage" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo]": { - "title": "BusFirstLastTripInfoList", - "description": "版本 wrapper (具有版本資訊)", + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", "required": [ - "AuthorityCode", - "FirstLastTripInfos", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime", - "VersionID" + "Friday", + "Monday", + "Saturday", + "ServiceTag", + "Sunday", + "Thursday", + "Tuesday", + "Wednesday" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "ServiceTag": { + "title": "String", + "description": "服務日標籤", + "type": "string", + "xml": { + "name": "String" + } }, - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "Sunday": { + "title": "integer", + "description": "星期日是否營運 : [0:'否',1:'是']", "type": "string" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "Monday": { + "title": "integer", + "description": "星期一是否營運 : [0:'否',1:'是']", "type": "string" }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", + "Tuesday": { + "title": "integer", + "description": "星期二是否營運 : [0:'否',1:'是']", "type": "string" }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "Wednesday": { + "title": "integer", + "description": "星期三是否營運 : [0:'否',1:'是']", + "type": "string" }, - "FirstLastTripInfos": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo" - } - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.N1Data": { - "title": "N1Data", - "required": [ - "Direction", - "RecTime", - "RouteID", - "StopID", - "TransTime" - ], - "type": "object", - "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", + "Thursday": { + "title": "integer", + "description": "星期四是否營運 : [0:'否',1:'是']", "type": "string" }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", + "Friday": { + "title": "integer", + "description": "星期五是否營運 : [0:'否',1:'是']", "type": "string" }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Saturday": { + "title": "integer", + "description": "星期六是否營運 : [0:'否',1:'是']", + "type": "string" }, - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "NationalHolidays": { + "title": "integer", + "description": "國定假日是否營運 : [0:'否',1:'是']", "type": "string" }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "DayBeforeHoliday": { + "title": "integer", + "description": "假日前一日是否營運 : [0:'否',1:'是']", "type": "string" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "DayAfterHoliday": { + "title": "integer", + "description": "假日後一日是否營運 : [0:'否',1:'是']", + "type": "string" }, - "Direction": { - "format": "int32", + "TyphoonDay": { "title": "integer", - "description": "車輛去返程(該方向指的是此公車運具目前所在路線的去返程方向,非指站牌所在路線的去返程方向,使用時請加值業者多加注意) : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + "description": "颱風停止上班上課期間是否營運 : [0:'否',1:'是']", + "type": "string" + } + }, + "xml": { + "name": "ServiceDay" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage": { + "title": "Stage", + "description": "計費站", + "required": [ + "StopUID" + ], + "type": "object", + "properties": { + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "DestinationStopID": { + "StopID": { "title": "String", - "description": "迄點站站牌ID代碼", - "type": "string" + "description": "計費訖點站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "DestinationStopName": { + "StopName": { "title": "NameType", - "description": "迄點站站牌名稱", + "description": "站牌名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "StopUID": { + ], + "xml": { + "name": "NameType" + } + } + }, + "xml": { + "name": "Stage" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteNetwork": { + "title": "RouteNetwork", + "required": [ + "RouteID", + "RouteName", + "RouteUID", + "Segments" + ], + "type": "object", + "properties": { + "RouteUID": { "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "StopID": { + "RouteID": { "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { + "RouteName": { "title": "NameType", - "description": "站牌名稱", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "PlateNumb": { - "title": "String", - "description": "車牌號碼 [値為値為-1時,表示目前該站牌無車輛行駛]", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "EstimateTime": { - "format": "int32", - "description": "到站時間預估(秒) [當StopStatus値為1~4或PlateNumb値為-1時,EstimateTime値為空値; 反之,EstimateTime有値]", - "type": "integer" + "Segments": { + "title": "Array", + "description": "站間線段序號", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteNetwork+Segment" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "RouteNetwork" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.RouteNetwork+Segment": { + "title": "Segment", + "required": [ + "Distance", + "FromStopID", + "Sequence", + "ToStopID" + ], + "type": "object", + "properties": { + "Sequence": { + "format": "float", + "title": "Single", + "description": "站間線段序號", + "type": "number" }, - "ScheduledTime": { + "FromStopID": { "title": "String", - "description": "預排班表時間", - "type": "string" - }, - "IsLastBus": { - "description": "是否為末班車", - "type": "boolean" + "description": "表BusStop唯一碼(起點站牌)", + "type": "string", + "xml": { + "name": "String" + } }, - "CurrentStop": { + "ToStopID": { "title": "String", - "description": "車輛目前所在站牌代碼", - "type": "string" - }, - "StopStatus": { - "format": "int32", - "title": "integer", - "description": "車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運']", - "type": "integer" - }, - "StopCountDown": { - "format": "int32", - "description": "路線經過站牌之順序", - "type": "integer" - }, - "DataTime": { - "title": "DateTime", - "description": "系統演算該筆預估到站資料的時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "RecTime": { - "title": "DateTime", - "description": "來源端平台接收時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "description": "表BusStop唯一碼(迄點站牌)", + "type": "string", + "xml": { + "name": "String" + } }, - "TransTime": { - "title": "DateTime", - "description": "來源端平台資料傳出時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Distance": { + "format": "float", + "title": "Single", + "description": "站間線段距離", + "type": "number" } + }, + "xml": { + "name": "Segment" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.N1Data]": { - "title": "BusN1DataList", - "description": "基本 wrapper", + "PTX.Service.DTO.Bus.Specification.V3.S2STravelTime": { + "title": "S2STravelTime", "required": [ - "AuthorityCode", - "N1Datas", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "RouteID", + "RouteUID", + "TravelTimes" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "RouteID": { + "title": "String", + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "AuthorityCode": { + "SubRouteUID": { "title": "String", - "description": "業管機關簡碼", - "type": "string" + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "SubRouteID": { + "title": "String", + "description": "附屬路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "N1Datas": { + "TravelTimes": { "title": "Array", - "description": "資料列表", + "description": "站間運行時間資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.N1Data" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.S2STravelTime+TravelTime" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "S2STravelTime" } }, - "PTX.Service.DTO.Bus.Specification.V3.NetworkMapURL": { - "title": "NetworkMapURL", + "PTX.Service.DTO.Bus.Specification.V3.S2STravelTime+TravelTime": { + "title": "TravelTime", "required": [ - "MapName", - "MapNameURL" + "Distance", + "FromStopID", + "RunTime", + "Sequence", + "StopTime", + "ToStopID" ], "type": "object", "properties": { - "MapName": { - "title": "String", - "description": "路網圖名稱", - "type": "string" + "Sequence": { + "format": "int32", + "title": "Int32", + "description": "站間序號", + "type": "integer" }, - "MapNameURL": { - "title": "NameType", - "description": "路網圖網址URL", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Network+LBSMapURL": { - "title": "LBSMapURL", - "type": "object", - "properties": { - "MapName": { + "FromStopID": { "title": "String", - "description": "路網圖", - "type": "string" + "description": "起站站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Zh_tw": { + "ToStopID": { "title": "String", - "description": "路網圖網址URL(中文版)", - "type": "string" + "description": "迄站站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "En": { - "title": "String", - "description": "路網圖網址URL(英文版)", - "type": "string" + "Distance": { + "format": "float", + "title": "Single", + "description": "站間距離", + "type": "number" }, - "LBSLocation": { - "title": "PointType", - "description": "適地性圖資貼放的位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" - } - ] + "RunTime": { + "format": "int32", + "title": "Int32", + "description": "站間預估行駛時間", + "type": "integer" + }, + "StopTime": { + "format": "int32", + "title": "Int32", + "description": "起站停靠時間", + "type": "integer" } + }, + "xml": { + "name": "TravelTime" } }, - "PTX.Service.DTO.Bus.Specification.V3.Network": { - "title": "Network", + "PTX.Service.DTO.Bus.Specification.V3.Schedule": { + "title": "Schedule", + "description": "營運班表資料", "required": [ - "NetworkID", - "NetworkMapURL", - "NetworkName" + "Direction", + "OperatorCode", + "OperatorID", + "RouteID", + "RouteName", + "RouteUID", + "SubRouteID" ], "type": "object", "properties": { - "NetworkID": { + "RouteUID": { "title": "String", - "description": "公車路網代碼", - "type": "string" + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "NetworkName": { + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteName": { "title": "NameType", - "description": "路網名稱", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "NetworkMapURL": { - "title": "NetworkMapURL", - "description": "路網圖網址URL", + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorCode": { + "title": "String", + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "附屬路線名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.NetworkMapURL" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "LBSMapURLs": { + "Direction": { + "title": "integer", + "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" + }, + "ScheduleURL": { + "title": "String", + "description": "營運班表說明網址", + "type": "string", + "xml": { + "name": "String" + } + }, + "Timetables": { "title": "Array", - "description": "適地性路網圖資網址URL", + "description": "預定時刻表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Network+LBSMapURL" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+TimeTable" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "Schedule" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Network]": { - "title": "BusNetworkList", - "description": "版本 wrapper (具有版本資訊)", + "PTX.Service.DTO.Bus.Specification.V3.Schedule+DatePeriod": { + "title": "DatePeriod", "required": [ - "AuthorityCode", - "Networks", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime", - "VersionID" + "EndDate", + "StartDate" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { + "StartDate": { "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "description": "開始日期", + "type": "string", + "xml": { + "name": "String" + } }, - "Networks": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Network" + "EndDate": { + "title": "String", + "description": "結束日期", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "DatePeriod" } }, - "PTX.Service.DTO.Bus.Specification.V3.News": { - "title": "News", - "required": [ - "Description", - "Language", - "NewsCategory", - "NewsID", - "PublishTime", - "Title" - ], + "PTX.Service.DTO.Bus.Specification.V3.Schedule+ServiceDay": { + "title": "ServiceDay", "type": "object", "properties": { - "NewsID": { + "ServiceTag": { "title": "String", - "description": "最新消息原單位發布代碼", - "type": "string" + "description": "服務日標籤", + "type": "string", + "xml": { + "name": "String" + } }, - "Language": { - "title": "String", - "description": "語系", + "Monday": { + "title": "integer", + "description": "星期一營運與否 : [0:'否',1:'是']", "type": "string" }, - "Department": { - "title": "String", - "description": "發布單位", + "Tuesday": { + "title": "integer", + "description": "星期二營運與否 : [0:'否',1:'是']", "type": "string" }, - "Title": { - "title": "String", - "description": "消息標題", + "Wednesday": { + "title": "integer", + "description": "星期三營運與否 : [0:'否',1:'是']", "type": "string" }, - "NewsCategory": { - "title": "String", - "description": "消息類別= ['1: 最新消息', '2: 新聞稿', '3: 營運資訊', '4: 轉乘資訊', '5: 活動訊息', '6: 系統公告', '99: 其他']", + "Thursday": { + "title": "integer", + "description": "星期四營運與否 : [0:'否',1:'是']", "type": "string" }, - "Description": { - "title": "String", - "description": "內容描述", + "Friday": { + "title": "integer", + "description": "星期五營運與否 : [0:'否',1:'是']", "type": "string" }, - "NewsURL": { - "title": "String", - "description": "報導網站連結", + "Saturday": { + "title": "integer", + "description": "星期六營運與否 : [0:'否',1:'是']", "type": "string" }, - "AttachmentURL": { - "title": "String", - "description": "相關網站連結", + "Sunday": { + "title": "integer", + "description": "星期日營運與否 : [0:'否',1:'是']", "type": "string" }, - "PublishTime": { - "title": "DateTime", - "description": "消息公告日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "NationalHolidays": { + "title": "integer", + "description": "國定假日營運與否 : [0:'否',1:'是']", "type": "string" }, - "StartTime": { - "title": "DateTime", - "description": "開始時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "DayBeforeHoliday": { + "title": "integer", + "description": "國定假日前一日營運與否 : [0:'否',1:'是']", "type": "string" }, - "EndTime": { - "title": "DateTime", - "description": "結束時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "DayAfterHoliday": { + "title": "integer", + "description": "國定假日後一日營運與否 : [0:'否',1:'是']", "type": "string" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]此筆資料最後更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "TyphoonDay": { + "title": "integer", + "description": "颱風停止上班上課期間營運與否 : [0:'否',1:'是']", "type": "string" } + }, + "xml": { + "name": "ServiceDay" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.News]": { - "title": "BusNewsList", - "description": "基本 wrapper", + "PTX.Service.DTO.Bus.Specification.V3.Schedule+SpecialDay": { + "title": "SpecialDay", "required": [ - "AuthorityCode", - "Newses", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "DatePeriod", + "Dates", + "Description", + "ServiceStatus" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Dates": { + "title": "Array", + "description": "不連續特殊日期", + "type": "array", + "items": { + "title": "String", + "type": "string", + "xml": { + "name": "String" + } + }, + "xml": { + "name": "List`1" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "DatePeriod": { + "title": "DatePeriod", + "description": "連續特殊日期", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+DatePeriod" + } + ], + "xml": { + "name": "DatePeriod" + } }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", + "ServiceStatus": { + "title": "integer", + "description": "營運服務狀態代碼0=停止營運, 1=正常營運 , 2=加班營運 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']", "type": "string" }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - }, - "Newses": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.News" + "Description": { + "title": "String", + "description": "特殊營運描述", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "SpecialDay" } }, - "PTX.Service.DTO.Bus.Specification.V3.Operator": { - "title": "Operator", + "PTX.Service.DTO.Bus.Specification.V3.Schedule+StopTime": { + "title": "StopTime", "required": [ - "OperatorCode", - "OperatorEmail", - "OperatorID", - "OperatorName", - "OperatorPhone", - "OperatorUrl" + "ArrivalTime", + "DepartureTime", + "StopID", + "StopSequence", + "StopUID" ], "type": "object", "properties": { - "OperatorID": { + "StopSequence": { + "format": "int32", + "title": "Int32", + "description": "路線經過站牌之順序(由1開始)", + "type": "integer" + }, + "StopUID": { "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorCode": { + "StopID": { "title": "String", - "description": "營運業者簡碼", - "type": "string" + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorName": { + "StopName": { "title": "NameType", - "description": "營運業者名稱", + "description": "站牌名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "OperatorNo": { - "title": "String", - "description": "營運業者編號[交通部票證資料系統定義]", - "type": "string" - }, - "SubAuthorityCode": { - "title": "String", - "description": "營運業者所屬業管子機關簡碼", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "OperatorPhone": { + "ArrivalTime": { "title": "String", - "description": "營運業者連絡電話", - "type": "string" + "description": "到站時間,格式為:HH:mm", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorEmail": { + "DepartureTime": { "title": "String", - "description": "營運業者電子信箱", - "type": "string" - }, - "OperatorUrl": { + "description": "離站時間,格式為:HH:mm", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "StopTime" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Schedule+TimeTable": { + "title": "TimeTable", + "required": [ + "ServiceDay", + "SpecialDays", + "StopTimes" + ], + "type": "object", + "properties": { + "TripID": { "title": "String", - "description": "營運業者網址鏈結", - "type": "string" + "description": "班次代碼,為無意義之編碼", + "type": "string", + "xml": { + "name": "String" + } }, - "FareURL": { + "IsLowFloor": { "title": "String", - "description": "營運業者票價查詢網站連結", - "type": "string" + "description": "該路線班次是否使用低地板公車車輛", + "type": "string", + "xml": { + "name": "String" + } }, - "ReservationUrl": { - "title": "String", - "description": "訂票網址鏈結", - "type": "string" + "StopTimes": { + "title": "Array", + "description": "公車停靠時間資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+StopTime" + }, + "xml": { + "name": "List`1" + } }, - "ReservationPhone": { - "title": "String", - "description": "訂票連絡電話", - "type": "string" + "ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" + } }, - "OperatorLogoURL": { - "title": "String", - "description": "營運業者Logo網址", - "type": "string" + "SpecialDays": { + "title": "Array", + "description": "例外營運日", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+SpecialDay" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "TimeTable" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Operator]": { - "title": "BusOperatorList", - "description": "版本 wrapper (具有版本資訊)", - "required": [ - "AuthorityCode", - "Operators", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime", - "VersionID" - ], + "PTX.Service.DTO.Bus.Specification.V3.Scope": { + "title": "Scope", + "description": "通阻影響範圍", "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" + "Routes": { + "title": "Array", + "description": "路線資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Route" + }, + "xml": { + "name": "List`1" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "SubRoutes": { + "title": "Array", + "description": "附屬路線資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+SubRoute" + }, + "xml": { + "name": "List`1" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "Stops": { + "title": "Array", + "description": "站牌資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Stop" + }, + "xml": { + "name": "List`1" + } }, - "AuthorityCode": { + "TripIDs": { + "title": "Array", + "description": "班次代碼資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Trip" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "Scope" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Scope+Route": { + "title": "Route", + "description": "路線資料", + "type": "object", + "properties": { + "RouteID": { "title": "String", - "description": "業管機關簡碼", - "type": "string" + "description": "地區既用中之班次代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + } + }, + "xml": { + "name": "Route" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Scope+Stop": { + "title": "Stop", + "description": "站牌資料", + "type": "object", + "properties": { + "StopID": { + "title": "String", + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "Operators": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Operator" + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" } } + }, + "xml": { + "name": "Stop" } }, - "PTX.Service.DTO.Bus.Specification.V3.Route+Operator": { - "title": "Operator", - "description": "營運業者資訊", - "required": [ - "OperatorCode", - "OperatorID", - "OperatorName", - "OperatorNo" - ], + "PTX.Service.DTO.Bus.Specification.V3.Scope+SubRoute": { + "title": "SubRoute", + "description": "附屬路線資料", "type": "object", "properties": { - "OperatorID": { + "SubRouteID": { "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "地區既用中之附屬班次代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorName": { + "SubRouteName": { "title": "NameType", - "description": "營運業者代碼", + "description": "附屬路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "OperatorCode": { - "title": "String", - "description": "平台代碼", - "type": "string" - }, - "OperatorNo": { + ], + "xml": { + "name": "NameType" + } + } + }, + "xml": { + "name": "SubRoute" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Scope+Trip": { + "title": "Trip", + "description": "班次代碼資料", + "type": "object", + "properties": { + "TripID": { "title": "String", - "description": "營運業者編號[交通部票證資料系統定義]", - "type": "string" + "description": "地區既用中之班次代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Trip" } }, "PTX.Service.DTO.Bus.Specification.V3.ServiceType": { @@ -5201,66 +6364,344 @@ "description": "是否為機場接駁車", "type": "boolean" }, - "IsActivityShuttleBus": { - "title": "Boolean", - "description": "是否為活動接駁車", - "type": "boolean" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Route+Stop": { - "title": "Stop", - "required": [ - "StopID", - "StopName" - ], - "type": "object", - "properties": { - "StopID": { + "IsActivityShuttleBus": { + "title": "Boolean", + "description": "是否為活動接駁車", + "type": "boolean" + } + }, + "xml": { + "name": "ServiceType" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Shape": { + "title": "Shape", + "required": [ + "Direction", + "Geometry", + "RouteID", + "RouteName", + "RouteUID", + "SubRouteID", + "SubRouteName", + "SubRouteUID" + ], + "type": "object", + "properties": { + "RouteUID": { + "title": "String", + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteID": { + "title": "String", + "description": "地區既用中之路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "附屬路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Direction": { + "title": "integer", + "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" + }, + "Geometry": { + "title": "String", + "description": "公車線型資料(WKT)", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Shape" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Station": { + "title": "Station", + "required": [ + "StationID", + "StationName", + "StationPosition", + "StationUID" + ], + "type": "object", + "properties": { + "StationUID": { + "title": "String", + "description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationID": { + "title": "String", + "description": "站位代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "站位名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StationPosition": { + "title": "PointType", + "description": "站位位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } + }, + "RoadName": { + "title": "String", + "description": "站牌所在道路上之路名。", + "type": "string", + "xml": { + "name": "String" + } + }, + "Bearing": { + "title": "String", + "description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationAddress": { + "title": "String", + "description": "站位地址", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationDescription": { + "title": "String", + "description": "站牌詳細說明描述", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Station" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Stop": { + "title": "Stop", + "required": [ + "StopID", + "StopName", + "StopPosition", + "StopUID" + ], + "type": "object", + "properties": { + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopID": { + "title": "String", + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StopPosition": { + "title": "PointType", + "description": "站牌位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } + }, + "RoadName": { + "title": "String", + "description": "路名", + "type": "string", + "xml": { + "name": "String" + } + }, + "Bearing": { + "title": "String", + "description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行", + "type": "string", + "xml": { + "name": "String" + } + }, + "CityCode": { + "title": "String", + "description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopURL": { + "title": "String", + "description": "站牌資訊說明網址", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopAddress": { + "title": "String", + "description": "站牌地址", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationUID": { + "title": "String", + "description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationID": { + "title": "String", + "description": "站位代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StopCode": { "title": "String", - "description": "站牌代碼", - "type": "string" + "description": "站牌簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { - "title": "NameType", - "description": "站牌名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "StopDescription": { + "title": "String", + "description": "站牌詳細說明描述", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Stop" } }, - "PTX.Service.DTO.Bus.Specification.V3.Route": { - "title": "Route", - "description": "路線資料型別", + "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute": { + "title": "StopOfRoute", "required": [ - "DepartureStopName", - "DestinationStopName", - "EndStop", - "HasSubRoutes", - "IsCircular", - "Operators", + "Direction", "RouteID", "RouteName", - "RouteType", "RouteUID", - "ServiceType", - "StartStop", - "TicketPriceDescription" + "Stops" ], "type": "object", "properties": { "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -5269,846 +6710,731 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "RouteLongName": { - "title": "NameType", - "description": "路線長名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "RouteDescription": { - "title": "String", - "description": "路線描述", - "type": "string" - }, - "HasSubRoutes": { - "title": "Boolean", - "description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)", - "type": "boolean" + ], + "xml": { + "name": "NameType" + } }, "Operators": { "title": "Array", "description": "營運業者", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Operator" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Operator" + }, + "xml": { + "name": "List`1" } }, - "RouteType": { - "format": "int32", - "title": "integer", - "description": "公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運']", - "type": "integer" - }, - "ServiceType": { - "title": "ServiceType", - "description": "公車路線服務類型", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.ServiceType" - } - ] - }, - "TicketPriceDescription": { - "title": "NameType", - "description": "票價描述", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "DepartureStopName": { - "title": "NameType", - "description": "路線起站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "DestinationStopName": { - "title": "NameType", - "description": "路線迄站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, - "FareBufferZoneDescription": { + "SubRouteName": { "title": "NameType", - "description": "計費緩衝區敘述", + "description": "附屬路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "StartStop": { - "title": "Stop", - "description": "起始站牌", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Stop" - } - ] - }, - "EndStop": { - "title": "Stop", - "description": "終點站牌", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Stop" - } - ] - }, - "IsCircular": { - "title": "Boolean", - "description": "是否為環狀線", - "type": "boolean" - }, - "RouteURL": { - "title": "String", - "description": "路線資訊說明網址", - "type": "string" - }, - "LiveBusURL": { - "title": "String", - "description": "路線公車動態資訊網址", - "type": "string" - }, - "RouteMapImageURL": { - "title": "String", - "description": "路線簡圖網址", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "FareURL": { - "title": "String", - "description": "收費資訊說明網址", + "Direction": { + "title": "integer", + "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", "type": "string" }, - "RouteDistance": { - "format": "float", - "description": "路線旅行長度", - "type": "number" + "Stops": { + "title": "Array", + "description": "所有經過站牌", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Stop" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "StopOfRoute" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Route]": { - "title": "BusRouteList", - "description": "版本 wrapper (具有版本資訊)", + "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Operator": { + "title": "Operator", + "description": "營運業者資訊", "required": [ - "AuthorityCode", - "Routes", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime", - "VersionID" + "OperatorCode", + "OperatorID", + "OperatorName", + "OperatorNo" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "OperatorName": { + "title": "NameType", + "description": "營運業者代碼", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "AuthorityCode": { + "OperatorCode": { "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "description": "平台代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Routes": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route" + "OperatorNo": { + "title": "String", + "description": "營運業者編號[交通部票證資料系統定義]", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "Operator" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone": { - "title": "FareBufferZone", + "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Stop": { + "title": "Stop", "required": [ + "BoardingType", "StopID", + "StopName", + "StopPosition", + "StopSequence", "StopUID" ], "type": "object", "properties": { "StopUID": { "title": "String", - "type": "string" + "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, "StopID": { "title": "String", - "type": "string" + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } }, "StopName": { "title": "NameType", + "description": "站牌名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+BufferZone": { - "title": "BufferZone", - "required": [ - "Direction", - "FareBufferZoneDestination", - "FareBufferZoneOrigin", - "SectionSequence" - ], - "type": "object", - "properties": { - "ZoneID": { - "title": "String", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "SectionSequence": { - "title": "String", + "BoardingType": { + "title": "integer", + "description": "上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車']", "type": "string" }, - "Direction": { + "StopSequence": { "format": "int32", - "title": "integer", - "description": "公車路線去返程列舉值,其中迴圈表示該路線去程終點站不休息直接返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "title": "Int32", + "description": "路線經過站牌之順序", "type": "integer" }, - "FareBufferZoneOrigin": { - "title": "FareBufferZone", + "StopPosition": { + "title": "PointType", + "description": "站牌位置", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" } - ] + ], + "xml": { + "name": "PointType" + } }, - "FareBufferZoneDestination": { - "title": "FareBufferZone", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone" - } - ] + "IsSectionPoint": { + "title": "Boolean", + "description": "是否為分段點", + "type": "boolean" }, - "BufferZoneDescription": { + "CumulativeDistance": { "title": "String", - "type": "string" + "description": "累積行駛距離", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Stop" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareSection": { - "title": "FareSection", + "PTX.Service.DTO.Bus.Specification.V3.StopTime": { + "title": "StopTime", "required": [ - "FareClass", - "Price", - "TicketType" + "ArrivalTime", + "DepartureTime", + "StopID", + "StopSequence", + "StopUID" ], "type": "object", "properties": { - "TicketType": { + "StopSequence": { "format": "int32", - "title": "integer", - "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", + "title": "Int32", + "description": "路線經過站牌之順序(由1開始)", "type": "integer" }, - "FareClass": { - "format": "int32", - "title": "integer", - "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", - "type": "integer" + "StopUID": { + "title": "String", + "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "Price": { + "StopID": { "title": "String", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare": { - "title": "SectionFare", - "required": [ - "BufferZones", - "Fares" - ], - "type": "object", - "properties": { - "BufferZones": { - "title": "Array", - "description": "緩衝區資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+BufferZone" + "description": "地區既用中之站牌代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" } }, - "Fares": { - "title": "Array", - "description": "每段收費資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareSection" + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "ArrivalTime": { + "title": "String", + "description": "到站時間,格式為:HH:mm", + "type": "string", + "xml": { + "name": "String" + } + }, + "DepartureTime": { + "title": "String", + "description": "離站時間,格式為:HH:mm", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "StopTime" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD": { - "title": "OD", + "PTX.Service.DTO.Bus.Specification.V3.SubRoute": { + "title": "SubRoute", "required": [ - "StopID", - "StopUID" + "Direction", + "Operators", + "RouteID", + "RouteName", + "RouteUID", + "SubRouteID", + "SubRouteName", + "SubRouteUID" ], "type": "object", "properties": { - "StopUID": { + "RouteUID": { "title": "String", - "type": "string" + "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "StopID": { + "RouteID": { "title": "String", - "type": "string" + "description": "機關定義路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { + "RouteName": { "title": "NameType", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+FareOD": { - "title": "FareOD", - "required": [ - "FareClass", - "Price", - "TicketType" - ], - "type": "object", - "properties": { - "TicketType": { - "format": "int32", - "title": "integer", - "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "FareClass": { - "format": "int32", - "title": "integer", - "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", - "type": "integer" + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } }, - "Price": { + "SubRouteID": { "title": "String", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare": { - "title": "ODFare", - "required": [ - "DestinationStops", - "Direction", - "Fares", - "OriginStops" - ], - "type": "object", - "properties": { + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "附屬路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "SubRouteLongName": { + "title": "NameType", + "description": "附屬路線長名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Operators": { + "title": "Array", + "description": "營運業者", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Operator" + }, + "xml": { + "name": "List`1" + } + }, "Direction": { - "format": "int32", "title": "integer", - "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" + "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string" + }, + "HeadSign": { + "title": "String", + "description": "車頭描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "DepartureStopName": { + "title": "NameType", + "description": "路線起站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "OriginStops": { - "title": "OD", - "description": "計費起點", + "DestinationStopName": { + "title": "NameType", + "description": "路線迄站名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "DestinationStops": { - "title": "OD", - "description": "計費迄點", + "StartStop": { + "title": "Stop", + "description": "起始站牌", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop" } - ] - }, - "Fares": { - "title": "Array", - "description": "計費價格", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+FareOD" + ], + "xml": { + "name": "Stop" } - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage": { - "title": "Stage", - "required": [ - "StopUID" - ], - "type": "object", - "properties": { - "StopUID": { - "title": "String", - "type": "string" - }, - "StopID": { - "title": "String", - "type": "string" }, - "StopName": { - "title": "NameType", + "EndStop": { + "title": "Stop", + "description": "終點站牌", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop" } - ] + ], + "xml": { + "name": "Stop" + } } + }, + "xml": { + "name": "SubRoute" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+ServiceDay": { - "title": "ServiceDay", + "PTX.Service.DTO.Bus.Specification.V3.SubRoute+Operator": { + "title": "Operator", "required": [ - "Friday", - "Monday", - "Saturday", - "ServiceTag", - "Sunday", - "Thursday", - "Tuesday", - "Wednesday" + "OperatorCode", + "OperatorID", + "OperatorName", + "OperatorNo" ], "type": "object", "properties": { - "ServiceTag": { + "OperatorID": { "title": "String", - "type": "string" - }, - "Sunday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "Monday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "Tuesday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "Wednesday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "Thursday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "Friday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "Saturday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "NationalHolidays": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "DayBeforeHoliday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - }, - "DayAfterHoliday": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TyphoonDay": { - "format": "int32", - "title": "integer", - "description": "[0:'否',1:'是']", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+DiscountPeriod": { - "title": "DiscountPeriod", - "required": [ - "EndTime", - "ServiceDay", - "StartTime" - ], - "type": "object", - "properties": { - "ServiceDay": { - "title": "ServiceDay", + "OperatorName": { + "title": "NameType", + "description": "營運業者代碼", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+ServiceDay" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "StartTime": { + "OperatorCode": { "title": "String", - "type": "string" + "description": "平台代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "EndTime": { + "OperatorNo": { "title": "String", - "type": "string" + "description": "營運業者編號[交通部票證資料系統定義]", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Operator" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+FareStage": { - "title": "FareStage", + "PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop": { + "title": "Stop", "required": [ - "FareName", - "TicketType" + "StopID", + "StopName" ], "type": "object", "properties": { - "FareName": { + "StopID": { "title": "String", - "type": "string" - }, - "TicketType": { - "format": "int32", - "title": "integer", - "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']", - "type": "integer" - }, - "FareClass": { - "format": "int32", - "title": "integer", - "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']", - "type": "integer" - }, - "DiscountPeriods": { - "title": "Array", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+DiscountPeriod" + "description": "站牌代碼", + "type": "string", + "xml": { + "name": "String" } }, - "Price": { - "title": "String", - "type": "string" + "StopName": { + "title": "NameType", + "description": "站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } } + }, + "xml": { + "name": "Stop" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare": { - "title": "StageFare", + "PTX.Service.DTO.Bus.Specification.V3.TimeTable": { + "title": "TimeTable", "required": [ - "DestinationStage", - "Direction", - "Fares", - "OriginStage" + "StopTimes" ], "type": "object", "properties": { - "Direction": { - "format": "int32", - "title": "integer", - "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", - "type": "integer" - }, - "OriginStage": { - "title": "Stage", - "description": "起點計費站", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage" - } - ] - }, - "DestinationStage": { - "title": "Stage", - "description": "訖點計費站", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage" - } - ] + "TripID": { + "title": "String", + "description": "班次代碼,為無意義之編碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Fares": { + "StopTimes": { "title": "Array", - "description": "票價內容", + "description": "公車停靠時間資料", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+FareStage" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopTime" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "TimeTable" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteFare": { - "title": "RouteFare", - "description": "每日時刻表資料", + "PTX.Service.DTO.Bus.Specification.V3.Vehicle": { + "title": "Vehicle", "required": [ - "FarePricingType", - "IsForAllSubRoutes", - "IsFreeBus", - "RouteID", - "RouteUID" + "CardReaderLayout", + "HasLiftOrRamp", + "HasWifi", + "IsElectric", + "IsHybrid", + "IsLowFloor", + "OperatorCode", + "OperatorID", + "PlateNumb", + "VehicleClass", + "VehicleType" ], "type": "object", "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { + "PlateNumb": { "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" - }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "description": "車牌號碼", + "type": "string", + "xml": { + "name": "String" + } }, "OperatorID": { "title": "String", "description": "營運業者代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, - "SubRouteUID": { + "OperatorCode": { "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "VehicleClass": { + "title": "integer", + "description": "車輛型別 : [1:'大型巴士',2:'中型巴士',3:'小型巴士',4:'雙層巴士',5:'雙節巴士',6:'計程車']", "type": "string" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "FarePricingType": { - "format": "int32", + "VehicleType": { "title": "integer", - "description": "描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']", - "type": "integer" + "description": "車輛種類 : [1:'一般',2:'復康巴士',3:'專車',4:'其他']", + "type": "string" }, - "IsFreeBus": { + "CardReaderLayout": { "format": "int32", - "title": "integer", - "description": "是否為免費公車 : [0:'否',1:'是']", + "title": "Int32", + "description": "讀卡機配置(1:前門刷卡;2:前後門刷卡)", "type": "integer" }, - "IsForAllSubRoutes": { - "format": "int32", - "title": "integer", - "description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']", - "type": "integer" + "IsElectric": { + "title": "Boolean", + "description": "是否為電動公車", + "type": "boolean" }, - "SectionFares": { - "title": "Array", - "description": "段次計費", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare" - } + "IsHybrid": { + "title": "Boolean", + "description": "是否為油電混合公車", + "type": "boolean" }, - "ODFares": { - "title": "Array", - "description": "起迄站間計費", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare" - } + "IsLowFloor": { + "title": "Boolean", + "description": "是否為低地板", + "type": "boolean" }, - "StageFares": { - "title": "Array", - "description": "計費站區間計費", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare" + "HasLiftOrRamp": { + "title": "Boolean", + "description": "是否有升降或斜坡板設備", + "type": "boolean" + }, + "HasWifi": { + "title": "Boolean", + "description": "是否有提供Wifi服務", + "type": "boolean" + }, + "InBoxID": { + "title": "String", + "description": "車機代號", + "type": "string", + "xml": { + "name": "String" } + }, + "PurchaseTime": { + "title": "DateTime", + "description": "購入時間", + "type": "string" } + }, + "xml": { + "name": "Vehicle" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteFare]": { - "title": "BusRouteFareList", - "description": "基本 wrapper", + "PTX.Service.DTO.Bus.Specification.V3.VehicleDepot": { + "title": "VehicleDepot", "required": [ - "AuthorityCode", - "RouteFares", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "DepotID", + "DepotName", + "Vehicles" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { + "DepotID": { "title": "String", - "description": "業管機關簡碼", - "type": "string" + "description": "營業所代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "DepotName": { + "title": "NameType", + "description": "營業所名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "RouteFares": { + "Vehicles": { "title": "Array", - "description": "資料列表", + "description": "車輛", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleDepot+Vehicle" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "VehicleDepot" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteNetwork+Segment": { - "title": "Segment", - "required": [ - "Distance", - "FromStopID", - "Sequence", - "ToStopID" - ], + "PTX.Service.DTO.Bus.Specification.V3.VehicleDepot+Vehicle": { + "title": "Vehicle", "type": "object", "properties": { - "Sequence": { - "format": "float", - "title": "Single", - "description": "站間線段序號", - "type": "number" - }, - "FromStopID": { - "title": "String", - "description": "表BusStop唯一碼(起點站牌)", - "type": "string" - }, - "ToStopID": { + "PlateNumb": { "title": "String", - "description": "表BusStop唯一碼(迄點站牌)", - "type": "string" - }, - "Distance": { - "format": "float", - "title": "Single", - "description": "站間線段距離", - "type": "number" + "description": "車牌號碼", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Vehicle" } }, - "PTX.Service.DTO.Bus.Specification.V3.RouteNetwork": { - "title": "RouteNetwork", + "PTX.Service.DTO.Bus.Specification.V3.VehicleRoute": { + "title": "VehicleRoute", "required": [ + "PlateNumb", "RouteID", "RouteName", - "RouteUID", - "Segments" + "RouteUID" ], "type": "object", "properties": { "RouteUID": { "title": "String", "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteName": { "title": "NameType", @@ -6117,37 +7443,91 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "Segments": { - "title": "Array", - "description": "站間線段序號", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteNetwork+Segment" + "SubRouteID": { + "title": "String", + "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteUID": { + "title": "String", + "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubRouteName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "PlateNumb": { + "title": "String", + "description": "車牌號碼", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "VehicleRoute" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteNetwork]": { - "title": "BusRouteNetworkList", - "description": "版本 wrapper (具有版本資訊)", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusGWrapper[PTX.Service.DTO.Bus.Specification.V3.Schedule]": { + "title": "BusScheduleList", + "description": "定期型 wrapper (有生效的起迄時間資訊)", "required": [ "AuthorityCode", - "RouteNetworks", + "EffectiveDate", + "Schedules", "SrcUpdateInterval", "SrcUpdateTime", "UpdateInterval", - "UpdateTime", - "VersionID" + "UpdateTime" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "EffectiveDate": { + "title": "DateTime", + "description": "有效起始日期", + "type": "string" + }, + "ExpireDate": { + "title": "DateTime", + "description": "有效終止日期", + "type": "string" + }, + "ScheduleName": { + "title": "String", + "description": "公車定期營運班表名稱", + "type": "string", + "xml": { + "name": "String" + } + }, + "ValidityDesciption": { + "title": "String", + "description": "時刻表適用情形說明", + "type": "string", + "xml": { + "name": "String" + } }, "UpdateTime": { "title": "DateTime", @@ -6174,116 +7554,111 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "RouteNetworks": { + "Schedules": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteNetwork" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusGWrapperOfSchedule", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.S2STravelTime+TravelTime": { - "title": "TravelTime", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Depot]": { + "title": "BusDepotList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "Distance", - "FromStopID", - "RunTime", - "Sequence", - "StopTime", - "ToStopID" + "AuthorityCode", + "Depots", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "Sequence": { + "VersionID": { "format": "int32", "title": "Int32", - "description": "站間序號", + "description": "資料版本編號", "type": "integer" }, - "FromStopID": { - "title": "String", - "description": "起站站牌代碼", - "type": "string" - }, - "ToStopID": { - "title": "String", - "description": "迄站站牌代碼", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Distance": { - "format": "float", - "title": "Single", - "description": "站間距離", - "type": "number" - }, - "RunTime": { + "UpdateInterval": { "format": "int32", "title": "Int32", - "description": "站間預估行駛時間", + "description": "[平臺]資料更新週期(秒)", "type": "integer" }, - "StopTime": { + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "SrcUpdateInterval": { "format": "int32", "title": "Int32", - "description": "起站停靠時間", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.S2STravelTime": { - "title": "S2STravelTime", - "required": [ - "RouteID", - "RouteUID", - "TravelTimes" - ], - "type": "object", - "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "路線代碼", - "type": "string" }, - "SubRouteUID": { + "AuthorityCode": { "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SubRouteID": { - "title": "String", - "description": "附屬路線代碼", - "type": "string" + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" }, - "TravelTimes": { + "Depots": { "title": "Array", - "description": "站間運行時間資訊", + "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.S2STravelTime+TravelTime" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Depot" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfDepot", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.S2STravelTime]": { - "title": "BusS2STravelTimeList", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute]": { + "title": "BusDisplayStopOfRouteList", "description": "版本 wrapper (具有版本資訊)", "required": [ "AuthorityCode", - "S2STravelTimes", + "DisplayStopOfRoutes", "SrcUpdateInterval", "SrcUpdateTime", "UpdateInterval", @@ -6323,371 +7698,340 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "S2STravelTimes": { + "DisplayStopOfRoutes": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.S2STravelTime" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfDisplayStopOfRoute", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Schedule+StopTime": { - "title": "StopTime", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo]": { + "title": "BusFirstLastTripInfoList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "ArrivalTime", - "DepartureTime", - "StopID", - "StopSequence", - "StopUID" + "AuthorityCode", + "FirstLastTripInfos", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "StopSequence": { + "VersionID": { "format": "int32", "title": "Int32", - "description": "路線經過站牌之順序(由1開始)", + "description": "資料版本編號", "type": "integer" }, - "StopUID": { - "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "StopID": { - "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" - }, - "StopName": { - "title": "NameType", - "description": "站牌名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "ArrivalTime": { - "title": "String", - "description": "到站時間,格式為:HH:mm", - "type": "string" - }, - "DepartureTime": { - "title": "String", - "description": "離站時間,格式為:HH:mm", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Schedule+ServiceDay": { - "title": "ServiceDay", - "type": "object", - "properties": { - "ServiceTag": { - "title": "String", - "description": "服務日標籤", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Monday": { - "format": "int32", - "title": "integer", - "description": "星期一營運與否 : [0:'否',1:'是']", - "type": "integer" - }, - "Tuesday": { - "format": "int32", - "title": "integer", - "description": "星期二營運與否 : [0:'否',1:'是']", - "type": "integer" - }, - "Wednesday": { - "format": "int32", - "title": "integer", - "description": "星期三營運與否 : [0:'否',1:'是']", - "type": "integer" - }, - "Thursday": { - "format": "int32", - "title": "integer", - "description": "星期四營運與否 : [0:'否',1:'是']", - "type": "integer" - }, - "Friday": { - "format": "int32", - "title": "integer", - "description": "星期五營運與否 : [0:'否',1:'是']", - "type": "integer" - }, - "Saturday": { - "format": "int32", - "title": "integer", - "description": "星期六營運與否 : [0:'否',1:'是']", - "type": "integer" - }, - "Sunday": { - "format": "int32", - "title": "integer", - "description": "星期日營運與否 : [0:'否',1:'是']", - "type": "integer" - }, - "NationalHolidays": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "國定假日營運與否 : [0:'否',1:'是']", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", "type": "integer" }, - "DayBeforeHoliday": { - "format": "int32", - "title": "integer", - "description": "國定假日前一日營運與否 : [0:'否',1:'是']", - "type": "integer" + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "DayAfterHoliday": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "國定假日後一日營運與否 : [0:'否',1:'是']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "TyphoonDay": { - "format": "int32", - "title": "integer", - "description": "颱風停止上班上課期間營運與否 : [0:'否',1:'是']", + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", "type": "integer" + }, + "FirstLastTripInfos": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusVWrapperOfFirstLastTripInfo", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Schedule+DatePeriod": { - "title": "DatePeriod", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Network]": { + "title": "BusNetworkList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "EndDate", - "StartDate" + "AuthorityCode", + "Networks", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "StartDate": { - "title": "String", - "description": "開始日期", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, - "EndDate": { - "title": "String", - "description": "結束日期", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.Schedule+SpecialDay": { - "title": "SpecialDay", - "required": [ - "DatePeriod", - "Dates", - "Description", - "ServiceStatus" - ], - "type": "object", - "properties": { - "Dates": { - "title": "Array", - "description": "不連續特殊日期", - "type": "array", - "items": { - "title": "String", - "type": "string" - } }, - "DatePeriod": { - "title": "DatePeriod", - "description": "連續特殊日期", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+DatePeriod" - } - ] + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" }, - "ServiceStatus": { + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "營運服務狀態代碼0=停止營運, 1=正常營運 , 2=加班營運 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "Description": { + "AuthorityCode": { "title": "String", - "description": "特殊營運描述", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + }, + "Networks": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Network" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusVWrapperOfNetwork", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Schedule+TimeTable": { - "title": "TimeTable", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Operator]": { + "title": "BusOperatorList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "ServiceDay", - "SpecialDays", - "StopTimes" + "AuthorityCode", + "Operators", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "TripID": { - "title": "String", - "description": "班次代碼,為無意義之編碼", + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" + }, + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "IsLowFloor": { - "title": "String", - "description": "該路線班次是否使用低地板公車車輛", + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StopTimes": { - "title": "Array", - "description": "公車停靠時間資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+StopTime" + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" + }, + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" } }, - "ServiceDay": { - "title": "ServiceDay", - "description": "服務日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+ServiceDay" - } - ] + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" }, - "SpecialDays": { + "Operators": { "title": "Array", - "description": "例外營運日", + "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+SpecialDay" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Operator" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfOperator", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Schedule": { - "title": "Schedule", - "description": "營運班表資料", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Route]": { + "title": "BusRouteList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "Direction", - "OperatorCode", - "OperatorID", - "RouteID", - "RouteName", - "RouteUID", - "SubRouteID" + "AuthorityCode", + "Routes", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" - }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" - }, - "OperatorCode": { - "title": "String", - "description": "營運業者簡碼", - "type": "string" - }, - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" }, - "Direction": { + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "ScheduleURL": { + "AuthorityCode": { "title": "String", - "description": "營運班表說明網址", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Timetables": { + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + }, + "Routes": { "title": "Array", - "description": "預定時刻表", + "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+TimeTable" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfRoute", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusGWrapper[PTX.Service.DTO.Bus.Specification.V3.Schedule]": { - "title": "BusScheduleList", - "description": "定期型 wrapper (有生效的起迄時間資訊)", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteNetwork]": { + "title": "BusRouteNetworkList", + "description": "版本 wrapper (具有版本資訊)", "required": [ "AuthorityCode", - "EffectiveDate", - "Schedules", + "RouteNetworks", "SrcUpdateInterval", "SrcUpdateTime", "UpdateInterval", - "UpdateTime" + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "EffectiveDate": { - "title": "DateTime", - "description": "有效起始日期", - "type": "string" - }, - "ExpireDate": { - "title": "DateTime", - "description": "有效終止日期", - "type": "string" - }, - "ScheduleName": { - "title": "String", - "description": "公車定期營運班表名稱", - "type": "string" - }, - "ValidityDesciption": { - "title": "String", - "description": "時刻表適用情形說明", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, "UpdateTime": { "title": "DateTime", @@ -6714,86 +8058,103 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "Schedules": { + "RouteNetworks": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteNetwork" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfRouteNetwork", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Shape": { - "title": "Shape", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.S2STravelTime]": { + "title": "BusS2STravelTimeList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "Direction", - "Geometry", - "RouteID", - "RouteName", - "RouteUID", - "SubRouteID", - "SubRouteName", - "SubRouteUID" + "AuthorityCode", + "S2STravelTimes", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "Direction": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "Geometry": { + "AuthorityCode": { "title": "String", - "description": "公車線型資料(WKT)", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + }, + "S2STravelTimes": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.S2STravelTime" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusVWrapperOfS2STravelTime", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Shape]": { @@ -6841,7 +8202,10 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", @@ -6854,78 +8218,97 @@ "type": "array", "items": { "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Shape" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfShape", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Station": { - "title": "Station", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Station]": { + "title": "BusStationList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "StationID", - "StationName", - "StationPosition", - "StationUID" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "Stations", + "UpdateInterval", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "StationUID": { - "title": "String", - "description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, - "StationID": { - "title": "String", - "description": "站位代碼", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StationName": { - "title": "NameType", - "description": "站位名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "StationPosition": { - "title": "PointType", - "description": "站位位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" - } - ] + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" }, - "RoadName": { - "title": "String", - "description": "站牌所在道路上之路名。", + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Bearing": { - "title": "String", - "description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行", - "type": "string" + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "StationAddress": { + "AuthorityCode": { "title": "String", - "description": "站位地址", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" }, - "StationDescription": { - "title": "String", - "description": "站牌詳細說明描述", - "type": "string" + "Stations": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Station" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusVWrapperOfStation", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Station]": { - "title": "BusStationList", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Stop]": { + "title": "BusStopList", "description": "版本 wrapper (具有版本資訊)", "required": [ "AuthorityCode", "SrcUpdateInterval", "SrcUpdateTime", - "Stations", + "Stops", "UpdateInterval", "UpdateTime", "VersionID" @@ -6963,116 +8346,113 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "Stations": { + "Stops": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Station" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Stop" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfStop", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Stop": { - "title": "Stop", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.StopOfRoute]": { + "title": "BusStopOfRouteList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "StopID", - "StopName", - "StopPosition", - "StopUID" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "StopOfRoutes", + "UpdateInterval", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "StopUID": { - "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "StopID": { - "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", - "type": "string" - }, - "StopName": { - "title": "NameType", - "description": "站牌名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "StopPosition": { - "title": "PointType", - "description": "站牌位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" - } - ] - }, - "RoadName": { - "title": "String", - "description": "路名", - "type": "string" - }, - "Bearing": { - "title": "String", - "description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, - "CityCode": { - "title": "String", - "description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StopURL": { - "title": "String", - "description": "站牌資訊說明網址", - "type": "string" + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" }, - "StopAddress": { - "title": "String", - "description": "站牌地址", + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StationUID": { - "title": "String", - "description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "StationID": { + "AuthorityCode": { "title": "String", - "description": "站位代碼", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StopCode": { - "title": "String", - "description": "站牌簡碼", - "type": "string" + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" }, - "StopDescription": { - "title": "String", - "description": "站牌詳細說明描述", - "type": "string" + "StopOfRoutes": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusVWrapperOfStopOfRoute", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Stop]": { - "title": "BusStopList", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.SubRoute]": { + "title": "BusSubRouteList", "description": "版本 wrapper (具有版本資訊)", "required": [ "AuthorityCode", "SrcUpdateInterval", "SrcUpdateTime", - "Stops", + "SubRoutes", "UpdateInterval", "UpdateTime", "VersionID" @@ -7110,207 +8490,187 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "Stops": { + "SubRoutes": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Stop" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfSubRoute", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Operator": { - "title": "Operator", - "description": "營運業者資訊", - "required": [ - "OperatorCode", - "OperatorID", - "OperatorName", - "OperatorNo" - ], - "type": "object", - "properties": { - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" - }, - "OperatorName": { - "title": "NameType", - "description": "營運業者代碼", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "OperatorCode": { - "title": "String", - "description": "平台代碼", - "type": "string" - }, - "OperatorNo": { - "title": "String", - "description": "營運業者編號[交通部票證資料系統定義]", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Stop": { - "title": "Stop", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Vehicle]": { + "title": "BusVehicleList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "BoardingType", - "StopID", - "StopName", - "StopPosition", - "StopSequence", - "StopUID" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime", + "Vehicles", + "VersionID" ], "type": "object", "properties": { - "StopUID": { - "title": "String", - "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, - "StopID": { - "title": "String", - "description": "地區既用中之站牌代碼(為原資料內碼)", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StopName": { - "title": "NameType", - "description": "站牌名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "BoardingType": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車']", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", "type": "integer" }, - "StopSequence": { + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "SrcUpdateInterval": { "format": "int32", "title": "Int32", - "description": "路線經過站牌之順序", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "StopPosition": { - "title": "PointType", - "description": "站牌位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" - } - ] - }, - "IsSectionPoint": { - "title": "Boolean", - "description": "是否為分段點", - "type": "boolean" - }, - "CumulativeDistance": { + "AuthorityCode": { "title": "String", - "description": "累積行駛距離", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + }, + "Vehicles": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Vehicle" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusVWrapperOfVehicle", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute": { - "title": "StopOfRoute", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleDepot]": { + "title": "BusVehicleDepotList", + "description": "版本 wrapper (具有版本資訊)", "required": [ - "Direction", - "RouteID", - "RouteName", - "RouteUID", - "Stops" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime", + "VehicleDepots", + "VersionID" ], "type": "object", "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, - "RouteID": { - "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "Operators": { - "title": "Array", - "description": "營運業者", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Operator" - } + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" }, - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "Count": { + "format": "int64", + "description": "資料總筆數", "type": "integer" }, - "Stops": { + "VehicleDepots": { "title": "Array", - "description": "所有經過站牌", + "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Stop" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleDepot" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfVehicleDepot", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.StopOfRoute]": { - "title": "BusStopOfRouteList", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleRoute]": { + "title": "BusVehicleRouteList", "description": "版本 wrapper (具有版本資訊)", "required": [ "AuthorityCode", "SrcUpdateInterval", "SrcUpdateTime", - "StopOfRoutes", "UpdateInterval", "UpdateTime", + "VehicleRoutes", "VersionID" ], "type": "object", @@ -7346,221 +8706,241 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "StopOfRoutes": { + "VehicleRoutes": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleRoute" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusVWrapperOfVehicleRoute", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.SubRoute+Operator": { - "title": "Operator", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A1Data]": { + "title": "BusA1DataList", + "description": "基本 wrapper", "required": [ - "OperatorCode", - "OperatorID", - "OperatorName", - "OperatorNo" + "A1Datas", + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "OperatorID": { - "title": "String", - "description": "營運業者代碼", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "OperatorName": { - "title": "NameType", - "description": "營運業者代碼", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" }, - "OperatorCode": { - "title": "String", - "description": "平台代碼", + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "OperatorNo": { - "title": "String", - "description": "營運業者編號[交通部票證資料系統定義]", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop": { - "title": "Stop", - "required": [ - "StopID", - "StopName" - ], - "type": "object", - "properties": { - "StopID": { + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" + }, + "AuthorityCode": { "title": "String", - "description": "站牌代碼", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StopName": { - "title": "NameType", - "description": "站牌名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + }, + "A1Datas": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.A1Data" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusWrapperOfA1Data", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.SubRoute": { - "title": "SubRoute", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A2Data]": { + "title": "BusA2DataList", + "description": "基本 wrapper", "required": [ - "Direction", - "Operators", - "RouteID", - "RouteName", - "RouteUID", - "SubRouteID", - "SubRouteName", - "SubRouteUID" + "A2Datas", + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "RouteUID": { - "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "機關定義路線代碼", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", + "type": "integer" }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "SubRouteName": { - "title": "NameType", - "description": "附屬路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "SubRouteLongName": { - "title": "NameType", - "description": "附屬路線長名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Operators": { + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + }, + "A2Datas": { "title": "Array", - "description": "營運業者", + "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Operator" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.A2Data" + }, + "xml": { + "name": "List`1" } + } + }, + "xml": { + "name": "BusWrapperOfA2Data", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" + } + }, + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.Alert]": { + "title": "BusAlertList", + "description": "基本 wrapper", + "required": [ + "Alerts", + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" + ], + "type": "object", + "properties": { + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "Direction": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", "type": "integer" }, - "HeadSign": { - "title": "String", - "description": "車頭描述", + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "DepartureStopName": { - "title": "NameType", - "description": "路線起站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "DestinationStopName": { - "title": "NameType", - "description": "路線迄站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartStop": { - "title": "Stop", - "description": "起始站牌", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop" - } - ] + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" }, - "EndStop": { - "title": "Stop", - "description": "終點站牌", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop" - } - ] + "Alerts": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Alert" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusWrapperOfAlert", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.SubRoute]": { - "title": "BusSubRouteList", - "description": "版本 wrapper (具有版本資訊)", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable]": { + "title": "BusDailyTimeTableList", + "description": "基本 wrapper", "required": [ "AuthorityCode", + "DailyTimeTables", "SrcUpdateInterval", "SrcUpdateTime", - "SubRoutes", "UpdateInterval", - "UpdateTime", - "VersionID" + "UpdateTime" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, "UpdateTime": { "title": "DateTime", "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", @@ -7586,130 +8966,111 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "SubRoutes": { + "DailyTimeTables": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusWrapperOfDailyTimeTable", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Vehicle": { - "title": "Vehicle", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.N1Data]": { + "title": "BusN1DataList", + "description": "基本 wrapper", "required": [ - "CardReaderLayout", - "HasLiftOrRamp", - "HasWifi", - "IsElectric", - "IsHybrid", - "IsLowFloor", - "OperatorCode", - "OperatorID", - "PlateNumb", - "VehicleClass", - "VehicleType" + "AuthorityCode", + "N1Datas", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "PlateNumb": { - "title": "String", - "description": "車牌號碼", - "type": "string" - }, - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" - }, - "OperatorCode": { - "title": "String", - "description": "營運業者簡碼", + "UpdateTime": { + "title": "DateTime", + "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "VehicleClass": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "車輛型別 : [1:'大型巴士',2:'中型巴士',3:'小型巴士',4:'雙層巴士',5:'雙節巴士',6:'計程車']", + "title": "Int32", + "description": "[平臺]資料更新週期(秒)", "type": "integer" }, - "VehicleType": { - "format": "int32", - "title": "integer", - "description": "車輛種類 : [1:'一般',2:'復康巴士',3:'專車',4:'其他']", - "type": "integer" + "SrcUpdateTime": { + "title": "DateTime", + "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "CardReaderLayout": { + "SrcUpdateInterval": { "format": "int32", "title": "Int32", - "description": "讀卡機配置(1:前門刷卡;2:前後門刷卡)", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "IsElectric": { - "title": "Boolean", - "description": "是否為電動公車", - "type": "boolean" - }, - "IsHybrid": { - "title": "Boolean", - "description": "是否為油電混合公車", - "type": "boolean" - }, - "IsLowFloor": { - "title": "Boolean", - "description": "是否為低地板", - "type": "boolean" - }, - "HasLiftOrRamp": { - "title": "Boolean", - "description": "是否有升降或斜坡板設備", - "type": "boolean" - }, - "HasWifi": { - "title": "Boolean", - "description": "是否有提供Wifi服務", - "type": "boolean" - }, - "InBoxID": { + "AuthorityCode": { "title": "String", - "description": "車機代號", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "PurchaseTime": { - "title": "DateTime", - "description": "購入時間", - "type": "string" + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + }, + "N1Datas": { + "title": "Array", + "description": "資料列表", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.N1Data" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "BusWrapperOfN1Data", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } - }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Vehicle]": { - "title": "BusVehicleList", - "description": "版本 wrapper (具有版本資訊)", + }, + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.News]": { + "title": "BusNewsList", + "description": "基本 wrapper", "required": [ "AuthorityCode", + "Newses", "SrcUpdateInterval", "SrcUpdateTime", "UpdateInterval", - "UpdateTime", - "Vehicles", - "VersionID" + "UpdateTime" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, "UpdateTime": { "title": "DateTime", "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", @@ -7735,87 +9096,46 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "Vehicles": { + "Newses": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Vehicle" - } - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.VehicleDepot+Vehicle": { - "title": "Vehicle", - "type": "object", - "properties": { - "PlateNumb": { - "title": "String", - "description": "車牌號碼", - "type": "string" - } - } - }, - "PTX.Service.DTO.Bus.Specification.V3.VehicleDepot": { - "title": "VehicleDepot", - "required": [ - "DepotID", - "DepotName", - "Vehicles" - ], - "type": "object", - "properties": { - "DepotID": { - "title": "String", - "description": "營業所代碼", - "type": "string" - }, - "DepotName": { - "title": "NameType", - "description": "營業所名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "Vehicles": { - "title": "Array", - "description": "車輛", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleDepot+Vehicle" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.News" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusWrapperOfNews", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleDepot]": { - "title": "BusVehicleDepotList", - "description": "版本 wrapper (具有版本資訊)", + "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteFare]": { + "title": "BusRouteFareList", + "description": "基本 wrapper", "required": [ "AuthorityCode", + "RouteFares", "SrcUpdateInterval", "SrcUpdateTime", "UpdateInterval", - "UpdateTime", - "VehicleDepots", - "VersionID" + "UpdateTime" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, "UpdateTime": { "title": "DateTime", "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", @@ -7841,138 +9161,194 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Count": { "format": "int64", "description": "資料總筆數", "type": "integer" }, - "VehicleDepots": { + "RouteFares": { "title": "Array", "description": "資料列表", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleDepot" + "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "BusWrapperOfRouteFare", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Bus.Specification.V3.VehicleRoute": { - "title": "VehicleRoute", + "PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth": { + "title": "DisplayHealth", + "description": "API服務健康狀態", "required": [ - "PlateNumb", - "RouteID", - "RouteName", - "RouteUID" + "ServiceID", + "ServiceName" ], "type": "object", "properties": { - "RouteUID": { + "ServiceID": { "title": "String", - "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + "description": "API服務代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteID": { + "ServiceName": { "title": "String", - "description": "地區既用中之路線代碼(為原資料內碼)", - "type": "string" + "description": "API服務中文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteName": { - "title": "NameType", - "description": "路線名稱", + "Inbound": { + "title": "Inbound", + "description": "本平台資料來源轉入狀態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Inbound" } - ] - }, - "SubRouteID": { - "title": "String", - "description": "地區既用中之附屬路線代碼(為原資料內碼)", - "type": "string" - }, - "SubRouteUID": { - "title": "String", - "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢", - "type": "string" + ], + "xml": { + "name": "Inbound" + } }, - "SubRouteName": { - "title": "NameType", - "description": "路線名稱", + "Outbound": { + "title": "Outbound", + "description": "本平台API狀態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Outbound" } - ] - }, - "PlateNumb": { - "title": "String", - "description": "車牌號碼", - "type": "string" + ], + "xml": { + "name": "Outbound" + } } + }, + "xml": { + "name": "DisplayHealth" } }, - "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleRoute]": { - "title": "BusVehicleRouteList", - "description": "版本 wrapper (具有版本資訊)", + "PTX.Service.DTO.Shared.Specification.V3.Base.Inbound": { + "title": "Inbound", + "description": "本平台資料來源轉入狀態", "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime", - "VehicleRoutes", - "VersionID" + "CheckTime", + "Status" ], "type": "object", "properties": { - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - }, - "UpdateTime": { + "CheckTime": { "title": "DateTime", - "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "檢核時間", "type": "string" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "[平臺]資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "Status": { + "title": "integer", + "description": "檢核結果狀態 : [0:'失敗',1:'成功']", "type": "string" }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "Reason": { + "title": "String", + "description": "檢核失敗原因", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Inbound" + } + }, + "PTX.Service.DTO.Shared.Specification.V3.Base.NameType": { + "title": "NameType", + "type": "object", + "properties": { + "Zh_tw": { + "title": "String", + "description": "中文繁體名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "AuthorityCode": { + "En": { "title": "String", - "description": "業管機關簡碼", + "description": "英文名稱", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "NameType" + } + }, + "PTX.Service.DTO.Shared.Specification.V3.Base.Outbound": { + "title": "Outbound", + "description": "本平台API狀態", + "required": [ + "CheckTime", + "Status" + ], + "type": "object", + "properties": { + "CheckTime": { + "title": "DateTime", + "description": "檢核時間", "type": "string" }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "Status": { + "title": "integer", + "description": "檢核結果狀態 : [0:'失敗',1:'成功']", + "type": "string" }, - "VehicleRoutes": { - "title": "Array", - "description": "資料列表", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleRoute" + "Reason": { + "title": "String", + "description": "檢核失敗原因", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "Outbound" + } + }, + "PTX.Service.DTO.Shared.Specification.V3.Base.PointType": { + "title": "PointType", + "description": "座標資料型別", + "type": "object", + "properties": { + "PositionLat": { + "format": "double", + "description": "位置緯度(WGS84)", + "type": "number" + }, + "PositionLon": { + "format": "double", + "description": "位置經度(WGS84)", + "type": "number" + } + }, + "xml": { + "name": "PointType" } } }, diff --git a/oas.rail.v2.json b/oas.rail.v2.json index 566c6ecd..ee7012cf 100644 --- a/oas.rail.v2.json +++ b/oas.rail.v2.json @@ -344,6 +344,12 @@ "description": "跳過前幾筆", "type": "string" }, + { + "in": "query", + "name": "$spatialFilter", + "description": "空間過濾", + "type": "string" + }, { "in": "query", "name": "$format", @@ -1820,6 +1826,12 @@ "description": "跳過前幾筆", "type": "string" }, + { + "in": "query", + "name": "$spatialFilter", + "description": "空間過濾", + "type": "string" + }, { "in": "query", "name": "$format", @@ -4019,6 +4031,12 @@ "description": "跳過前幾筆", "type": "string" }, + { + "in": "query", + "name": "$spatialFilter", + "description": "空間過濾", + "type": "string" + }, { "in": "query", "name": "$format", @@ -5855,179 +5873,272 @@ } }, "definitions": { - "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeNetwork": { - "title": "AlertScopeNetwork", - "description": "受影響的路網", + "PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.Alert]": { + "title": "MRTAlertList", + "required": [ + "Alerts", + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" + ], "type": "object", "properties": { - "NetworkID": { - "title": "String", - "description": "路網代碼", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeStation": { - "title": "AlertScopeStation", - "description": "受影響的車站", - "type": "object", - "properties": { - "StationID": { - "title": "String", - "description": "車站代碼", + }, + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StationName": { + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" + }, + "AuthorityCode": { "title": "String", - "description": "車站名稱", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Alerts": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Alert" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "MRTRealTimeWrapperOfAlert", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLine": { - "title": "AlertScopeLine", - "description": "受影響的實體路線", + "PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News]": { + "title": "MRTNewsList", + "required": [ + "AuthorityCode", + "Newses", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" + ], "type": "object", "properties": { - "LineID": { - "title": "String", - "description": "實體路線代碼", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "LineName": { - "title": "String", - "description": "實體路線名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeRoute": { - "title": "AlertScopeRoute", - "description": "受影響的營運路線", - "type": "object", - "properties": { - "RouteID": { - "title": "String", - "description": "營運路線代碼", + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "RouteName": { + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" + }, + "AuthorityCode": { "title": "String", - "description": "營運路線名稱", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Newses": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "MRTRealTimeWrapperOfNews", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeTrain": { - "title": "AlertScopeTrain", - "description": "受影響的車次", + "PTX.API.Rail.Model.V2THSRAvailableSeatStatusOldWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat]": { + "title": "AvailableSeatStatus", + "required": [ + "AvailableSeats" + ], "type": "object", "properties": { - "TrainNo": { - "title": "String", - "description": "受影響的車次", + "UpdateTime": { + "title": "DateTime", + "description": "更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + }, + "AvailableSeats": { + "title": "Array", + "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "V2THSRAvailableSeatStatusOldWrapperOfAvailableSeat", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLineSection": { - "title": "AlertScopeLineSection", - "description": "受影響的路線區間", + "PTX.API.Rail.Model.V2THSRAvailableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat]": { + "title": "AvailableSeatStatus", + "required": [ + "AvailableSeats" + ], "type": "object", "properties": { - "LineID": { - "title": "String", - "description": "路線區間所在路線代碼", - "type": "string" - }, - "StartingStationID": { - "title": "String", - "description": "區間起站車站代碼", + "UpdateTime": { + "title": "DateTime", + "description": "PTX平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StartingStationName": { - "title": "String", - "description": "區間起站車站名稱", + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "EndingStationID": { - "title": "String", - "description": "區間迄站車站代碼", - "type": "string" + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" }, - "EndingStationName": { + "TrainDate": { "title": "String", - "description": "區間迄站車站名稱", - "type": "string" + "description": "營運日說明(格式: yyyy-MM-dd)", + "type": "string", + "xml": { + "name": "String" + } }, - "Description": { - "title": "String", - "description": "影響區間輔助描述", - "type": "string" + "AvailableSeats": { + "title": "Array", + "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "V2THSRAvailableSeatStatusWrapperOfAvailableSeat", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScope": { - "title": "AlertScope", - "description": "影響範圍", + "PTX.API.Rail.Model.V2THSRODAvailableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat]": { + "title": "AvailableSeatStatus", "required": [ - "Lines", - "LineSections", - "Routes", - "Stations", - "Trains" + "AvailableSeats" ], "type": "object", "properties": { - "Network": { - "title": "AlertScopeNetwork", - "description": "受影響的路網", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeNetwork" - } - ] + "UpdateTime": { + "title": "DateTime", + "description": "PTX平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "Stations": { - "title": "AlertScopeStation[]", - "description": "受影響的車站", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeStation" - } + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "PTX平台更新調期(秒)", + "type": "integer" }, - "Lines": { - "title": "AlertScopeLine[]", - "description": "受影響的實體路線", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLine" - } + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "Routes": { - "title": "AlertScopeRoute[]", - "description": "受影響的營運路線", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeRoute" - } + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源平台更新週期(秒)", + "type": "integer" }, - "Trains": { - "title": "AlertScopeTrain[]", - "description": "受影響的車次", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeTrain" + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + }, + "TrainDate": { + "title": "String", + "description": "營運日說明(格式: yyyy-MM-dd)", + "type": "string", + "xml": { + "name": "String" } }, - "LineSections": { - "title": "AlertScopeLineSection[]", - "description": "受影響的路線區間", + "AvailableSeats": { + "title": "Array", + "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLineSection" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat" + }, + "xml": { + "name": "List`1" } } + }, + "xml": { + "name": "V2THSRODAvailableSeatStatusWrapperOfAvailableSeat", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, "PTX.Service.DTO.Rail.Specification.V2.Metro.Alert": { @@ -6045,23 +6156,31 @@ "AlertID": { "title": "String", "description": "通阻訊息代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Title": { "title": "String", "description": "通阻訊息標題", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Description": { "title": "String", "description": "通阻訊息說明", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Status": { - "format": "int32", "title": "integer", "description": "營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況']", - "type": "integer" + "type": "string" }, "Scope": { "title": "AlertScope", @@ -6070,34 +6189,44 @@ { "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScope" } - ] + ], + "xml": { + "name": "AlertScope" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "影響方向 : [0:'去程',1:'返程']", - "type": "integer" + "type": "string" }, "Level": { - "format": "int32", "title": "integer", "description": "影響等級程度 : [1:'重度',2:'中度',3:'輕度']", - "type": "integer" + "type": "string" }, "Effect": { "title": "String", "description": "影響說明", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Reason": { "title": "String", "description": "影響原因", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "AlertURL": { "title": "String", "description": "通阻訊息網址連結", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StartTime": { "title": "DateTime", @@ -6119,184 +6248,112 @@ "description": "消息更新日期時間", "type": "string" } + }, + "xml": { + "name": "Alert" } }, - "PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.Alert]": { - "title": "MRTAlertList", + "PTX.Service.DTO.Rail.Specification.V2.Metro.DrinkingFountain": { + "title": "DrinkingFountain", + "description": "飲水機位置資訊", "required": [ - "Alerts", - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "Description", + "FloorLevel" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { + "Description": { "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Alerts": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Alert" + "description": "位置描述", + "type": "string", + "xml": { + "name": "String" } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "FloorLevel": { + "title": "String", + "description": "樓層", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "DrinkingFountain" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.AlertInfo": { - "title": "AlertInfo", - "description": "高鐵即時通阻事件資料", + "PTX.Service.DTO.Rail.Specification.V2.Metro.Elevator": { + "title": "Elevator", + "description": "無障礙電梯位置資訊", "required": [ "Description", - "Direction", - "EffectedSection", - "Effects", - "Level", - "SrcUpdateTime", - "Status", - "Title", - "UpdateTime" + "FloorLevel" ], "type": "object", "properties": { - "Level": { - "format": "int32", - "title": "integer", - "description": "動態事件影響等級(本資料僅作參考,實際資料請參考高鐵http://www.thsrc.com.tw/tw/Operation) : [1:'全線正常運行',2:'有異常狀況']", - "type": "integer" - }, - "Status": { - "title": "String", - "description": "營運狀態 = ['空白: 正常' or '▲: 其他的異常狀態' or 'X: 全線停止運行']", - "type": "string" - }, - "Title": { - "title": "String", - "description": "標題", - "type": "string" - }, "Description": { "title": "String", - "description": "事件簡易描述", - "type": "string" - }, - "Effects": { - "title": "String", - "description": "影響狀態", - "type": "string" - }, - "Direction": { - "title": "String", - "description": "運行方向", - "type": "string" - }, - "EffectedSection": { - "title": "String", - "description": "影響區間", - "type": "string" - }, - "OccuredTime": { - "title": "DateTime", - "description": "發生日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "PublishTime": { - "title": "DateTime", - "description": "訊息發布日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": { - "title": "NameType", - "description": "名稱資料型別", - "type": "object", - "properties": { - "Zh_tw": { - "title": "String", - "description": "中文繁體名稱", - "type": "string" + "description": "位置描述", + "type": "string", + "xml": { + "name": "String" + } }, - "En": { + "FloorLevel": { "title": "String", - "description": "英文名稱", - "type": "string" + "description": "樓層", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Elevator" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation": { - "title": "StopStation", - "description": "車次停靠站點組合", + "PTX.Service.DTO.Rail.Specification.V2.Metro.FirstLastTimetable": { + "title": "FirstLastTimetable", + "description": "首末班車時刻表資料", "required": [ - "BusinessSeatStatus", - "NextStationCode", - "NextStationID", - "NextStationName", - "StandardSeatStatus", - "StationCode", + "DestinationStaionID", + "DestinationStationName", + "FirstTrainTime", + "LastTrainTime", + "LineID", + "ServiceDay", + "SrcUpdateTime", "StationID", "StationName", - "StopSequence" + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "StopSequence": { - "format": "int32", - "title": "Int32", - "description": "跑法站序", - "type": "integer" - }, - "StationID": { + "LineNo": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "首末班車次之路線代號", + "type": "string", + "xml": { + "name": "String" + } }, - "StationCode": { + "LineID": { "title": "String", - "description": "車站簡碼(訂票系統用)", - "type": "string" + "description": "首末班車次之路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationID": { + "title": "String", + "description": "車站代號", + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", @@ -6305,374 +6362,456 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "NextStationID": { + "TripHeadSign": { "title": "String", - "description": "下一停靠站車站代碼", - "type": "string" + "description": "首末班車次之目的地方向描述", + "type": "string", + "xml": { + "name": "String" + } }, - "NextStationCode": { + "DestinationStaionID": { "title": "String", - "description": "下一停靠站車站簡碼(訂票系統用)", - "type": "string" + "description": "目的站車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "NextStationName": { + "DestinationStationName": { "title": "NameType", - "description": "下一停靠站車站名稱", + "description": "目的站車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "StandardSeatStatus": { + "TrainType": { + "format": "int32", + "description": "車種(0:不分車種, 1:普通車, 2:直達車)", + "type": "integer" + }, + "FirstTrainTime": { "title": "String", - "description": "標準席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']", - "type": "string" + "description": "首班車時刻", + "type": "string", + "xml": { + "name": "String" + } }, - "BusinessSeatStatus": { + "LastTrainTime": { "title": "String", - "description": "商務席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']", + "description": "末班車時刻", + "type": "string", + "xml": { + "name": "String" + } + }, + "ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" + } + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "FirstLastTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat": { - "title": "AvailableSeat", - "description": "高鐵對號座位狀態資訊", + "PTX.Service.DTO.Rail.Specification.V2.Metro.Frequency": { + "title": "Frequency", + "description": "路線發車班距頻率資料", "required": [ - "Direction", - "EndingStationCode", - "EndingStationID", - "EndingStationName", - "StartingStationCode", - "StartingStationID", - "StartingStationName", - "StopStations", - "TrainNo" + "Headways", + "LineID", + "OperationTime", + "RouteID", + "ServiceDay", + "SrcUpdateTime", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "TrainNo": { + "LineNo": { "title": "String", - "description": "車次號碼", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "方向 : [0:'南下',1:'北上']", - "type": "integer" + "description": "營運路線所屬之路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationID": { + "LineID": { "title": "String", - "description": "起點車站代碼", - "type": "string" + "description": "營運路線所屬之路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationCode": { + "RouteID": { "title": "String", - "description": "起站車站簡碼(訂票系統用)", - "type": "string" + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationName": { - "title": "NameType", - "description": "起點車站名稱", + "TrainType": { + "format": "int32", + "description": "車種(0:不分車種, 1:普通車, 2:直達車)", + "type": "integer" + }, + "ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDay" } - ] - }, - "EndingStationID": { - "title": "String", - "description": "終點車站簡碼(訂票系統用)", - "type": "string" - }, - "EndingStationCode": { - "title": "String", - "description": "終點車站代碼", - "type": "string" + ], + "xml": { + "name": "ServiceDay" + } }, - "EndingStationName": { - "title": "NameType", - "description": "終點車站名稱", + "OperationTime": { + "title": "OperationTime", + "description": "營運時間資訊", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.OperationTime" } - ] + ], + "xml": { + "name": "OperationTime" + } }, - "StopStations": { + "Headways": { "title": "Array", - "description": "車次停靠站點組合", + "description": "班距頻率資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Headway" + }, + "xml": { + "name": "List`1" } - } - } - }, - "PTX.API.Rail.Model.V2THSRAvailableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat]": { - "title": "AvailableSeatStatus", - "required": [ - "AvailableSeats" - ], - "type": "object", - "properties": { - "UpdateTime": { + }, + "SrcUpdateTime": { "title": "DateTime", - "description": "PTX平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "SrcUpdateTime": { + "UpdateTime": { "title": "DateTime", - "description": "來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Count": { - "format": "int64", - "description": "資料總筆數", + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", "type": "integer" - }, - "TrainDate": { + } + }, + "xml": { + "name": "Frequency" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.InformationSpot": { + "title": "InformationSpot", + "description": "詢問處位置資訊", + "required": [ + "Description", + "FloorLevel" + ], + "type": "object", + "properties": { + "Description": { "title": "String", - "description": "營運日說明(格式: yyyy-MM-dd)", - "type": "string" + "description": "位置描述", + "type": "string", + "xml": { + "name": "String" + } }, - "AvailableSeats": { - "title": "Array", - "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat" + "FloorLevel": { + "title": "String", + "description": "樓層", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "InformationSpot" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo": { - "title": "RailDailyTrainInfo", - "description": "臺鐵車次資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.Line": { + "title": "Line", + "description": "捷運路線資料", "required": [ - "BikeFlag", - "BreastFeedingFlag", - "DailyFlag", - "DiningFlag", - "Direction", - "PackageServiceFlag", - "ServiceAddedFlag", - "TrainNo", - "WheelchairFlag" + "IsBranch", + "LineColor", + "LineID", + "LineName", + "LineSectionName", + "SrcUpdateTime", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "TrainNo": { + "LineNo": { "title": "String", - "description": "車次代碼", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "順逆行 : [0:'順行',1:'逆行']", - "type": "integer" + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationID": { + "LineID": { "title": "String", - "description": "列車起點車站代號", - "type": "string" + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationName": { + "LineName": { "title": "NameType", - "description": "列車起點車站名稱", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "EndingStationID": { - "title": "String", - "description": "列車終點車站代號", - "type": "string" - }, - "EndingStationName": { + "LineSectionName": { "title": "NameType", - "description": "列車終點車站名稱", + "description": "路線區間名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "TripHeadsign": { + "LineColor": { "title": "String", - "description": "車次車頭文字描述(通用以\"往\"+ 迄站中文站名\")", + "description": "路線顏色", + "type": "string", + "xml": { + "name": "String" + } + }, + "IsBranch": { + "title": "Boolean", + "description": "是否位於支線", + "type": "boolean" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "TrainTypeID": { - "title": "String", - "description": "列車車種代碼", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "TrainTypeCode": { + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" + } + }, + "xml": { + "name": "Line" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.LineTransfer": { + "title": "LineTransfer", + "description": "捷運路線站間轉乘基本資料", + "required": [ + "FromLineID", + "FromLineName", + "FromStationID", + "FromStationName", + "SrcUpdateTime", + "ToLineID", + "ToLineName", + "ToLineNo", + "ToStationID", + "ToStationName", + "TransferDescription", + "TransferTime", + "UpdateTime", + "VersionID" + ], + "type": "object", + "properties": { + "FromLineNo": { "title": "String", - "description": "列車車種簡碼", - "type": "string" + "description": "路線間轉乘(起)之路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeName": { + "FromLineID": { + "title": "String", + "description": "路線間轉乘(起)之路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "FromLineName": { "title": "NameType", - "description": "列車車種名稱", + "description": "路線間轉乘(起)之路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "TripLine": { - "format": "int32", - "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "OverNightStationID": { + "FromStationID": { "title": "String", - "description": "跨夜車站代碼", - "type": "string" - }, - "WheelchairFlag": { - "format": "int32", - "title": "integer", - "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", - "type": "integer" - }, - "PackageServiceFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供行李服務 : [0:'否',1:'是']", - "type": "integer" - }, - "DiningFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供訂便當服務 : [0:'否',1:'是']", - "type": "integer" - }, - "BikeFlag": { - "format": "int32", - "title": "integer", - "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", - "type": "integer" - }, - "BreastFeedingFlag": { - "format": "int32", - "title": "integer", - "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", - "type": "integer" - }, - "DailyFlag": { - "format": "int32", - "title": "integer", - "description": "是否為每日行駛 : [0:'否',1:'是']", - "type": "integer" - }, - "ServiceAddedFlag": { - "title": "Boolean", - "description": "是否為加班車", - "type": "boolean" + "description": "路線間轉乘(起)之車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Note": { + "FromStationName": { "title": "NameType", - "description": "附註說明", + "description": "路線間轉乘(起)之車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime": { - "title": "RailStopTime", - "description": "台鐵停靠時間資料", - "required": [ - "ArrivalTime", - "DepartureTime", - "StationID", - "StationName", - "StopSequence" - ], - "type": "object", - "properties": { - "StopSequence": { - "format": "int32", - "title": "Int32", - "description": "跑法站序(由1開始)", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "StationID": { + "ToLineNo": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "路線間轉乘(迄)之路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "ToLineID": { + "title": "String", + "description": "路線間轉乘(迄)之路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "ToLineName": { "title": "NameType", - "description": "車站名稱", + "description": "路線間轉乘(迄)之路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "ArrivalTime": { - "title": "String", - "description": "到站時間(格式: HH:mm:ss)", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "DepartureTime": { - "title": "String", - "description": "離站時間(格式: HH:mm:ss)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTimetable": { - "title": "RailDailyTimetable", - "description": "台鐵到離站時刻資料型別", - "required": [ - "DailyTrainInfo", - "StopTimes", - "TrainDate", - "UpdateTime", - "VersionID" - ], - "type": "object", - "properties": { - "TrainDate": { + "ToStationID": { "title": "String", - "description": "行駛日期(格式: yyyy-MM-dd)", - "type": "string" + "description": "路線間轉乘(迄)之車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "DailyTrainInfo": { - "title": "RailDailyTrainInfo", - "description": "車次資料", + "ToStationName": { + "title": "NameType", + "description": "路線間轉乘(迄)之車站名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "StopTimes": { - "title": "Array", - "description": "停靠時間資料", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime" + "IsOnSiteTransfer": { + "title": "integer", + "description": "是否為站內或站外轉乘 : [0:'站外',1:'站內']", + "type": "string" + }, + "TransferTime": { + "format": "int32", + "title": "Int32", + "description": "轉乘耗時參考時間(分)", + "type": "integer" + }, + "TransferDescription": { + "title": "String", + "description": "轉乘方式文字描述", + "type": "string", + "xml": { + "name": "String" } }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, "UpdateTime": { "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, "VersionID": { @@ -6681,378 +6820,634 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "LineTransfer" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo": { - "title": "RailDailyTrainInfo", - "description": "高鐵車次資料型別(時刻表用)", + "PTX.Service.DTO.Rail.Specification.V2.Metro.LiveBoard": { + "title": "LiveBoard", + "description": "捷運列車到離站動態資料", "required": [ - "Direction", - "TrainNo" + "DestinationStaionID", + "DestinationStationID", + "DestinationStationName", + "EstimateTime", + "LineID", + "LineName", + "SrcUpdateTime", + "StationID", + "StationName", + "TripHeadSign", + "UpdateTime" ], "type": "object", "properties": { - "TrainNo": { + "LineNO": { "title": "String", - "description": "車次代碼", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'南下',1:'北上']", - "type": "integer" + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationID": { + "LineID": { "title": "String", - "description": "列車起點車站代號", - "type": "string" + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationName": { + "LineName": { "title": "NameType", - "description": "列車起點車站名稱", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "EndingStationID": { + "StationID": { "title": "String", - "description": "列車終點車站代號", - "type": "string" + "description": "所在車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "EndingStationName": { + "StationName": { "title": "NameType", - "description": "列車終點車站名稱", + "description": "所在車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "Note": { + "TripHeadSign": { + "title": "String", + "description": "下班車次方向描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStaionID": { + "title": "String", + "description": "目的地車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStationID": { + "title": "String", + "description": "目的地車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStationName": { "title": "NameType", - "description": "附註說明", + "description": "目的地車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } + }, + "EstimateTime": { + "format": "int32", + "title": "Int32", + "description": "下班車次抵達時間預估(分)", + "type": "integer" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" } + }, + "xml": { + "name": "LiveBoard" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime": { - "title": "RailStopTime", - "description": "高鐵停靠時間資料", + "PTX.Service.DTO.Rail.Specification.V2.Metro.MetroShape": { + "title": "MetroShape", + "description": "捷運線型資料", "required": [ - "DepartureTime", - "StationID", - "StationName", - "StopSequence" + "EncodedPolyline", + "Geometry", + "LineID", + "LineName", + "UpdateTime" ], "type": "object", "properties": { - "StopSequence": { - "format": "int32", - "title": "Int32", - "description": "跑法站序(由1開始)", - "type": "integer" + "LineNo": { + "title": "String", + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "StationID": { + "LineID": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "LineName": { "title": "NameType", - "description": "車站名稱", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ArrivalTime": { - "title": "String", - "description": "到站時間(格式: HH:mm:ss)", + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "DepartureTime": { + "Geometry": { "title": "String", - "description": "離站時間(格式: HH:mm:ss)", - "type": "string" + "description": "well-known text,為路線軌跡資料", + "type": "string", + "xml": { + "name": "String" + } + }, + "EncodedPolyline": { + "title": "String", + "description": "路線軌跡編碼(encoded polyline)", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "MetroShape" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTimetable": { - "title": "RailDailyTimetable", - "description": "高鐵到離站時刻資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScope": { + "title": "AlertScope", + "description": "影響範圍", "required": [ - "DailyTrainInfo", - "StopTimes", - "TrainDate", - "UpdateTime", - "VersionID" + "Lines", + "LineSections", + "Routes", + "Stations", + "Trains" ], "type": "object", "properties": { - "TrainDate": { - "title": "String", - "description": "行駛日期(格式: yyyy:MM:dd)", - "type": "string" - }, - "DailyTrainInfo": { - "title": "RailDailyTrainInfo", - "description": "車次資料", + "Network": { + "title": "AlertScopeNetwork", + "description": "受影響的路網", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeNetwork" } - ] + ], + "xml": { + "name": "AlertScopeNetwork" + } }, - "StopTimes": { - "title": "Array", - "description": "停靠時間資料", + "Stations": { + "title": "AlertScopeStation[]", + "description": "受影響的車站", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeStation" + }, + "xml": { + "name": "AlertScopeStation[]" } }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Lines": { + "title": "AlertScopeLine[]", + "description": "受影響的實體路線", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLine" + }, + "xml": { + "name": "AlertScopeLine[]" + } }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "Routes": { + "title": "AlertScopeRoute[]", + "description": "受影響的營運路線", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeRoute" + }, + "xml": { + "name": "AlertScopeRoute[]" + } + }, + "Trains": { + "title": "AlertScopeTrain[]", + "description": "受影響的車次", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeTrain" + }, + "xml": { + "name": "AlertScopeTrain[]" + } + }, + "LineSections": { + "title": "AlertScopeLineSection[]", + "description": "受影響的路線區間", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLineSection" + }, + "xml": { + "name": "AlertScopeLineSection[]" + } } + }, + "xml": { + "name": "AlertScope" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTrainInfo": { - "title": "RailDailyTrainInfo", - "description": "臺鐵車次資料型別", - "required": [ - "BikeFlag", - "BreastFeedingFlag", - "DailyFlag", - "DiningFlag", - "Direction", - "PackageServiceFlag", - "ServiceAddedFlag", - "TrainNo", - "TrainTypeCode", - "TrainTypeID", - "TrainTypeName", - "UpdateTime", - "VersionID", - "WheelchairFlag" - ], + "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLine": { + "title": "AlertScopeLine", + "description": "受影響的實體路線", "type": "object", "properties": { - "TrainNo": { + "LineID": { "title": "String", - "description": "車次代碼", - "type": "string" + "description": "實體路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "順逆行 : [0:'順行',1:'逆行']", - "type": "integer" + "LineName": { + "title": "String", + "description": "實體路線名稱", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeLine" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLineSection": { + "title": "AlertScopeLineSection", + "description": "受影響的路線區間", + "type": "object", + "properties": { + "LineID": { + "title": "String", + "description": "路線區間所在路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, "StartingStationID": { "title": "String", - "description": "列車起點車站代號", - "type": "string" + "description": "區間起站車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, "StartingStationName": { - "title": "NameType", - "description": "列車起點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "title": "String", + "description": "區間起站車站名稱", + "type": "string", + "xml": { + "name": "String" + } }, "EndingStationID": { "title": "String", - "description": "列車終點車站代號", - "type": "string" + "description": "區間迄站車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, "EndingStationName": { - "title": "NameType", - "description": "列車終點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "TripHeadsign": { "title": "String", - "description": "車次車頭文字描述(通用以\"往\"+ 迄站中文站名\")", - "type": "string" + "description": "區間迄站車站名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeID": { + "Description": { "title": "String", - "description": "列車車種代碼", - "type": "string" + "description": "影響區間輔助描述", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeLineSection" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeNetwork": { + "title": "AlertScopeNetwork", + "description": "受影響的路網", + "type": "object", + "properties": { + "NetworkID": { + "title": "String", + "description": "路網代碼", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeNetwork" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeRoute": { + "title": "AlertScopeRoute", + "description": "受影響的營運路線", + "type": "object", + "properties": { + "RouteID": { + "title": "String", + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeCode": { + "RouteName": { "title": "String", - "description": "列車車種簡碼", - "type": "string" + "description": "營運路線名稱", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeRoute" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeStation": { + "title": "AlertScopeStation", + "description": "受影響的車站", + "type": "object", + "properties": { + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeName": { - "title": "NameType", - "description": "列車車種名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "StationName": { + "title": "String", + "description": "車站名稱", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeStation" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeTrain": { + "title": "AlertScopeTrain", + "description": "受影響的車次", + "type": "object", + "properties": { + "TrainNo": { + "title": "String", + "description": "受影響的車次", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeTrain" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News": { + "title": "News", + "required": [ + "Description", + "NewsCategory", + "NewsID", + "PublishTime", + "Title", + "UpdateTime" + ], + "type": "object", + "properties": { + "NewsID": { + "title": "String", + "description": "消息代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TripLine": { - "format": "int32", + "Language": { "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", - "type": "integer" + "description": "語系 : [1:'Zh_tw',2:'En_us',3:'Zh_cn',4:'Ja',5:'Ko',99:'Other']", + "type": "string" }, - "OverNightStationID": { + "Department": { "title": "String", - "description": "跨夜車站代碼", - "type": "string" + "description": "發布單位", + "type": "string", + "xml": { + "name": "String" + } }, - "WheelchairFlag": { - "format": "int32", - "title": "integer", - "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", - "type": "integer" + "Title": { + "title": "String", + "description": "消息標題", + "type": "string", + "xml": { + "name": "String" + } }, - "PackageServiceFlag": { - "format": "int32", + "NewsCategory": { "title": "integer", - "description": "是否提供行李服務 : [0:'否',1:'是']", - "type": "integer" + "description": "消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他']", + "type": "string" }, - "DiningFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供訂便當服務 : [0:'否',1:'是']", - "type": "integer" + "Description": { + "title": "String", + "description": "內容描述", + "type": "string", + "xml": { + "name": "String" + } }, - "BikeFlag": { - "format": "int32", - "title": "integer", - "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", - "type": "integer" + "NewsURL": { + "title": "String", + "description": "消息網址連結", + "type": "string", + "xml": { + "name": "String" + } }, - "BreastFeedingFlag": { - "format": "int32", - "title": "integer", - "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", - "type": "integer" + "AttachmentURL": { + "title": "String", + "description": "附件網址連結", + "type": "string", + "xml": { + "name": "String" + } }, - "DailyFlag": { - "format": "int32", - "title": "integer", - "description": "是否每日行駛 : [0:'否',1:'是']", - "type": "integer" + "StartTime": { + "title": "DateTime", + "description": "消息起始日期時間", + "type": "string" }, - "ServiceAddedFlag": { - "format": "int32", - "title": "integer", - "description": "是否為加班車 : [0:'否',1:'是']", - "type": "integer" + "EndTime": { + "title": "DateTime", + "description": "消息結束日期時間", + "type": "string" }, - "Note": { - "title": "NameType", - "description": "附註說明", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "PublishTime": { + "title": "DateTime", + "description": "消息發佈日期時間", + "type": "string" }, "UpdateTime": { "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "本筆資料之更新日期時間", "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" } + }, + "xml": { + "name": "News" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTrainInfo": { - "title": "RailDailyTrainInfo", - "description": "高鐵車次資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.Network": { + "title": "Network", + "description": "捷運路網資料", "required": [ - "Direction", - "TrainNo", + "Lines", + "NetworkID", + "NetworkMapURL", + "NetworkName", + "OperatorCode", + "OperatorName", + "SrcUpdateTime", "UpdateTime", "VersionID" ], "type": "object", "properties": { - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'南下',1:'北上']", - "type": "integer" - }, - "StartingStationID": { + "NetworkID": { "title": "String", - "description": "列車起點車站代號", - "type": "string" + "description": "捷運路網代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationName": { + "NetworkName": { "title": "NameType", - "description": "列車起點車站名稱", + "description": "捷運路網名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "EndingStationID": { + "OperatorCode": { "title": "String", - "description": "列車終點車站代號", - "type": "string" + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "EndingStationName": { + "OperatorName": { "title": "NameType", - "description": "列車終點車站名稱", + "description": "營運業者名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "Note": { - "title": "NameType", - "description": "附註說明", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "NetworkMapURL": { + "title": "String", + "description": "捷運路網圖網址URL", + "type": "string", + "xml": { + "name": "String" + } + }, + "Lines": { + "title": "Array", + "description": "捷運路線資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.NetworkSubClass.Line" + }, + "xml": { + "name": "List`1" + } + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, "UpdateTime": { "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, "VersionID": { @@ -7061,154 +7456,120 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "Network" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDay": { - "title": "ServiceDay", - "description": "服務日型態", + "PTX.Service.DTO.Rail.Specification.V2.Metro.NetworkSubClass.Line": { + "title": "Line", + "description": "捷運路網資料-捷運路線資訊", "required": [ - "Friday", - "Monday", - "NationalHolidays", - "Saturday", - "Sunday", - "Thursday", - "Tuesday", - "Wednesday" + "LineID" ], "type": "object", "properties": { - "ServiceTag": { + "LineNo": { "title": "String", - "description": "營運日標籤", - "type": "string" - }, - "Monday": { - "title": "Boolean", - "description": "星期一營運與否", - "type": "boolean" - }, - "Tuesday": { - "title": "Boolean", - "description": "星期二營運與否", - "type": "boolean" - }, - "Wednesday": { - "title": "Boolean", - "description": "星期三營運與否", - "type": "boolean" - }, - "Thursday": { - "title": "Boolean", - "description": "星期四營運與否", - "type": "boolean" - }, - "Friday": { - "title": "Boolean", - "description": "星期五營運與否", - "type": "boolean" - }, - "Saturday": { - "title": "Boolean", - "description": "星期六營運與否", - "type": "boolean" - }, - "Sunday": { - "title": "Boolean", - "description": "星期日營運與否", - "type": "boolean" + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "NationalHolidays": { - "title": "Boolean", - "description": "國定假日營運與否", - "type": "boolean" + "LineID": { + "title": "String", + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Line" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.FirstLastTimetable": { - "title": "FirstLastTimetable", - "description": "首末班車時刻表資料", + "PTX.Service.DTO.Rail.Specification.V2.Metro.ODFare": { + "title": "ODFare", + "description": "起迄站間票價資料", "required": [ - "DestinationStaionID", + "DestinationStationID", "DestinationStationName", - "FirstTrainTime", - "LastTrainTime", - "LineID", - "ServiceDay", + "Fares", + "OriginStationID", + "OriginStationName", "SrcUpdateTime", - "StationID", - "StationName", "UpdateTime", "VersionID" ], "type": "object", "properties": { - "LineNo": { - "title": "String", - "description": "首末班車次之路線代號", - "type": "string" - }, - "LineID": { - "title": "String", - "description": "首末班車次之路線代碼", - "type": "string" - }, - "StationID": { + "OriginStationID": { "title": "String", - "description": "車站代號", - "type": "string" + "description": "起站車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "OriginStationName": { "title": "NameType", - "description": "車站名稱", + "description": "起站車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "TripHeadSign": { - "title": "String", - "description": "首末班車次之目的地方向描述", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "DestinationStaionID": { + "DestinationStationID": { "title": "String", - "description": "目的站車站代號", - "type": "string" + "description": "迄站車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, "DestinationStationName": { "title": "NameType", - "description": "目的站車站名稱", + "description": "迄站車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "TrainType": { "format": "int32", "description": "車種(0:不分車種, 1:普通車, 2:直達車)", "type": "integer" }, - "FirstTrainTime": { - "title": "String", - "description": "首班車時刻", - "type": "string" + "Fares": { + "title": "Array", + "description": "票價資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Fare" + }, + "xml": { + "name": "List`1" + } }, - "LastTrainTime": { - "title": "String", - "description": "末班車時刻", - "type": "string" + "TravelTime": { + "format": "int32", + "description": "起迄站間乘車時間(分)", + "type": "integer" }, - "ServiceDay": { - "title": "ServiceDay", - "description": "服務日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDay" - } - ] + "TravelDistance": { + "format": "float", + "description": "起迄站間乘車距離(公里)", + "type": "number" }, "SrcUpdateTime": { "title": "DateTime", @@ -7226,80 +7587,163 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "ODFare" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.OperationTime": { - "title": "OperationTime", - "description": "營運時間資訊", - "required": [ - "EndTime", - "StartTime" - ], - "type": "object", - "properties": { - "StartTime": { - "title": "String", - "description": "營運開始時間", - "type": "string" - }, - "EndTime": { - "title": "String", - "description": "營運結束時間", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Headway": { - "title": "Headway", - "description": "班距頻率資訊", + "PTX.Service.DTO.Rail.Specification.V2.Metro.Route": { + "title": "Route", + "description": "營運路線基本資料", "required": [ - "EndTime", - "MaxHeadwayMins", - "MinHeadwayMins", - "PeakFlag", - "StartTime" + "EndStationID", + "EndStationName", + "LineID", + "OperatorCode", + "RailRouteType", + "RouteID", + "RouteLength", + "RouteName", + "SrcUpdateTime", + "StartStationID", + "StartStationName", + "TravelTime", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "PeakFlag": { + "RouteID": { "title": "String", - "description": "尖峰/離峰狀態(0:離峰, 1:尖峰)", - "type": "string" + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartTime": { + "OperatorCode": { "title": "String", - "description": "開始時間", - "type": "string" + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "EndTime": { - "title": "String", - "description": "結束時間", - "type": "string" + "RouteName": { + "title": "NameType", + "description": "營運路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "MinHeadwayMins": { + "RailRouteType": { "format": "int32", "title": "Int32", - "description": "最小班距時間(分)", + "description": "軌道路線類別(33:都市捷運;34:機場捷運)", "type": "integer" }, - "MaxHeadwayMins": { - "format": "int32", - "title": "Int32", - "description": "最大班距時間(分)", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.Frequency": { - "title": "Frequency", - "description": "路線發車班距頻率資料", + "LineNo": { + "title": "String", + "description": "營運路線所屬之路線編號", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineID": { + "title": "String", + "description": "營運路線所屬之路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartStationID": { + "title": "String", + "description": "營運路線起站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartStationName": { + "title": "NameType", + "description": "營運路線起站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "EndStationID": { + "title": "String", + "description": "營運路線迄站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndStationName": { + "title": "NameType", + "description": "營運路線迄站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "TravelTime": { + "format": "float", + "title": "Single", + "description": "營運路線運行時間", + "type": "number" + }, + "RouteLength": { + "format": "float", + "title": "Single", + "description": "營運路線長度距離", + "type": "number" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" + } + }, + "xml": { + "name": "Route" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.S2STravelTime": { + "title": "S2STravelTime", + "description": "列車站間運行時間基本資料", "required": [ - "Headways", "LineID", - "OperationTime", "RouteID", - "ServiceDay", "SrcUpdateTime", + "TravelTimes", "UpdateTime", "VersionID" ], @@ -7308,47 +7752,41 @@ "LineNo": { "title": "String", "description": "營運路線所屬之路線編號", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "LineID": { "title": "String", "description": "營運路線所屬之路線代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RouteID": { "title": "String", "description": "營運路線代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TrainType": { "format": "int32", "description": "車種(0:不分車種, 1:普通車, 2:直達車)", "type": "integer" }, - "ServiceDay": { - "title": "ServiceDay", - "description": "服務日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDay" - } - ] - }, - "OperationTime": { - "title": "OperationTime", - "description": "營運時間資訊", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.OperationTime" - } - ] - }, - "Headways": { + "TravelTimes": { "title": "Array", - "description": "班距頻率資訊", + "description": "站間運行時間資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Headway" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.TravelTime" + }, + "xml": { + "name": "List`1" } }, "SrcUpdateTime": { @@ -7367,252 +7805,393 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "S2STravelTime" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo": { - "title": "RailGeneralTrainInfo", - "description": "臺鐵車次定期資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.Station": { + "title": "Station", + "description": "捷運車站資料", "required": [ - "BikeFlag", - "BreastFeedingFlag", - "DailyFlag", - "DiningFlag", - "Direction", - "PackageServiceFlag", - "TrainNo", - "WheelchairFlag" + "BikeAllowOnHoliday", + "SrcUpdateTime", + "StationAddress", + "StationID", + "StationName", + "StationUID", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "TrainNo": { + "StationUID": { "title": "String", - "description": "車次代碼", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "順逆行 : [0:'順行',1:'逆行']", - "type": "integer" + "description": "車站唯一識別代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationID": { + "StationID": { "title": "String", - "description": "列車起點車站代號", - "type": "string" + "description": "車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationName": { + "StationName": { "title": "NameType", - "description": "列車起點車站名稱", + "description": "車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "EndingStationID": { + "StationAddress": { "title": "String", - "description": "列車終點車站代號", + "description": "車站地址", + "type": "string", + "xml": { + "name": "String" + } + }, + "BikeAllowOnHoliday": { + "title": "Boolean", + "description": "假日自行車進出與否", + "type": "boolean" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "EndingStationName": { - "title": "NameType", - "description": "列車終點車站名稱", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" + }, + "StationPosition": { + "title": "PointType", + "description": "車站位置", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.PointType" } - ] + ], + "xml": { + "name": "PointType" + } }, - "TrainTypeID": { + "LocationCity": { "title": "String", - "description": "列車車種代碼", - "type": "string" + "description": "車站位置所屬縣市", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeCode": { + "LocationCityCode": { "title": "String", - "description": "列車車種簡碼", - "type": "string" + "description": "車站位置所屬縣市代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeName": { + "LocationTown": { + "title": "String", + "description": "車站位置所屬鄉鎮", + "type": "string", + "xml": { + "name": "String" + } + }, + "LocationTownCode": { + "title": "String", + "description": "車站位置所屬鄉鎮代碼", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Station" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.StationExit": { + "title": "StationExit", + "description": "捷運車站出入口基本資料", + "required": [ + "Elevator", + "Escalator", + "ExitID", + "ExitName", + "ExitPosition", + "LocationDescription", + "SrcUpdateTime", + "Stair", + "StationID", + "StationName", + "UpdateTime", + "VersionID" + ], + "type": "object", + "properties": { + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { "title": "NameType", - "description": "列車車種名稱", + "description": "車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "TripLine": { - "format": "int32", - "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "OverNightStationID": { + "ExitID": { "title": "String", - "description": "跨夜車站代碼", - "type": "string" - }, - "WheelchairFlag": { - "format": "int32", - "title": "integer", - "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", - "type": "integer" + "description": "出入口代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "PackageServiceFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供行李服務 : [0:'否',1:'是']", - "type": "integer" - }, - "DiningFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供訂便當服務 : [0:'否',1:'是']", - "type": "integer" - }, - "BikeFlag": { - "format": "int32", - "title": "integer", - "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", - "type": "integer" - }, - "BreastFeedingFlag": { - "format": "int32", - "title": "integer", - "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", - "type": "integer" - }, - "DailyFlag": { - "format": "int32", - "title": "integer", - "description": "是否為每日行駛 : [0:'否',1:'是']", - "type": "integer" - }, - "Note": { + "ExitName": { "title": "NameType", - "description": "附註說明", + "description": "出入口名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.ServiceDay": { - "title": "ServiceDay", - "description": "台鐵服務日型態", - "required": [ - "Friday", - "Monday", - "Saturday", - "Sunday", - "Thursday", - "Tuesday", - "Wednesday" - ], - "type": "object", - "properties": { - "Monday": { - "format": "int32", - "title": "integer", - "description": "星期一是否營運 : [0:'否',1:'是']", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "Tuesday": { - "format": "int32", - "title": "integer", - "description": "星期二是否營運 : [0:'否',1:'是']", - "type": "integer" + "ExitPosition": { + "title": "PointType", + "description": "出入口座標", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } }, - "Wednesday": { - "format": "int32", - "title": "integer", - "description": "星期三是否營運 : [0:'否',1:'是']", - "type": "integer" + "LocationDescription": { + "title": "String", + "description": "地址描述", + "type": "string", + "xml": { + "name": "String" + } }, - "Thursday": { - "format": "int32", - "title": "integer", - "description": "星期四是否營運 : [0:'否',1:'是']", - "type": "integer" + "Stair": { + "description": "是否有樓梯", + "type": "boolean" }, - "Friday": { + "Escalator": { "format": "int32", - "title": "integer", - "description": "星期五是否營運 : [0:'否',1:'是']", + "description": "是否有電扶梯(0:沒有,1:雙向,2:出站,3:入站)", "type": "integer" }, - "Saturday": { - "format": "int32", - "title": "integer", - "description": "星期六是否營運 : [0:'否',1:'是']", - "type": "integer" + "Elevator": { + "description": "是否有電梯", + "type": "boolean" }, - "Sunday": { + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "VersionID": { "format": "int32", - "title": "integer", - "description": "星期日是否營運 : [0:'否',1:'是']", + "title": "Int32", + "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "StationExit" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.GeneralTimetable": { - "title": "GeneralTimetable", - "description": "台鐵定期時刻表資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.StationFacility": { + "title": "StationFacility", + "description": "捷運車站設施資料", "required": [ - "GeneralTrainInfo", - "ServiceDay", - "StopTimes" + "DrinkingFountains", + "Elevators", + "InformationSpots", + "SrcUpdateTime", + "StationID", + "StationName", + "Toilets", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "GeneralTrainInfo": { - "title": "RailGeneralTrainInfo", - "description": "定期車次資料", + "StationID": { + "title": "String", + "description": "車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "車站名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "StopTimes": { + "Elevators": { "title": "Array", - "description": "停靠時間資料", + "description": "無障礙電梯位置資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Elevator" + }, + "xml": { + "name": "List`1" } }, - "ServiceDay": { - "title": "ServiceDay", - "description": "營運日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.ServiceDay" - } - ] + "InformationSpots": { + "title": "Array", + "description": "詢問處位置資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.InformationSpot" + }, + "xml": { + "name": "List`1" + } + }, + "DrinkingFountains": { + "title": "Array", + "description": "飲水機位置資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.DrinkingFountain" + }, + "xml": { + "name": "List`1" + } + }, + "Toilets": { + "title": "Array", + "description": "廁所位置資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Toilet" + }, + "xml": { + "name": "List`1" + } }, "SrcUpdateTime": { "title": "DateTime", "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + }, + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "StationFacility" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailGeneralTimetable": { - "title": "RailGeneralTimetable", - "description": "台鐵到離站時刻資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfLine": { + "title": "StationOfLine", + "description": "路線車站資料", "required": [ - "GeneralTimetable", + "LineID", + "SrcUpdateTime", + "Stations", + "UpdateTime", "VersionID" ], "type": "object", "properties": { + "LineNo": { + "title": "String", + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineID": { + "title": "String", + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Stations": { + "title": "Array", + "description": "路線車站資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station" + }, + "xml": { + "name": "List`1" + } + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, "UpdateTime": { "title": "DateTime", - "description": "資料更新日期(格式: yyyy-MM-dd)", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, "VersionID": { @@ -7620,203 +8199,221 @@ "title": "Int32", "description": "資料版本編號", "type": "integer" - }, - "GeneralTimetable": { - "title": "GeneralTimetable", - "description": "定期時刻表資料", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.GeneralTimetable" - } - ] } + }, + "xml": { + "name": "StationOfLine" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTrainInfo": { - "title": "RailGeneralTrainInfo", - "description": "高鐵車次定期資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfRoute": { + "title": "StationOfRoute", + "description": "路線車站資料", "required": [ "Direction", - "TrainNo" - ], - "type": "object", - "properties": { - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'南下',1:'北上']", - "type": "integer" - }, - "StartingStationID": { + "LineID", + "RouteID", + "RouteName", + "SrcUpdateTime", + "Stations", + "UpdateTime", + "VersionID" + ], + "type": "object", + "properties": { + "LineNo": { "title": "String", - "description": "列車起點車站代號", - "type": "string" - }, - "StartingStationName": { - "title": "NameType", - "description": "列車起點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "description": "營運路線所屬之路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "EndingStationID": { + "LineID": { "title": "String", - "description": "列車終點車站代號", - "type": "string" + "description": "營運路線所屬之路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "EndingStationName": { - "title": "NameType", - "description": "列車終點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "RouteID": { + "title": "String", + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Note": { + "RouteName": { "title": "NameType", - "description": "附註說明", + "description": "營運路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.ServiceDay": { - "title": "ServiceDay", - "description": "高鐵服務日型態", - "required": [ - "Friday", - "Monday", - "Saturday", - "Sunday", - "Thursday", - "Tuesday", - "Wednesday" - ], - "type": "object", - "properties": { - "Monday": { - "format": "int32", - "title": "integer", - "description": "星期一是否營運 : [0:'否',1:'是']", - "type": "integer" - }, - "Tuesday": { - "format": "int32", - "title": "integer", - "description": "星期二是否營運 : [0:'否',1:'是']", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "Wednesday": { + "Direction": { "format": "int32", - "title": "integer", - "description": "星期三是否營運 : [0:'否',1:'是']", + "title": "Int32", + "description": "營運路線方向描述(0:去程,1:返程)", "type": "integer" }, - "Thursday": { - "format": "int32", - "title": "integer", - "description": "星期四是否營運 : [0:'否',1:'是']", - "type": "integer" + "Stations": { + "title": "Array", + "description": "營運路線車站資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station" + }, + "xml": { + "name": "List`1" + } }, - "Friday": { - "format": "int32", - "title": "integer", - "description": "星期五是否營運 : [0:'否',1:'是']", - "type": "integer" + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "Saturday": { - "format": "int32", - "title": "integer", - "description": "星期六是否營運 : [0:'否',1:'是']", - "type": "integer" + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "Sunday": { + "VersionID": { "format": "int32", - "title": "integer", - "description": "星期日是否營運 : [0:'否',1:'是']", + "title": "Int32", + "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "StationOfRoute" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.GeneralTimetable": { - "title": "GeneralTimetable", - "description": "高鐵定期時刻表資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.StationTimeTable": { + "title": "StationTimeTable", + "description": "站別時刻表資料", "required": [ - "GeneralTrainInfo", + "DestinationStaionID", + "DestinationStationName", + "LineID", "ServiceDay", "SrcUpdateTime", - "StopTimes" + "StationID", + "StationName", + "Timetables", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "GeneralTrainInfo": { - "title": "RailGeneralTrainInfo", - "description": "定期車次資料", + "RouteID": { + "title": "String", + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineID": { + "title": "String", + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "車站名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTrainInfo" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "StopTimes": { + "Direction": { + "title": "integer", + "description": "營運路線方向描述 : [0:'去程',1:'返程']", + "type": "string" + }, + "DestinationStaionID": { + "title": "String", + "description": "目的站車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStationName": { + "title": "NameType", + "description": "目的站車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Timetables": { "title": "Array", - "description": "停靠時間資料", + "description": "車站發車時刻資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Timetable" + }, + "xml": { + "name": "List`1" } }, "ServiceDay": { "title": "ServiceDay", - "description": "營運日型態", + "description": "服務日型態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.ServiceDay" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDay" } - ] + ], + "xml": { + "name": "ServiceDay" + } + }, + "SpecialDays": { + "title": "Array", + "description": "特定日期", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.SpecialDay" + }, + "xml": { + "name": "List`1" + } }, "SrcUpdateTime": { "title": "DateTime", "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTimetable": { - "title": "RailGeneralTimetable", - "description": "高鐵到離站時刻資料型別", - "required": [ - "EffectiveDate", - "ExpiringDate", - "GeneralTimetable", - "VersionID" - ], - "type": "object", - "properties": { + }, "UpdateTime": { "title": "DateTime", - "description": "發布時間(格式: yyyy-MM-dd)", - "type": "string" - }, - "EffectiveDate": { - "title": "String", - "description": "有效日期(格式: yyyy:MM:dd)", - "type": "string" - }, - "ExpiringDate": { - "title": "String", - "description": "結束日期(格式: yyyy:MM:dd)", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, "VersionID": { @@ -7824,439 +8421,268 @@ "title": "Int32", "description": "資料版本編號", "type": "integer" - }, - "GeneralTimetable": { - "title": "GeneralTimetable", - "description": "定期時刻表資料", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.GeneralTimetable" - } - ] } + }, + "xml": { + "name": "StationTimeTable" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailGeneralTrainInfo": { - "title": "RailGeneralTrainInfo", - "description": "臺鐵車次定期資料型別", + "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Fare": { + "title": "Fare", + "description": "票價資訊", "required": [ - "BikeFlag", - "BreastFeedingFlag", - "DailyFlag", - "DiningFlag", - "Direction", - "PackageServiceFlag", - "TrainNo", - "UpdateTime", - "VersionID", - "WheelchairFlag" + "FareClass", + "Price", + "TicketType" ], "type": "object", "properties": { - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" - }, - "Direction": { + "TicketType": { "format": "int32", - "title": "integer", - "description": "順逆行 : [0:'順行',1:'逆行']", + "title": "Int32", + "description": "票種(1:一般票(單程票), 2:來回票(悠遊卡/一卡通), 3:電子票証, 4:回數票, 5:定期票(30天期), 6:定期票(60天期))", "type": "integer" }, - "StartingStationID": { - "title": "String", - "description": "列車起點車站代號", - "type": "string" - }, - "StartingStationName": { - "title": "NameType", - "description": "列車起點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "EndingStationID": { - "title": "String", - "description": "列車終點車站代號", - "type": "string" - }, - "EndingStationName": { - "title": "NameType", - "description": "列車終點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "TrainTypeID": { - "title": "String", - "description": "列車車種代碼", - "type": "string" - }, - "TrainTypeCode": { - "title": "String", - "description": "列車車種簡碼", - "type": "string" - }, - "TrainTypeName": { - "title": "NameType", - "description": "列車車種名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "TripLine": { + "FareClass": { "format": "int32", - "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", + "title": "Int32", + "description": "費率等級(1:成人(Adult), 2:學生(Student), 3:孩童(Child), 4:敬老(Senior), 5:愛心(Disabled), 6:愛心孩童(Disabled Child), 7:愛心優待/愛心陪伴, 8:團體(Group))", "type": "integer" }, - "OverNightStationID": { + "SaleType": { "title": "String", - "description": "跨夜車站代碼", - "type": "string" - }, - "WheelchairFlag": { - "format": "int32", - "title": "integer", - "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", - "type": "integer" + "description": "販售方式 (1: 現場櫃台販售, 2: 現場機器販售, 3: 線上販售, 99: 其他)", + "type": "string", + "xml": { + "name": "String" + } }, - "PackageServiceFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供行李服務 : [0:'否',1:'是']", - "type": "integer" + "CitizenCode": { + "title": "String", + "description": "市民所屬縣市代碼 (TPE: 臺北市, NWT: 新北市, OTHERS: 其他)", + "type": "string", + "xml": { + "name": "String" + } }, - "DiningFlag": { + "Price": { "format": "int32", - "title": "integer", - "description": "是否提供訂便當服務 : [0:'否',1:'是']", + "title": "Int32", + "description": "票價", "type": "integer" + } + }, + "xml": { + "name": "Fare" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Headway": { + "title": "Headway", + "description": "班距頻率資訊", + "required": [ + "EndTime", + "MaxHeadwayMins", + "MinHeadwayMins", + "PeakFlag", + "StartTime" + ], + "type": "object", + "properties": { + "PeakFlag": { + "title": "String", + "description": "尖峰/離峰狀態(0:離峰, 1:尖峰)", + "type": "string", + "xml": { + "name": "String" + } }, - "BikeFlag": { - "format": "int32", - "title": "integer", - "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", - "type": "integer" + "StartTime": { + "title": "String", + "description": "開始時間", + "type": "string", + "xml": { + "name": "String" + } }, - "BreastFeedingFlag": { - "format": "int32", - "title": "integer", - "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", - "type": "integer" + "EndTime": { + "title": "String", + "description": "結束時間", + "type": "string", + "xml": { + "name": "String" + } }, - "DailyFlag": { + "MinHeadwayMins": { "format": "int32", - "title": "integer", - "description": "是否為每日行駛 : [0:'否',1:'是']", + "title": "Int32", + "description": "最小班距時間(分)", "type": "integer" }, - "Note": { - "title": "NameType", - "description": "附註說明", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "VersionID": { + "MaxHeadwayMins": { "format": "int32", "title": "Int32", - "description": "資料版本編號", + "description": "最大班距時間(分)", "type": "integer" } + }, + "xml": { + "name": "Headway" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.Line": { - "title": "Line", - "description": "路線基本資料", + "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.OperationTime": { + "title": "OperationTime", + "description": "營運時間資訊", "required": [ - "IsBranch", - "LineID", - "LineNameEn", - "LineNameZh", - "LineNo", - "LineSectionNameEn", - "LineSectionNameZh", - "UpdateTime" + "EndTime", + "StartTime" ], "type": "object", "properties": { - "LineNo": { - "title": "String", - "description": "路線編號", - "type": "string" - }, - "LineID": { - "title": "String", - "description": "路線代碼", - "type": "string" - }, - "LineNameZh": { - "title": "String", - "description": "路線中文名稱", - "type": "string" - }, - "LineNameEn": { - "title": "String", - "description": "路線英文名稱", - "type": "string" - }, - "LineSectionNameZh": { - "title": "String", - "description": "路線區間中文名稱", - "type": "string" - }, - "LineSectionNameEn": { + "StartTime": { "title": "String", - "description": "路線區間英文名稱", - "type": "string" + "description": "營運開始時間", + "type": "string", + "xml": { + "name": "String" + } }, - "LineColor": { + "EndTime": { "title": "String", - "description": "路線顏色", - "type": "string" - }, - "IsBranch": { - "title": "Boolean", - "description": "是否位於支線", - "type": "boolean" - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "description": "營運結束時間", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "OperationTime" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.Line": { - "title": "Line", - "description": "捷運路線資料", + "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", "required": [ - "IsBranch", - "LineColor", - "LineID", - "LineName", - "LineSectionName", - "SrcUpdateTime", - "UpdateTime", - "VersionID" + "Friday", + "Monday", + "NationalHolidays", + "Saturday", + "Sunday", + "Thursday", + "Tuesday", + "Wednesday" ], "type": "object", "properties": { - "LineNo": { + "ServiceTag": { "title": "String", - "description": "路線編號", - "type": "string" + "description": "營運日標籤", + "type": "string", + "xml": { + "name": "String" + } }, - "LineID": { - "title": "String", - "description": "路線代碼", - "type": "string" + "Monday": { + "title": "Boolean", + "description": "星期一營運與否", + "type": "boolean" }, - "LineName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "Tuesday": { + "title": "Boolean", + "description": "星期二營運與否", + "type": "boolean" }, - "LineSectionName": { - "title": "NameType", - "description": "路線區間名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "Wednesday": { + "title": "Boolean", + "description": "星期三營運與否", + "type": "boolean" }, - "LineColor": { - "title": "String", - "description": "路線顏色", - "type": "string" + "Thursday": { + "title": "Boolean", + "description": "星期四營運與否", + "type": "boolean" }, - "IsBranch": { + "Friday": { "title": "Boolean", - "description": "是否位於支線", + "description": "星期五營運與否", "type": "boolean" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Saturday": { + "title": "Boolean", + "description": "星期六營運與否", + "type": "boolean" }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Sunday": { + "title": "Boolean", + "description": "星期日營運與否", + "type": "boolean" }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "NationalHolidays": { + "title": "Boolean", + "description": "國定假日營運與否", + "type": "boolean" } + }, + "xml": { + "name": "ServiceDay" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.LineTransfer": { - "title": "LineTransfer", - "description": "捷運路線站間轉乘基本資料", + "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.SpecialDay": { + "title": "SpecialDay", + "description": "特定日期", "required": [ - "FromLineID", - "FromLineName", - "FromStationID", - "FromStationName", - "SrcUpdateTime", - "ToLineID", - "ToLineName", - "ToLineNo", - "ToStationID", - "ToStationName", - "TransferDescription", - "TransferTime", - "UpdateTime", - "VersionID" + "Description", + "EndDate", + "SaterDate" ], "type": "object", "properties": { - "FromLineNo": { - "title": "String", - "description": "路線間轉乘(起)之路線編號", - "type": "string" - }, - "FromLineID": { - "title": "String", - "description": "路線間轉乘(起)之路線代碼", - "type": "string" - }, - "FromLineName": { - "title": "NameType", - "description": "路線間轉乘(起)之路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "FromStationID": { - "title": "String", - "description": "路線間轉乘(起)之車站代碼", - "type": "string" - }, - "FromStationName": { - "title": "NameType", - "description": "路線間轉乘(起)之車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "ToLineNo": { - "title": "String", - "description": "路線間轉乘(迄)之路線編號", - "type": "string" - }, - "ToLineID": { - "title": "String", - "description": "路線間轉乘(迄)之路線代碼", - "type": "string" - }, - "ToLineName": { - "title": "NameType", - "description": "路線間轉乘(迄)之路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "ToStationID": { - "title": "String", - "description": "路線間轉乘(迄)之車站代碼", - "type": "string" - }, - "ToStationName": { - "title": "NameType", - "description": "路線間轉乘(迄)之車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "IsOnSiteTransfer": { - "format": "int32", - "title": "integer", - "description": "是否為站內或站外轉乘 : [0:'站外',1:'站內']", - "type": "integer" - }, - "TransferTime": { - "format": "int32", - "title": "Int32", - "description": "轉乘耗時參考時間(分)", - "type": "integer" - }, - "TransferDescription": { - "title": "String", - "description": "轉乘方式文字描述", - "type": "string" - }, - "SrcUpdateTime": { + "SaterDate": { "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "開始時間", "type": "string" }, - "UpdateTime": { + "EndDate": { "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "結束時間", "type": "string" }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "Description": { + "title": "String", + "description": "描述", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "SpecialDay" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveBoard": { - "title": "RailLiveBoard", - "description": "台鐵車次動態車次站別即時電子看板資料", + "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station": { + "title": "Station", + "description": "路線車站資訊", "required": [ - "DelayTime", - "Direction", - "EndingStationID", - "EndingStationName", - "ScheduledArrivalTime", - "ScheduledDepartureTime", - "SrcUpdateTime", + "Sequence", "StationID", - "StationName", - "TrainNo", - "UpdateTime" + "StationName" ], "type": "object", "properties": { + "Sequence": { + "format": "int32", + "title": "Int32", + "description": "站序", + "type": "integer" + }, "StationID": { "title": "String", "description": "車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", @@ -8265,306 +8691,284 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "順逆行 : [0:'順行',1:'逆行']", - "type": "integer" - }, - "TrainTypeID": { - "title": "String", - "description": "列車車種代碼", - "type": "string" - }, - "TrainTypeCode": { - "title": "String", - "description": "列車車種簡碼", - "type": "string" - }, - "TrainTypeName": { - "title": "NameType", - "description": "列車車種名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + ], + "xml": { + "name": "NameType" + } }, - "TripLine": { + "CumulativeDistance": { + "format": "float", + "description": "已累積之里程距離(公里)", + "type": "number" + } + }, + "xml": { + "name": "Station" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Timetable": { + "title": "Timetable", + "description": "車站發車時刻資訊", + "required": [ + "ArrivalTime", + "DepartureTime", + "Sequence", + "TrainNo" + ], + "type": "object", + "properties": { + "Sequence": { "format": "int32", - "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", + "title": "Int32", + "description": "發車順序", "type": "integer" }, - "EndingStationID": { + "TrainNo": { "title": "String", - "description": "車次終點車站代號", - "type": "string" - }, - "EndingStationName": { - "title": "NameType", - "description": "車次終點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "description": "車次號碼(捷運通常沒有TrainNo車次資訊)", + "type": "string", + "xml": { + "name": "String" + } }, - "ScheduledArrivalTime": { + "ArrivalTime": { "title": "String", - "description": "表訂到站時間(格式: HH:mm:ss)", - "type": "string" + "description": "到站時刻(hh:mm)", + "type": "string", + "xml": { + "name": "String" + } }, - "ScheduledDepartureTime": { + "DepartureTime": { "title": "String", - "description": "表訂離站時間(格式: HH:mm:ss)", - "type": "string" + "description": "發車時刻(hh:mm)", + "type": "string", + "xml": { + "name": "String" + } }, - "DelayTime": { + "TrainType": { "format": "int32", - "title": "Int32", - "description": "誤點時間(0:準點;>=1誤點)", + "description": "車種(0:不分車種, 1:普通車, 2:直達車)", "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" } + }, + "xml": { + "name": "Timetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.LiveBoard": { - "title": "LiveBoard", - "description": "捷運列車到離站動態資料", + "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.TravelTime": { + "title": "TravelTime", + "description": "站間運行時間資訊", "required": [ - "DestinationStaionID", - "DestinationStationID", - "DestinationStationName", - "EstimateTime", - "LineID", - "LineName", - "SrcUpdateTime", - "StationID", - "StationName", - "TripHeadSign", - "UpdateTime" + "FromStationID", + "FromStationName", + "RunTime", + "Sequence", + "ToStationID", + "ToStationName" ], "type": "object", "properties": { - "LineNO": { - "title": "String", - "description": "路線編號", - "type": "string" - }, - "LineID": { - "title": "String", - "description": "路線代碼", - "type": "string" - }, - "LineName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "StationID": { - "title": "String", - "description": "所在車站代號", - "type": "string" - }, - "StationName": { - "title": "NameType", - "description": "所在車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "TripHeadSign": { - "title": "String", - "description": "下班車次方向描述", - "type": "string" - }, - "DestinationStaionID": { - "title": "String", - "description": "目的地車站代號", - "type": "string" + "Sequence": { + "format": "int32", + "title": "Int32", + "description": "站間序號", + "type": "integer" }, - "DestinationStationID": { + "FromStationID": { "title": "String", - "description": "目的地車站代號", - "type": "string" + "description": "起站車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "DestinationStationName": { + "FromStationName": { "title": "NameType", - "description": "目的地車站名稱", + "description": "起站車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "EstimateTime": { - "format": "int32", - "title": "Int32", - "description": "下班車次抵達時間預估(分)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveTrainDelay": { - "title": "RailLiveTrainDelay", - "description": "台鐵列車即時準點/延誤時間資料", - "required": [ - "DelayTime", - "SrcUpdateTime", - "StationID", - "StationName", - "TrainNo", - "UpdateTime" - ], - "type": "object", - "properties": { - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "StationID": { + "ToStationID": { "title": "String", - "description": "最近通過車站代碼", - "type": "string" + "description": "迄站車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "ToStationName": { "title": "NameType", - "description": "最近通過車站名稱[屬離站壓軌觸發]", + "description": "迄站車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "DelayTime": { + "RunTime": { "format": "int32", "title": "Int32", - "description": "誤點時間(0:準點;>=1誤點)", + "description": "站間行駛時間(秒)", "type": "integer" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "StopTime": { + "format": "int32", + "description": "起站停靠時間(秒)", + "type": "integer" } + }, + "xml": { + "name": "TravelTime" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.NetworkSubClass.Line": { - "title": "Line", - "description": "捷運路網資料-捷運路線資訊", + "PTX.Service.DTO.Rail.Specification.V2.Metro.Toilet": { + "title": "Toilet", + "description": "廁所位置資訊", "required": [ - "LineID" + "Description", + "FloorLevel" ], "type": "object", "properties": { - "LineNo": { + "Description": { "title": "String", - "description": "路線編號", - "type": "string" + "description": "位置描述", + "type": "string", + "xml": { + "name": "String" + } }, - "LineID": { + "FloorLevel": { "title": "String", - "description": "路線代碼", - "type": "string" + "description": "樓層", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "Toilet" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.Network": { - "title": "Network", - "description": "捷運路網資料", + "PTX.Service.DTO.Rail.Specification.V2.PointType": { + "title": "PointType", + "description": "座標資料型別", + "type": "object", + "properties": { + "PositionLat": { + "format": "double", + "description": "位置緯度(WGS84)", + "type": "number" + }, + "PositionLon": { + "format": "double", + "description": "位置經度(WGS84)", + "type": "number" + }, + "GeoHash": { + "title": "String", + "description": "地理空間編碼", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "PointType" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.THSR.AlertInfo": { + "title": "AlertInfo", + "description": "高鐵即時通阻事件資料", "required": [ - "Lines", - "NetworkID", - "NetworkMapURL", - "NetworkName", - "OperatorCode", - "OperatorName", + "Description", + "Direction", + "EffectedSection", + "Effects", + "Level", "SrcUpdateTime", - "UpdateTime", - "VersionID" + "Status", + "Title", + "UpdateTime" ], "type": "object", "properties": { - "NetworkID": { - "title": "String", - "description": "捷運路網代碼", + "Level": { + "title": "integer", + "description": "動態事件影響等級(本資料僅作參考,實際資料請參考高鐵http://www.thsrc.com.tw/tw/Operation) : [1:'全線正常運行',2:'有異常狀況']", "type": "string" }, - "NetworkName": { - "title": "NameType", - "description": "捷運路網名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "Status": { + "title": "String", + "description": "營運狀態 = ['空白: 正常' or '▲: 其他的異常狀態' or 'X: 全線停止運行']", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorCode": { + "Title": { "title": "String", - "description": "營運業者簡碼", - "type": "string" + "description": "標題", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorName": { - "title": "NameType", - "description": "營運業者名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "Description": { + "title": "String", + "description": "事件簡易描述", + "type": "string", + "xml": { + "name": "String" + } }, - "NetworkMapURL": { + "Effects": { "title": "String", - "description": "捷運路網圖網址URL", - "type": "string" + "description": "影響狀態", + "type": "string", + "xml": { + "name": "String" + } }, - "Lines": { - "title": "Array", - "description": "捷運路線資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.NetworkSubClass.Line" + "Direction": { + "title": "String", + "description": "運行方向", + "type": "string", + "xml": { + "name": "String" + } + }, + "EffectedSection": { + "title": "String", + "description": "影響區間", + "type": "string", + "xml": { + "name": "String" } }, + "OccuredTime": { + "title": "DateTime", + "description": "發生日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "PublishTime": { + "title": "DateTime", + "description": "訊息發布日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, "SrcUpdateTime": { "title": "DateTime", "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", @@ -8574,100 +8978,167 @@ "title": "DateTime", "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" } + }, + "xml": { + "name": "AlertInfo" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.Line_Simple": { - "title": "Line_Simple", - "description": "路線基本資料", + "PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat": { + "title": "AvailableSeat", + "description": "高鐵對號座位狀態資訊", "required": [ - "LineID", - "LineNo" + "Direction", + "EndingStationCode", + "EndingStationID", + "EndingStationName", + "StartingStationCode", + "StartingStationID", + "StartingStationName", + "StopStations", + "TrainNo" ], "type": "object", "properties": { - "LineNo": { + "TrainNo": { "title": "String", - "description": "路線編號", - "type": "string" + "description": "車次號碼", + "type": "string", + "xml": { + "name": "String" + } }, - "LineID": { - "title": "String", - "description": "路線代碼", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.Network": { - "title": "Network", - "description": "臺鐵路網資料", - "required": [ - "Lines", - "NetworkID", - "NetworkMapUrl", - "NetworkNameEn", - "NetworkNameZh", - "OperatorID", - "OperatorNameEn", - "OperatorNameZh", - "UpdateTime" - ], - "type": "object", - "properties": { - "NetworkID": { - "title": "String", - "description": "臺鐵路網代碼", + "Direction": { + "title": "integer", + "description": "方向 : [0:'南下',1:'北上']", "type": "string" }, - "NetworkNameZh": { + "StartingStationID": { "title": "String", - "description": "臺鐵路網中文名稱", - "type": "string" + "description": "起點車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "NetworkNameEn": { + "StartingStationCode": { "title": "String", - "description": "臺鐵路網英文名稱", - "type": "string" + "description": "起站車站簡碼(訂票系統用)", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" + "StartingStationName": { + "title": "NameType", + "description": "起點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "OperatorNameZh": { + "EndingStationID": { "title": "String", - "description": "臺鐵路網中文名稱", - "type": "string" + "description": "終點車站簡碼(訂票系統用)", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorNameEn": { + "EndingStationCode": { "title": "String", - "description": "臺鐵路網英文名稱", - "type": "string" + "description": "終點車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "NetworkMapUrl": { - "title": "String", - "description": "臺鐵路網圖網址URL", - "type": "string" + "EndingStationName": { + "title": "NameType", + "description": "終點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "Lines": { + "StopStations": { "title": "Array", - "description": "臺鐵路線資訊", + "description": "車次停靠站點組合", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.Line_Simple" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "AvailableSeat" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.THSR.GeneralTimetable": { + "title": "GeneralTimetable", + "description": "高鐵定期時刻表資料型別", + "required": [ + "GeneralTrainInfo", + "ServiceDay", + "SrcUpdateTime", + "StopTimes" + ], + "type": "object", + "properties": { + "GeneralTrainInfo": { + "title": "RailGeneralTrainInfo", + "description": "定期車次資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTrainInfo" + } + ], + "xml": { + "name": "RailGeneralTrainInfo" } }, - "UpdateTime": { + "StopTimes": { + "title": "Array", + "description": "停靠時間資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime" + }, + "xml": { + "name": "List`1" + } + }, + "ServiceDay": { + "title": "ServiceDay", + "description": "營運日型態", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" + } + }, + "SrcUpdateTime": { "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "GeneralTimetable" } }, "PTX.Service.DTO.Rail.Specification.V2.THSR.News": { @@ -8697,27 +9168,42 @@ "Language": { "title": "String", "description": "語系", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "NewsCategory": { "title": "String", "description": "消息類別", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Title": { "title": "String", "description": "消息標題", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Description": { "title": "String", "description": "消息內容描述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "NewsUrl": { "title": "String", "description": "消息網址連結", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "AttachmentUrlList": { "title": "Array", @@ -8725,7 +9211,13 @@ "type": "array", "items": { "title": "String", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } + }, + "xml": { + "name": "List`1" } }, "StartTime": { @@ -8748,321 +9240,500 @@ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "News" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News": { - "title": "News", + "PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat": { + "title": "AvailableSeat", + "description": "高鐵站間對號座位狀態資訊", "required": [ - "Description", - "NewsCategory", - "NewsID", - "PublishTime", - "Title", - "UpdateTime" + "BusinessSeatStatus", + "DestinationStationCode", + "DestinationStationID", + "DestinationStationName", + "Direction", + "OriginStationCode", + "OriginStationID", + "OriginStationName", + "StandardSeatStatus", + "TrainNo" ], "type": "object", "properties": { - "NewsID": { + "TrainNo": { "title": "String", - "description": "消息代碼", - "type": "string" + "description": "車次號碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Language": { + "Direction": { "format": "int32", - "title": "integer", - "description": "語系 : [1:'Zh_tw',2:'En_us',3:'Zh_cn',4:'Ja',5:'Ko',99:'Other']", + "title": "Int32", + "description": "行駛方向", "type": "integer" }, - "Department": { + "OriginStationID": { "title": "String", - "description": "發布單位", - "type": "string" + "description": "起點車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Title": { + "OriginStationCode": { "title": "String", - "description": "消息標題", - "type": "string" - }, - "NewsCategory": { - "format": "int32", - "title": "integer", - "description": "消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他']", - "type": "integer" + "description": "起站車站簡碼(訂票系統用)", + "type": "string", + "xml": { + "name": "String" + } }, - "Description": { - "title": "String", - "description": "內容描述", - "type": "string" + "OriginStationName": { + "title": "NameType", + "description": "起點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "NewsURL": { + "DestinationStationID": { "title": "String", - "description": "消息網址連結", - "type": "string" + "description": "迄點車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "AttachmentURL": { + "DestinationStationCode": { "title": "String", - "description": "附件網址連結", - "type": "string" - }, - "StartTime": { - "title": "DateTime", - "description": "消息起始日期時間", - "type": "string" + "description": "迄站車站簡碼(訂票系統用)", + "type": "string", + "xml": { + "name": "String" + } }, - "EndTime": { - "title": "DateTime", - "description": "消息結束日期時間", - "type": "string" + "DestinationStationName": { + "title": "NameType", + "description": "迄點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "PublishTime": { - "title": "DateTime", - "description": "消息發佈日期時間", - "type": "string" + "StandardSeatStatus": { + "title": "String", + "description": "標準席剩餘座位狀態", + "type": "string", + "xml": { + "name": "String" + } }, - "UpdateTime": { - "title": "DateTime", - "description": "本筆資料之更新日期時間", - "type": "string" + "BusinessSeatStatus": { + "title": "String", + "description": "商務席剩餘座位狀態", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "AvailableSeat" } }, - "PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News]": { - "title": "MRTNewsList", + "PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat": { + "title": "AvailableSeat", + "description": "高鐵對號座位狀態資訊", "required": [ - "AuthorityCode", - "Newses", - "SrcUpdateInterval", + "DepartureTime", + "Direction", + "EndingStationID", + "EndingStationName", "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "StationID", + "StationName", + "StopStations", + "TrainNo" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "TrainNo": { + "title": "String", + "description": "車次號碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "方向 : [0:'南下',1:'北上']", "type": "string" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" + "StationID": { + "title": "String", + "description": "查詢車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "StationName": { + "title": "NameType", + "description": "查詢車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "DepartureTime": { + "title": "String", + "description": "發車時間(格式: HH:mm)", + "type": "string", + "xml": { + "name": "String" + } }, - "AuthorityCode": { + "EndingStationID": { "title": "String", - "description": "業管機關簡碼", + "description": "終點車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndingStationName": { + "title": "NameType", + "description": "終點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StopStations": { + "title": "Array", + "description": "車次停靠站點組合", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation" + }, + "xml": { + "name": "List`1" + } + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源平台更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + } + }, + "xml": { + "name": "AvailableSeat" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTimetable": { + "title": "RailDailyTimetable", + "description": "高鐵到離站時刻資料型別", + "required": [ + "DailyTrainInfo", + "StopTimes", + "TrainDate", + "UpdateTime", + "VersionID" + ], + "type": "object", + "properties": { + "TrainDate": { + "title": "String", + "description": "行駛日期(格式: yyyy:MM:dd)", + "type": "string", + "xml": { + "name": "String" + } }, - "Newses": { + "DailyTrainInfo": { + "title": "RailDailyTrainInfo", + "description": "車次資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo" + } + ], + "xml": { + "name": "RailDailyTrainInfo" + } + }, + "StopTimes": { "title": "Array", - "description": "資料(陣列)", + "description": "停靠時間資料", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime" + }, + "xml": { + "name": "List`1" } }, - "Count": { - "format": "int64", - "description": "資料總筆數", + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "RailDailyTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat": { - "title": "AvailableSeat", - "description": "高鐵站間對號座位狀態資訊", + "PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTrainInfo": { + "title": "RailDailyTrainInfo", + "description": "高鐵車次資料型別", "required": [ - "BusinessSeatStatus", - "DestinationStationCode", - "DestinationStationID", - "DestinationStationName", "Direction", - "OriginStationCode", - "OriginStationID", - "OriginStationName", - "StandardSeatStatus", - "TrainNo" + "TrainNo", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { "TrainNo": { "title": "String", - "description": "車次號碼", - "type": "string" + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } }, "Direction": { - "format": "int32", - "title": "Int32", - "description": "行駛方向", - "type": "integer" - }, - "OriginStationID": { - "title": "String", - "description": "起點車站代碼", + "title": "integer", + "description": "行駛方向 : [0:'南下',1:'北上']", "type": "string" }, - "OriginStationCode": { + "StartingStationID": { "title": "String", - "description": "起站車站簡碼(訂票系統用)", - "type": "string" + "description": "列車起點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "OriginStationName": { + "StartingStationName": { "title": "NameType", - "description": "起點車站名稱", + "description": "列車起點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "DestinationStationID": { + "EndingStationID": { "title": "String", - "description": "迄點車站代碼", - "type": "string" + "description": "列車終點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "DestinationStationCode": { - "title": "String", - "description": "迄站車站簡碼(訂票系統用)", - "type": "string" + "EndingStationName": { + "title": "NameType", + "description": "列車終點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "DestinationStationName": { + "Note": { "title": "NameType", - "description": "迄點車站名稱", + "description": "附註說明", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "StandardSeatStatus": { - "title": "String", - "description": "標準席剩餘座位狀態", + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "BusinessSeatStatus": { - "title": "String", - "description": "商務席剩餘座位狀態", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "RailDailyTrainInfo" } }, - "PTX.API.Rail.Model.V2THSRODAvailableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat]": { - "title": "AvailableSeatStatus", + "PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTimetable": { + "title": "RailGeneralTimetable", + "description": "高鐵到離站時刻資料型別", "required": [ - "AvailableSeats" + "EffectiveDate", + "ExpiringDate", + "GeneralTimetable", + "VersionID" ], "type": "object", "properties": { "UpdateTime": { "title": "DateTime", - "description": "PTX平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "發布時間(格式: yyyy-MM-dd)", "type": "string" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "PTX平台更新調期(秒)", - "type": "integer" + "EffectiveDate": { + "title": "String", + "description": "有效日期(格式: yyyy:MM:dd)", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "ExpiringDate": { + "title": "String", + "description": "結束日期(格式: yyyy:MM:dd)", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateInterval": { + "VersionID": { "format": "int32", "title": "Int32", - "description": "來源平台更新週期(秒)", - "type": "integer" - }, - "Count": { - "format": "int64", - "description": "資料總筆數", + "description": "資料版本編號", "type": "integer" }, - "TrainDate": { - "title": "String", - "description": "營運日說明(格式: yyyy-MM-dd)", - "type": "string" - }, - "AvailableSeats": { - "title": "Array", - "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat" + "GeneralTimetable": { + "title": "GeneralTimetable", + "description": "定期時刻表資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.GeneralTimetable" + } + ], + "xml": { + "name": "GeneralTimetable" } } + }, + "xml": { + "name": "RailGeneralTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailODDailyTimetable": { - "title": "RailODDailyTimetable", - "description": "台鐵起訖站間到離站時刻資料型別", + "PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTrainInfo": { + "title": "RailGeneralTrainInfo", + "description": "高鐵車次定期資料型別", "required": [ - "DailyTrainInfo", - "DestinationStopTime", - "OriginStopTime", - "TrainDate", - "UpdateTime", - "VersionID" + "Direction", + "TrainNo" ], "type": "object", "properties": { - "TrainDate": { + "TrainNo": { "title": "String", - "description": "行駛日期(格式: yyyy:MM:dd)", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "行駛方向 : [0:'南下',1:'北上']", "type": "string" }, - "DailyTrainInfo": { - "title": "RailDailyTrainInfo", - "description": "車次資料", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo" - } - ] + "StartingStationID": { + "title": "String", + "description": "列車起點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "OriginStopTime": { - "title": "RailStopTime", - "description": "起站停靠時間資料", + "StartingStationName": { + "title": "NameType", + "description": "列車起點車站名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "DestinationStopTime": { - "title": "RailStopTime", - "description": "迄站停靠時間資料", + "EndingStationID": { + "title": "String", + "description": "列車終點車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndingStationName": { + "title": "NameType", + "description": "列車終點車站名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + ], + "xml": { + "name": "NameType" + } + }, + "Note": { + "title": "NameType", + "description": "附註說明", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } } + }, + "xml": { + "name": "RailGeneralTrainInfo" } }, "PTX.Service.DTO.Rail.Specification.V2.THSR.RailODDailyTimetable": { @@ -9081,7 +9752,10 @@ "TrainDate": { "title": "String", "description": "行駛日期(格式: yyyy:MM:dd)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "DailyTrainInfo": { "title": "RailDailyTrainInfo", @@ -9090,7 +9764,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo" } - ] + ], + "xml": { + "name": "RailDailyTrainInfo" + } }, "OriginStopTime": { "title": "RailStopTime", @@ -9099,7 +9776,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime" } - ] + ], + "xml": { + "name": "RailStopTime" + } }, "DestinationStopTime": { "title": "RailStopTime", @@ -9108,7 +9788,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime" } - ] + ], + "xml": { + "name": "RailStopTime" + } }, "UpdateTime": { "title": "DateTime", @@ -9121,28 +9804,14 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "RailODDailyTimetable" } }, - "PTX.Service.DTO.Shared.Specification.V2.Base.Fare": { - "title": "Fare", - "description": "票價資料型別", - "type": "object", - "properties": { - "TicketType": { - "title": "String", - "description": "票種名稱", - "type": "string" - }, - "Price": { - "format": "double", - "description": "收費價格(新台幣)", - "type": "number" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailODFare": { + "PTX.Service.DTO.Rail.Specification.V2.THSR.RailODFare": { "title": "RailODFare", - "description": "臺鐵起訖站票價資料", + "description": "高鐵起訖站票價資料", "required": [ "DestinationStationID", "DestinationStationName", @@ -9150,6 +9819,7 @@ "Fares", "OriginStationID", "OriginStationName", + "SrcUpdateTime", "UpdateTime", "VersionID" ], @@ -9158,7 +9828,10 @@ "OriginStationID": { "title": "String", "description": "起點車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OriginStationName": { "title": "NameType", @@ -9167,12 +9840,18 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "DestinationStationID": { "title": "String", "description": "迄點車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "DestinationStationName": { "title": "NameType", @@ -9181,22 +9860,32 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", - "description": "順逆行 : [0:'順行',1:'逆行']", - "type": "integer" + "description": "行駛方向 : [0:'南下',1:'北上']", + "type": "string" }, "Fares": { "title": "Array", - "description": "票價收費資訊", + "description": "票價收費資訊(本項僅列標準、商務及自由之基本票價,其他優待票及團體票之折扣計算請參考高鐵網站票價產品一覽表http://www.thsrc.com.tw/tw/Article/ArticleContent/caa6fac8-b875-4ad6-b1e6-96c2902d12a6 說明)", "type": "array", "items": { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.Fare" + }, + "xml": { + "name": "List`1" } }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, "UpdateTime": { "title": "DateTime", "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", @@ -9208,70 +9897,85 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "RailODFare" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.RailODFare": { - "title": "RailODFare", - "description": "高鐵起訖站票價資料", + "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStation": { + "title": "RailStation", + "description": "高鐵車站資料", "required": [ - "DestinationStationID", - "DestinationStationName", - "Direction", - "Fares", - "OriginStationID", - "OriginStationName", - "SrcUpdateTime", + "OperatorID", + "StationAddress", + "StationCode", + "StationID", + "StationName", + "StationUID", "UpdateTime", "VersionID" ], "type": "object", "properties": { - "OriginStationID": { + "StationUID": { "title": "String", - "description": "起點車站代碼", - "type": "string" + "description": "車站唯一識別代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "OriginStationName": { - "title": "NameType", - "description": "起點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "DestinationStationID": { + "StationCode": { "title": "String", - "description": "迄點車站代碼", - "type": "string" + "description": "車站簡碼(訂票系統用)", + "type": "string", + "xml": { + "name": "String" + } }, - "DestinationStationName": { + "StationName": { "title": "NameType", - "description": "迄點車站名稱", + "description": "車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'南下',1:'北上']", - "type": "integer" + "StationAddress": { + "title": "String", + "description": "車站地址", + "type": "string", + "xml": { + "name": "String" + } }, - "Fares": { - "title": "Array", - "description": "票價收費資訊(本項僅列標準、商務及自由之基本票價,其他優待票及團體票之折扣計算請參考高鐵網站票價產品一覽表http://www.thsrc.com.tw/tw/Article/ArticleContent/caa6fac8-b875-4ad6-b1e6-96c2902d12a6 說明)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.Fare" + "StationPhone": { + "title": "String", + "description": "車站聯絡電話", + "type": "string", + "xml": { + "name": "String" } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, "UpdateTime": { "title": "DateTime", @@ -9283,119 +9987,172 @@ "title": "Int32", "description": "資料版本編號", "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Fare": { - "title": "Fare", - "description": "票價資訊", - "required": [ - "FareClass", - "Price", - "TicketType" - ], - "type": "object", - "properties": { - "TicketType": { - "format": "int32", - "title": "Int32", - "description": "票種(1:一般票(單程票), 2:來回票(悠遊卡/一卡通), 3:電子票証, 4:回數票, 5:定期票(30天期), 6:定期票(60天期))", - "type": "integer" }, - "FareClass": { - "format": "int32", - "title": "Int32", - "description": "費率等級(1:成人(Adult), 2:學生(Student), 3:孩童(Child), 4:敬老(Senior), 5:愛心(Disabled), 6:愛心孩童(Disabled Child), 7:愛心優待/愛心陪伴, 8:團體(Group))", - "type": "integer" + "StationPosition": { + "title": "PointType", + "description": "車站位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.PointType" + } + ], + "xml": { + "name": "PointType" + } }, - "SaleType": { + "LocationCity": { "title": "String", - "description": "販售方式 (1: 現場櫃台販售, 2: 現場機器販售, 3: 線上販售, 99: 其他)", - "type": "string" + "description": "車站位置所屬縣市", + "type": "string", + "xml": { + "name": "String" + } }, - "CitizenCode": { + "LocationCityCode": { "title": "String", - "description": "市民所屬縣市代碼 (TPE: 臺北市, NWT: 新北市, OTHERS: 其他)", - "type": "string" + "description": "車站位置所屬縣市代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Price": { - "format": "int32", - "title": "Int32", - "description": "票價", - "type": "integer" + "LocationTown": { + "title": "String", + "description": "車站位置所屬鄉鎮", + "type": "string", + "xml": { + "name": "String" + } + }, + "LocationTownCode": { + "title": "String", + "description": "車站位置所屬鄉鎮代碼", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "RailStation" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.ODFare": { - "title": "ODFare", - "description": "起迄站間票價資料", + "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStationTimetable": { + "title": "RailStationTimetable", + "description": "高鐵車站站別時刻表資料型別", "required": [ - "DestinationStationID", - "DestinationStationName", - "Fares", - "OriginStationID", - "OriginStationName", - "SrcUpdateTime", + "ArrivalTime", + "DepartureTime", + "Direction", + "EndingStationID", + "EndingStationName", + "StartingStationID", + "StartingStationName", + "StationID", + "StationName", + "TrainDate", + "TrainNo", "UpdateTime", "VersionID" ], "type": "object", "properties": { - "OriginStationID": { + "TrainDate": { "title": "String", - "description": "起站車站代碼", - "type": "string" + "description": "時刻表日期(格式: yyyy-MM-dd)", + "type": "string", + "xml": { + "name": "String" + } }, - "OriginStationName": { + "StationID": { + "title": "String", + "description": "車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { "title": "NameType", - "description": "起站車站名稱", + "description": "車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "DestinationStationID": { + "TrainNo": { "title": "String", - "description": "迄站車站代碼", + "description": "車次代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "順逆行 : [0:'南下',1:'北上']", "type": "string" }, - "DestinationStationName": { + "StartingStationID": { + "title": "String", + "description": "起點車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartingStationName": { "title": "NameType", - "description": "迄站車站名稱", + "description": "起點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "TrainType": { - "format": "int32", - "description": "車種(0:不分車種, 1:普通車, 2:直達車)", - "type": "integer" - }, - "Fares": { - "title": "Array", - "description": "票價資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Fare" + ], + "xml": { + "name": "NameType" + } + }, + "EndingStationID": { + "title": "String", + "description": "終點車站代號", + "type": "string", + "xml": { + "name": "String" } }, - "TravelTime": { - "format": "int32", - "description": "起迄站間乘車時間(分)", - "type": "integer" + "EndingStationName": { + "title": "NameType", + "description": "終點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "TravelDistance": { - "format": "float", - "description": "起迄站間乘車距離(公里)", - "type": "number" + "ArrivalTime": { + "title": "String", + "description": "到站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "DepartureTime": { + "title": "String", + "description": "離站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" + } }, "UpdateTime": { "title": "DateTime", @@ -9408,437 +10165,529 @@ "description": "資料版本編號", "type": "integer" } + }, + "xml": { + "name": "RailStationTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat": { - "title": "AvailableSeat", - "description": "高鐵對號座位狀態資訊", + "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime": { + "title": "RailStopTime", + "description": "高鐵停靠時間資料", "required": [ "DepartureTime", - "Direction", - "EndingStationID", - "EndingStationName", - "SrcUpdateTime", "StationID", "StationName", - "StopStations", - "TrainNo" + "StopSequence" ], "type": "object", "properties": { - "TrainNo": { - "title": "String", - "description": "車次號碼", - "type": "string" - }, - "Direction": { + "StopSequence": { "format": "int32", - "title": "integer", - "description": "方向 : [0:'南下',1:'北上']", + "title": "Int32", + "description": "跑法站序(由1開始)", "type": "integer" }, "StationID": { "title": "String", - "description": "查詢車站代碼", - "type": "string" + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", - "description": "查詢車站名稱", + "description": "車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "DepartureTime": { + "ArrivalTime": { "title": "String", - "description": "發車時間(格式: HH:mm)", - "type": "string" + "description": "到站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" + } }, - "EndingStationID": { + "DepartureTime": { "title": "String", - "description": "終點車站代碼", - "type": "string" - }, - "EndingStationName": { - "title": "NameType", - "description": "終點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "StopStations": { - "title": "Array", - "description": "車次停靠站點組合", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation" + "description": "離站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" } - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源平台更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" } + }, + "xml": { + "name": "RailStopTime" } }, - "PTX.API.Rail.Model.V2THSRAvailableSeatStatusOldWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat]": { - "title": "AvailableSeatStatus", + "PTX.Service.DTO.Rail.Specification.V2.THSR.ServiceDay": { + "title": "ServiceDay", + "description": "高鐵服務日型態", "required": [ - "AvailableSeats" + "Friday", + "Monday", + "Saturday", + "Sunday", + "Thursday", + "Tuesday", + "Wednesday" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "Monday": { + "title": "integer", + "description": "星期一是否營運 : [0:'否',1:'是']", "type": "string" }, - "AvailableSeats": { - "title": "Array", - "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat" - } + "Tuesday": { + "title": "integer", + "description": "星期二是否營運 : [0:'否',1:'是']", + "type": "string" }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "Wednesday": { + "title": "integer", + "description": "星期三是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Thursday": { + "title": "integer", + "description": "星期四是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Friday": { + "title": "integer", + "description": "星期五是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Saturday": { + "title": "integer", + "description": "星期六是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Sunday": { + "title": "integer", + "description": "星期日是否營運 : [0:'否',1:'是']", + "type": "string" } + }, + "xml": { + "name": "ServiceDay" } }, - "PTX.Service.DTO.Shared.Specification.V2.Base.Operator": { - "title": "Operator", - "description": "營運業者資料型別", + "PTX.Service.DTO.Rail.Specification.V2.THSR.StationExit": { + "title": "StationExit", + "description": "高鐵車站出入口資料", "required": [ - "AuthorityCode", - "OperatorCode", - "OperatorID", - "OperatorName", - "OperatorNo", - "ProviderID", + "Elevator", + "Escalator", + "ExitID", + "ExitName", + "ExitPosition", + "LocationDescription", + "SrcUpdateTime", + "Stair", + "StationID", + "StationName", "UpdateTime" ], "type": "object", "properties": { - "ProviderID": { - "title": "String", - "description": "資料提供平台代碼", - "type": "string" - }, - "OperatorID": { + "StationID": { "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorName": { + "StationName": { "title": "NameType", - "description": "營運業者名稱", + "description": "車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "OperatorPhone": { - "title": "String", - "description": "營運業者連絡電話", - "type": "string" - }, - "OperatorEmail": { - "title": "String", - "description": "營運業者電子信箱", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "OperatorUrl": { + "ExitID": { "title": "String", - "description": "營運業者網址鏈結", - "type": "string" + "description": "出入口代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "ReservationUrl": { - "title": "String", - "description": "訂票網址鏈結", - "type": "string" + "ExitName": { + "title": "NameType", + "description": "出入口名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "ReservationPhone": { - "title": "String", - "description": "訂票連絡電話", - "type": "string" + "ExitPosition": { + "title": "PointType", + "description": "出入口座標", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" + } + ], + "xml": { + "name": "PointType" + } }, - "OperatorCode": { + "LocationDescription": { "title": "String", - "description": "營運業者簡碼", - "type": "string" + "description": "地址描述", + "type": "string", + "xml": { + "name": "String" + } }, - "AuthorityCode": { - "title": "String", - "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)", - "type": "string" + "Stair": { + "description": "是否有樓梯", + "type": "boolean" }, - "SubAuthorityCode": { - "title": "String", - "description": "營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)", - "type": "string" + "Escalator": { + "description": "是否有電扶梯", + "type": "boolean" }, - "OperatorNo": { - "title": "String", - "description": "營運業者編號[交通部票證資料系統定義]", + "Elevator": { + "description": "是否有電梯", + "type": "boolean" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, "UpdateTime": { "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "StationExit" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.Route": { - "title": "Route", - "description": "營運路線基本資料", + "PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation": { + "title": "StopStation", + "description": "車次停靠站點組合", "required": [ - "EndStationID", - "EndStationName", - "LineID", - "OperatorCode", - "RailRouteType", - "RouteID", - "RouteLength", - "RouteName", - "SrcUpdateTime", - "StartStationID", - "StartStationName", - "TravelTime", - "UpdateTime", - "VersionID" + "BusinessSeatStatus", + "NextStationCode", + "NextStationID", + "NextStationName", + "StandardSeatStatus", + "StationCode", + "StationID", + "StationName", + "StopSequence" ], "type": "object", "properties": { - "RouteID": { + "StopSequence": { + "format": "int32", + "title": "Int32", + "description": "跑法站序", + "type": "integer" + }, + "StationID": { "title": "String", - "description": "營運路線代碼", - "type": "string" + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorCode": { + "StationCode": { "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "車站簡碼(訂票系統用)", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteName": { + "StationName": { "title": "NameType", - "description": "營運路線名稱", + "description": "車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "RailRouteType": { - "format": "int32", - "title": "Int32", - "description": "軌道路線類別(33:都市捷運;34:機場捷運)", - "type": "integer" - }, - "LineNo": { - "title": "String", - "description": "營運路線所屬之路線編號", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "LineID": { + "NextStationID": { "title": "String", - "description": "營運路線所屬之路線代碼", - "type": "string" + "description": "下一停靠站車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartStationID": { + "NextStationCode": { "title": "String", - "description": "營運路線起站代號", - "type": "string" + "description": "下一停靠站車站簡碼(訂票系統用)", + "type": "string", + "xml": { + "name": "String" + } }, - "StartStationName": { + "NextStationName": { "title": "NameType", - "description": "營運路線起站名稱", + "description": "下一停靠站車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "EndStationID": { + "StandardSeatStatus": { "title": "String", - "description": "營運路線迄站代號", - "type": "string" + "description": "標準席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']", + "type": "string", + "xml": { + "name": "String" + } }, - "EndStationName": { + "BusinessSeatStatus": { + "title": "String", + "description": "商務席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "StopStation" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.THSR.THSRShape": { + "title": "THSRShape", + "required": [ + "EncodedPolyline", + "Geometry", + "LineID", + "LineName", + "UpdateTime" + ], + "type": "object", + "properties": { + "LineID": { + "title": "String", + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineName": { "title": "NameType", - "description": "營運路線迄站名稱", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "TravelTime": { - "format": "float", - "title": "Single", - "description": "營運路線運行時間", - "type": "number" - }, - "RouteLength": { - "format": "float", - "title": "Single", - "description": "營運路線長度距離", - "type": "number" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, "UpdateTime": { "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "Geometry": { + "title": "String", + "description": "well-known text,為路線軌跡資料", + "type": "string", + "xml": { + "name": "String" + } + }, + "EncodedPolyline": { + "title": "String", + "description": "路線軌跡編碼(encoded polyline)", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "THSRShape" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.TravelTime": { - "title": "TravelTime", - "description": "站間運行時間資訊", + "PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo": { + "title": "RailDailyTrainInfo", + "description": "高鐵車次資料型別(時刻表用)", "required": [ - "FromStationID", - "FromStationName", - "RunTime", - "Sequence", - "ToStationID", - "ToStationName" + "Direction", + "TrainNo" ], "type": "object", "properties": { - "Sequence": { - "format": "int32", - "title": "Int32", - "description": "站間序號", - "type": "integer" - }, - "FromStationID": { + "TrainNo": { "title": "String", - "description": "起站車站代號", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "行駛方向 : [0:'南下',1:'北上']", "type": "string" }, - "FromStationName": { + "StartingStationID": { + "title": "String", + "description": "列車起點車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartingStationName": { "title": "NameType", - "description": "起站車站名稱", + "description": "列車起點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ToStationID": { + "EndingStationID": { "title": "String", - "description": "迄站車站代號", - "type": "string" + "description": "列車終點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "ToStationName": { + "EndingStationName": { "title": "NameType", - "description": "迄站車站名稱", + "description": "列車終點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "RunTime": { - "format": "int32", - "title": "Int32", - "description": "站間行駛時間(秒)", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "StopTime": { - "format": "int32", - "description": "起站停靠時間(秒)", - "type": "integer" + "Note": { + "title": "NameType", + "description": "附註說明", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } } + }, + "xml": { + "name": "RailDailyTrainInfo" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.S2STravelTime": { - "title": "S2STravelTime", - "description": "列車站間運行時間基本資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.GeneralTimetable": { + "title": "GeneralTimetable", + "description": "台鐵定期時刻表資料型別", "required": [ - "LineID", - "RouteID", - "SrcUpdateTime", - "TravelTimes", - "UpdateTime", - "VersionID" - ], - "type": "object", - "properties": { - "LineNo": { - "title": "String", - "description": "營運路線所屬之路線編號", - "type": "string" - }, - "LineID": { - "title": "String", - "description": "營運路線所屬之路線代碼", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "營運路線代碼", - "type": "string" - }, - "TrainType": { - "format": "int32", - "description": "車種(0:不分車種, 1:普通車, 2:直達車)", - "type": "integer" + "GeneralTrainInfo", + "ServiceDay", + "StopTimes" + ], + "type": "object", + "properties": { + "GeneralTrainInfo": { + "title": "RailGeneralTrainInfo", + "description": "定期車次資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo" + } + ], + "xml": { + "name": "RailGeneralTrainInfo" + } }, - "TravelTimes": { + "StopTimes": { "title": "Array", - "description": "站間運行時間資訊", + "description": "停靠時間資料", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.TravelTime" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime" + }, + "xml": { + "name": "List`1" + } + }, + "ServiceDay": { + "title": "ServiceDay", + "description": "營運日型態", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" } }, "SrcUpdateTime": { "title": "DateTime", "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" } + }, + "xml": { + "name": "GeneralTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.TRAShape": { - "title": "TRAShape", - "description": "臺鐵線型資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.Line": { + "title": "Line", + "description": "路線基本資料", "required": [ - "EncodedPolyline", - "Geometry", + "IsBranch", "LineID", - "LineName", + "LineNameEn", + "LineNameZh", "LineNo", + "LineSectionNameEn", + "LineSectionNameZh", "UpdateTime" ], "type": "object", @@ -9846,212 +10695,287 @@ "LineNo": { "title": "String", "description": "路線編號", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "LineID": { "title": "String", "description": "路線代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, - "LineName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "LineNameZh": { + "title": "String", + "description": "路線中文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "LineNameEn": { + "title": "String", + "description": "路線英文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "Geometry": { + "LineSectionNameZh": { "title": "String", - "description": "well-known text,為路線軌跡資料", - "type": "string" + "description": "路線區間中文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "EncodedPolyline": { + "LineSectionNameEn": { "title": "String", - "description": "路線軌跡編碼(encoded polyline)", + "description": "路線區間英文名稱", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineColor": { + "title": "String", + "description": "路線顏色", + "type": "string", + "xml": { + "name": "String" + } + }, + "IsBranch": { + "title": "Boolean", + "description": "是否位於支線", + "type": "boolean" + }, + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "Line" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.THSRShape": { - "title": "THSRShape", + "PTX.Service.DTO.Rail.Specification.V2.TRA.Line_Simple": { + "title": "Line_Simple", + "description": "路線基本資料", "required": [ - "EncodedPolyline", - "Geometry", "LineID", - "LineName", - "UpdateTime" + "LineNo" ], "type": "object", "properties": { + "LineNo": { + "title": "String", + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } + }, "LineID": { "title": "String", "description": "路線代碼", - "type": "string" - }, - "LineName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Line_Simple" + } + }, + "PTX.Service.DTO.Rail.Specification.V2.TRA.LineStation": { + "title": "LineStation", + "description": "路線車站資訊", + "required": [ + "Sequence", + "StationID", + "StationName", + "TraveledDistance" + ], + "type": "object", + "properties": { + "Sequence": { + "format": "int32", + "title": "Int32", + "description": "站序", + "type": "integer" }, - "Geometry": { + "StationID": { "title": "String", - "description": "well-known text,為路線軌跡資料", - "type": "string" + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "EncodedPolyline": { + "StationName": { "title": "String", - "description": "路線軌跡編碼(encoded polyline)", - "type": "string" + "description": "車站名稱", + "type": "string", + "xml": { + "name": "String" + } + }, + "TraveledDistance": { + "format": "float", + "title": "Single", + "description": "已累積之里程距離(公里)", + "type": "number" } + }, + "xml": { + "name": "LineStation" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.MetroShape": { - "title": "MetroShape", - "description": "捷運線型資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.Network": { + "title": "Network", + "description": "臺鐵路網資料", "required": [ - "EncodedPolyline", - "Geometry", - "LineID", - "LineName", + "Lines", + "NetworkID", + "NetworkMapUrl", + "NetworkNameEn", + "NetworkNameZh", + "OperatorID", + "OperatorNameEn", + "OperatorNameZh", "UpdateTime" ], "type": "object", "properties": { - "LineNo": { + "NetworkID": { "title": "String", - "description": "路線編號", - "type": "string" + "description": "臺鐵路網代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "LineID": { + "NetworkNameZh": { "title": "String", - "description": "路線代碼", - "type": "string" + "description": "臺鐵路網中文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "LineName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "NetworkNameEn": { + "title": "String", + "description": "臺鐵路網英文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "UpdateTime": { - "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Geometry": { + "OperatorNameZh": { "title": "String", - "description": "well-known text,為路線軌跡資料", - "type": "string" + "description": "臺鐵路網中文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "EncodedPolyline": { + "OperatorNameEn": { "title": "String", - "description": "路線軌跡編碼(encoded polyline)", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.PointType": { - "title": "PointType", - "description": "座標資料型別", - "type": "object", - "properties": { - "PositionLat": { - "format": "double", - "description": "位置緯度(WGS84)", - "type": "number" + "description": "臺鐵路網英文名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "PositionLon": { - "format": "double", - "description": "位置經度(WGS84)", - "type": "number" + "NetworkMapUrl": { + "title": "String", + "description": "臺鐵路網圖網址URL", + "type": "string", + "xml": { + "name": "String" + } + }, + "Lines": { + "title": "Array", + "description": "臺鐵路線資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.Line_Simple" + }, + "xml": { + "name": "List`1" + } }, - "GeoHash": { - "title": "String", - "description": "地理空間編碼", + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "Network" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStation": { - "title": "RailStation", - "description": "台鐵車站資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTimetable": { + "title": "RailDailyTimetable", + "description": "台鐵到離站時刻資料型別", "required": [ - "OperatorID", - "StationAddress", - "StationID", - "StationName", - "StationUID", + "DailyTrainInfo", + "StopTimes", + "TrainDate", "UpdateTime", "VersionID" ], "type": "object", "properties": { - "StationUID": { - "title": "String", - "description": "車站唯一識別代碼", - "type": "string" - }, - "StationID": { + "TrainDate": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "行駛日期(格式: yyyy-MM-dd)", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { - "title": "NameType", - "description": "車站名稱", + "DailyTrainInfo": { + "title": "RailDailyTrainInfo", + "description": "車次資料", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo" } - ] - }, - "StationAddress": { - "title": "String", - "description": "車站地址", - "type": "string" - }, - "StationPhone": { - "title": "String", - "description": "車站聯絡電話", - "type": "string" - }, - "OperatorID": { - "title": "String", - "description": "營運業者代碼", - "type": "string" - }, - "StationClass": { - "title": "String", - "description": "車站級別", - "type": "string" + ], + "xml": { + "name": "RailDailyTrainInfo" + } }, - "ReservationCode": { - "title": "String", - "description": "票價用站牌代碼", - "type": "string" + "StopTimes": { + "title": "Array", + "description": "停靠時間資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime" + }, + "xml": { + "name": "List`1" + } }, "UpdateTime": { "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, "VersionID": { @@ -10059,186 +10983,185 @@ "title": "Int32", "description": "資料版本編號", "type": "integer" - }, - "StationPosition": { - "title": "PointType", - "description": "車站位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.PointType" - } - ] - }, - "LocationCity": { - "title": "String", - "description": "車站位置所屬縣市", - "type": "string" - }, - "LocationCityCode": { - "title": "String", - "description": "車站位置所屬縣市代碼", - "type": "string" - }, - "LocationTown": { - "title": "String", - "description": "車站位置所屬鄉鎮", - "type": "string" - }, - "LocationTownCode": { - "title": "String", - "description": "車站位置所屬鄉鎮代碼", - "type": "string" } + }, + "xml": { + "name": "RailDailyTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStation": { - "title": "RailStation", - "description": "高鐵車站資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTrainInfo": { + "title": "RailDailyTrainInfo", + "description": "臺鐵車次資料型別", "required": [ - "OperatorID", - "StationAddress", - "StationCode", - "StationID", - "StationName", - "StationUID", + "BikeFlag", + "BreastFeedingFlag", + "DailyFlag", + "DiningFlag", + "Direction", + "PackageServiceFlag", + "ServiceAddedFlag", + "TrainNo", + "TrainTypeCode", + "TrainTypeID", + "TrainTypeName", "UpdateTime", - "VersionID" + "VersionID", + "WheelchairFlag" ], "type": "object", "properties": { - "StationUID": { + "TrainNo": { "title": "String", - "description": "車站唯一識別代碼", - "type": "string" + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationID": { - "title": "String", - "description": "車站代碼", + "Direction": { + "title": "integer", + "description": "順逆行 : [0:'順行',1:'逆行']", "type": "string" }, - "StationCode": { + "StartingStationID": { "title": "String", - "description": "車站簡碼(訂票系統用)", - "type": "string" + "description": "列車起點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "StartingStationName": { "title": "NameType", - "description": "車站名稱", + "description": "列車起點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "StationAddress": { + "EndingStationID": { "title": "String", - "description": "車站地址", - "type": "string" + "description": "列車終點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "StationPhone": { - "title": "String", - "description": "車站聯絡電話", - "type": "string" + "EndingStationName": { + "title": "NameType", + "description": "列車終點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "OperatorID": { + "TripHeadsign": { "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "車次車頭文字描述(通用以\"往\"+ 迄站中文站名\")", + "type": "string", + "xml": { + "name": "String" + } }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "TrainTypeID": { + "title": "String", + "description": "列車車種代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "TrainTypeCode": { + "title": "String", + "description": "列車車種簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationPosition": { - "title": "PointType", - "description": "車站位置", + "TrainTypeName": { + "title": "NameType", + "description": "列車車種名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.PointType" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "LocationCity": { - "title": "String", - "description": "車站位置所屬縣市", + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", "type": "string" }, - "LocationCityCode": { + "OverNightStationID": { "title": "String", - "description": "車站位置所屬縣市代碼", + "description": "跨夜車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "WheelchairFlag": { + "title": "integer", + "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", "type": "string" }, - "LocationTown": { - "title": "String", - "description": "車站位置所屬鄉鎮", + "PackageServiceFlag": { + "title": "integer", + "description": "是否提供行李服務 : [0:'否',1:'是']", "type": "string" }, - "LocationTownCode": { - "title": "String", - "description": "車站位置所屬鄉鎮代碼", + "DiningFlag": { + "title": "integer", + "description": "是否提供訂便當服務 : [0:'否',1:'是']", "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.Station": { - "title": "Station", - "description": "捷運車站資料", - "required": [ - "BikeAllowOnHoliday", - "SrcUpdateTime", - "StationAddress", - "StationID", - "StationName", - "StationUID", - "UpdateTime", - "VersionID" - ], - "type": "object", - "properties": { - "StationUID": { - "title": "String", - "description": "車站唯一識別代碼", + }, + "BikeFlag": { + "title": "integer", + "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", "type": "string" }, - "StationID": { - "title": "String", - "description": "車站代號", + "BreastFeedingFlag": { + "title": "integer", + "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", "type": "string" }, - "StationName": { + "DailyFlag": { + "title": "integer", + "description": "是否每日行駛 : [0:'否',1:'是']", + "type": "string" + }, + "ServiceAddedFlag": { + "title": "integer", + "description": "是否為加班車 : [0:'否',1:'是']", + "type": "string" + }, + "Note": { "title": "NameType", - "description": "車站名稱", + "description": "附註說明", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "StationAddress": { - "title": "String", - "description": "車站地址", - "type": "string" - }, - "BikeAllowOnHoliday": { - "title": "Boolean", - "description": "假日自行車進出與否", - "type": "boolean" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, "UpdateTime": { "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, "VersionID": { @@ -10246,167 +11169,243 @@ "title": "Int32", "description": "資料版本編號", "type": "integer" - }, - "StationPosition": { - "title": "PointType", - "description": "車站位置", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.PointType" - } - ] - }, - "LocationCity": { - "title": "String", - "description": "車站位置所屬縣市", - "type": "string" - }, - "LocationCityCode": { - "title": "String", - "description": "車站位置所屬縣市代碼", - "type": "string" - }, - "LocationTown": { - "title": "String", - "description": "車站位置所屬鄉鎮", - "type": "string" - }, - "LocationTownCode": { - "title": "String", - "description": "車站位置所屬鄉鎮代碼", - "type": "string" } + }, + "xml": { + "name": "RailDailyTrainInfo" } }, - "PTX.Service.DTO.Shared.Specification.V2.Base.PointType": { - "title": "PointType", - "description": "座標資料型別", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailGeneralTimetable": { + "title": "RailGeneralTimetable", + "description": "台鐵到離站時刻資料型別", + "required": [ + "GeneralTimetable", + "VersionID" + ], "type": "object", "properties": { - "PositionLat": { - "format": "double", - "description": "位置緯度(WGS84)", - "type": "number" + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期(格式: yyyy-MM-dd)", + "type": "string" }, - "PositionLon": { - "format": "double", - "description": "位置經度(WGS84)", - "type": "number" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" }, - "GeoHash": { - "title": "String", - "description": "地理空間編碼", - "type": "string" + "GeneralTimetable": { + "title": "GeneralTimetable", + "description": "定期時刻表資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.GeneralTimetable" + } + ], + "xml": { + "name": "GeneralTimetable" + } } + }, + "xml": { + "name": "RailGeneralTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.StationExit": { - "title": "StationExit", - "description": "高鐵車站出入口資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailGeneralTrainInfo": { + "title": "RailGeneralTrainInfo", + "description": "臺鐵車次定期資料型別", "required": [ - "Elevator", - "Escalator", - "ExitID", - "ExitName", - "ExitPosition", - "LocationDescription", - "SrcUpdateTime", - "Stair", - "StationID", - "StationName", - "UpdateTime" + "BikeFlag", + "BreastFeedingFlag", + "DailyFlag", + "DiningFlag", + "Direction", + "PackageServiceFlag", + "TrainNo", + "UpdateTime", + "VersionID", + "WheelchairFlag" ], "type": "object", "properties": { - "StationID": { + "TrainNo": { "title": "String", - "description": "車站代碼", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "順逆行 : [0:'順行',1:'逆行']", "type": "string" }, - "StationName": { + "StartingStationID": { + "title": "String", + "description": "列車起點車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartingStationName": { "title": "NameType", - "description": "車站名稱", + "description": "列車起點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ExitID": { + "EndingStationID": { "title": "String", - "description": "出入口代碼", - "type": "string" + "description": "列車終點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "ExitName": { + "EndingStationName": { "title": "NameType", - "description": "出入口名稱", + "description": "列車終點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ExitPosition": { - "title": "PointType", - "description": "出入口座標", + "TrainTypeID": { + "title": "String", + "description": "列車車種代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeCode": { + "title": "String", + "description": "列車車種簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { + "title": "NameType", + "description": "列車車種名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "LocationDescription": { + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", + "type": "string" + }, + "OverNightStationID": { "title": "String", - "description": "地址描述", + "description": "跨夜車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "WheelchairFlag": { + "title": "integer", + "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", "type": "string" }, - "Stair": { - "description": "是否有樓梯", - "type": "boolean" + "PackageServiceFlag": { + "title": "integer", + "description": "是否提供行李服務 : [0:'否',1:'是']", + "type": "string" }, - "Escalator": { - "description": "是否有電扶梯", - "type": "boolean" + "DiningFlag": { + "title": "integer", + "description": "是否提供訂便當服務 : [0:'否',1:'是']", + "type": "string" }, - "Elevator": { - "description": "是否有電梯", - "type": "boolean" + "BikeFlag": { + "title": "integer", + "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", + "type": "string" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "BreastFeedingFlag": { + "title": "integer", + "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", + "type": "string" + }, + "DailyFlag": { + "title": "integer", + "description": "是否為每日行駛 : [0:'否',1:'是']", "type": "string" }, + "Note": { + "title": "NameType", + "description": "附註說明", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, "UpdateTime": { "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "RailGeneralTrainInfo" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.StationExit": { - "title": "StationExit", - "description": "捷運車站出入口基本資料", - "required": [ - "Elevator", - "Escalator", - "ExitID", - "ExitName", - "ExitPosition", - "LocationDescription", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveBoard": { + "title": "RailLiveBoard", + "description": "台鐵車次動態車次站別即時電子看板資料", + "required": [ + "DelayTime", + "Direction", + "EndingStationID", + "EndingStationName", + "ScheduledArrivalTime", + "ScheduledDepartureTime", "SrcUpdateTime", - "Stair", "StationID", "StationName", - "UpdateTime", - "VersionID" + "TrainNo", + "UpdateTime" ], "type": "object", "properties": { "StationID": { "title": "String", "description": "車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", @@ -10415,49 +11414,99 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ExitID": { + "TrainNo": { "title": "String", - "description": "出入口代碼", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "順逆行 : [0:'順行',1:'逆行']", "type": "string" }, - "ExitName": { + "TrainTypeID": { + "title": "String", + "description": "列車車種代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeCode": { + "title": "String", + "description": "列車車種簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { "title": "NameType", - "description": "出入口名稱", + "description": "列車車種名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ExitPosition": { - "title": "PointType", - "description": "出入口座標", + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", + "type": "string" + }, + "EndingStationID": { + "title": "String", + "description": "車次終點車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndingStationName": { + "title": "NameType", + "description": "車次終點車站名稱", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType" + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "LocationDescription": { + "ScheduledArrivalTime": { "title": "String", - "description": "地址描述", - "type": "string" + "description": "表訂到站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" + } }, - "Stair": { - "description": "是否有樓梯", - "type": "boolean" + "ScheduledDepartureTime": { + "title": "String", + "description": "表訂離站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" + } }, - "Escalator": { + "DelayTime": { "format": "int32", - "description": "是否有電扶梯(0:沒有,1:雙向,2:出站,3:入站)", + "title": "Int32", + "description": "誤點時間(0:準點;>=1誤點)", "type": "integer" }, - "Elevator": { - "description": "是否有電梯", - "type": "boolean" - }, "SrcUpdateTime": { "title": "DateTime", "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", @@ -10467,119 +11516,263 @@ "title": "DateTime", "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" } + }, + "xml": { + "name": "RailLiveBoard" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.Elevator": { - "title": "Elevator", - "description": "無障礙電梯位置資訊", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveTrainDelay": { + "title": "RailLiveTrainDelay", + "description": "台鐵列車即時準點/延誤時間資料", "required": [ - "Description", - "FloorLevel" + "DelayTime", + "SrcUpdateTime", + "StationID", + "StationName", + "TrainNo", + "UpdateTime" ], "type": "object", "properties": { - "Description": { + "TrainNo": { "title": "String", - "description": "位置描述", - "type": "string" + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "FloorLevel": { - "title": "String", - "description": "樓層", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.InformationSpot": { - "title": "InformationSpot", - "description": "詢問處位置資訊", - "required": [ - "Description", - "FloorLevel" - ], - "type": "object", - "properties": { - "Description": { + "StationID": { "title": "String", - "description": "位置描述", + "description": "最近通過車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "最近通過車站名稱[屬離站壓軌觸發]", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "DelayTime": { + "format": "int32", + "title": "Int32", + "description": "誤點時間(0:準點;>=1誤點)", + "type": "integer" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "FloorLevel": { - "title": "String", - "description": "樓層", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } + }, + "xml": { + "name": "RailLiveTrainDelay" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.DrinkingFountain": { - "title": "DrinkingFountain", - "description": "飲水機位置資訊", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailODDailyTimetable": { + "title": "RailODDailyTimetable", + "description": "台鐵起訖站間到離站時刻資料型別", "required": [ - "Description", - "FloorLevel" + "DailyTrainInfo", + "DestinationStopTime", + "OriginStopTime", + "TrainDate", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "Description": { + "TrainDate": { "title": "String", - "description": "位置描述", - "type": "string" + "description": "行駛日期(格式: yyyy:MM:dd)", + "type": "string", + "xml": { + "name": "String" + } }, - "FloorLevel": { - "title": "String", - "description": "樓層", + "DailyTrainInfo": { + "title": "RailDailyTrainInfo", + "description": "車次資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo" + } + ], + "xml": { + "name": "RailDailyTrainInfo" + } + }, + "OriginStopTime": { + "title": "RailStopTime", + "description": "起站停靠時間資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime" + } + ], + "xml": { + "name": "RailStopTime" + } + }, + "DestinationStopTime": { + "title": "RailStopTime", + "description": "迄站停靠時間資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime" + } + ], + "xml": { + "name": "RailStopTime" + } + }, + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "RailODDailyTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.Toilet": { - "title": "Toilet", - "description": "廁所位置資訊", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailODFare": { + "title": "RailODFare", + "description": "臺鐵起訖站票價資料", "required": [ - "Description", - "FloorLevel" + "DestinationStationID", + "DestinationStationName", + "Direction", + "Fares", + "OriginStationID", + "OriginStationName", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "Description": { + "OriginStationID": { "title": "String", - "description": "位置描述", + "description": "起點車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OriginStationName": { + "title": "NameType", + "description": "起點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "DestinationStationID": { + "title": "String", + "description": "迄點車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStationName": { + "title": "NameType", + "description": "迄點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Direction": { + "title": "integer", + "description": "順逆行 : [0:'順行',1:'逆行']", "type": "string" }, - "FloorLevel": { - "title": "String", - "description": "樓層", + "Fares": { + "title": "Array", + "description": "票價收費資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.Fare" + }, + "xml": { + "name": "List`1" + } + }, + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "RailODFare" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.StationFacility": { - "title": "StationFacility", - "description": "捷運車站設施資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStation": { + "title": "RailStation", + "description": "台鐵車站資料", "required": [ - "DrinkingFountains", - "Elevators", - "InformationSpots", - "SrcUpdateTime", + "OperatorID", + "StationAddress", "StationID", "StationName", - "Toilets", + "StationUID", "UpdateTime", "VersionID" ], "type": "object", "properties": { + "StationUID": { + "title": "String", + "description": "車站唯一識別代碼", + "type": "string", + "xml": { + "name": "String" + } + }, "StationID": { "title": "String", - "description": "車站代號", - "type": "string" + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", @@ -10588,44 +11781,50 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "Elevators": { - "title": "Array", - "description": "無障礙電梯位置資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Elevator" + "StationAddress": { + "title": "String", + "description": "車站地址", + "type": "string", + "xml": { + "name": "String" } }, - "InformationSpots": { - "title": "Array", - "description": "詢問處位置資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.InformationSpot" + "StationPhone": { + "title": "String", + "description": "車站聯絡電話", + "type": "string", + "xml": { + "name": "String" } }, - "DrinkingFountains": { - "title": "Array", - "description": "飲水機位置資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.DrinkingFountain" + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" } }, - "Toilets": { - "title": "Array", - "description": "廁所位置資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Toilet" + "StationClass": { + "title": "String", + "description": "車站級別", + "type": "string", + "xml": { + "name": "String" } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "ReservationCode": { + "title": "String", + "description": "票價用站牌代碼", + "type": "string", + "xml": { + "name": "String" + } }, "UpdateTime": { "title": "DateTime", @@ -10637,100 +11836,247 @@ "title": "Int32", "description": "資料版本編號", "type": "integer" + }, + "StationPosition": { + "title": "PointType", + "description": "車站位置", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.PointType" + } + ], + "xml": { + "name": "PointType" + } + }, + "LocationCity": { + "title": "String", + "description": "車站位置所屬縣市", + "type": "string", + "xml": { + "name": "String" + } + }, + "LocationCityCode": { + "title": "String", + "description": "車站位置所屬縣市代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "LocationTown": { + "title": "String", + "description": "車站位置所屬鄉鎮", + "type": "string", + "xml": { + "name": "String" + } + }, + "LocationTownCode": { + "title": "String", + "description": "車站位置所屬鄉鎮代碼", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "RailStation" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.LineStation": { - "title": "LineStation", - "description": "路線車站資訊", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStationTimetable": { + "title": "RailStationTimetable", + "description": "台鐵車站站別時刻表資料型別", "required": [ - "Sequence", + "ArrivalTime", + "DepartureTime", + "Direction", + "EndingStationID", + "EndingStationName", + "StartingStationID", + "StartingStationName", "StationID", "StationName", - "TraveledDistance" + "TrainDate", + "TrainNo", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "Sequence": { - "format": "int32", - "title": "Int32", - "description": "站序", - "type": "integer" + "TrainDate": { + "title": "String", + "description": "時刻表日期(格式: yyyy-MM-dd)", + "type": "string", + "xml": { + "name": "String" + } }, "StationID": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "車站代號", + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { - "title": "String", + "title": "NameType", "description": "車站名稱", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "TraveledDistance": { - "format": "float", - "title": "Single", - "description": "已累積之里程距離(公里)", - "type": "number" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.StationOfLine": { - "title": "StationOfLine", - "description": "路線車站基本資料", - "required": [ - "LineID", - "LineNo", - "Stations", - "UpdateTime" - ], - "type": "object", - "properties": { - "LineNo": { + "TrainNo": { "title": "String", - "description": "路線編號", + "description": "車次代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "順逆行 : [0:'順行',1:'逆行']", "type": "string" }, - "LineID": { - "title": "String", - "description": "路線代碼", + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", "type": "string" }, - "Stations": { - "title": "Array", - "description": "路線車站資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.LineStation" + "TrainTypeID": { + "title": "String", + "description": "列車車種代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeCode": { + "title": "String", + "description": "列車車種簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { + "title": "NameType", + "description": "列車車種名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StartingStationID": { + "title": "String", + "description": "起點車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartingStationName": { + "title": "NameType", + "description": "起點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "EndingStationID": { + "title": "String", + "description": "終點車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndingStationName": { + "title": "NameType", + "description": "終點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "ArrivalTime": { + "title": "String", + "description": "到站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" + } + }, + "DepartureTime": { + "title": "String", + "description": "離站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" } }, "UpdateTime": { "title": "DateTime", - "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + }, + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "RailStationTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station": { - "title": "Station", - "description": "路線車站資訊", + "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime": { + "title": "RailStopTime", + "description": "台鐵停靠時間資料", "required": [ - "Sequence", + "ArrivalTime", + "DepartureTime", "StationID", - "StationName" + "StationName", + "StopSequence" ], "type": "object", "properties": { - "Sequence": { + "StopSequence": { "format": "int32", "title": "Int32", - "description": "站序", + "description": "跑法站序(由1開始)", "type": "integer" }, "StationID": { "title": "String", "description": "車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", @@ -10739,199 +12085,226 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "CumulativeDistance": { - "format": "float", - "description": "已累積之里程距離(公里)", - "type": "number" + "ArrivalTime": { + "title": "String", + "description": "到站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" + } + }, + "DepartureTime": { + "title": "String", + "description": "離站時間(格式: HH:mm:ss)", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "RailStopTime" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfLine": { - "title": "StationOfLine", - "description": "路線車站資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.ServiceDay": { + "title": "ServiceDay", + "description": "台鐵服務日型態", "required": [ - "LineID", - "SrcUpdateTime", - "Stations", - "UpdateTime", - "VersionID" + "Friday", + "Monday", + "Saturday", + "Sunday", + "Thursday", + "Tuesday", + "Wednesday" ], "type": "object", "properties": { - "LineNo": { - "title": "String", - "description": "路線編號", + "Monday": { + "title": "integer", + "description": "星期一是否營運 : [0:'否',1:'是']", "type": "string" }, - "LineID": { - "title": "String", - "description": "路線代碼", + "Tuesday": { + "title": "integer", + "description": "星期二是否營運 : [0:'否',1:'是']", "type": "string" }, - "Stations": { - "title": "Array", - "description": "路線車站資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station" - } + "Wednesday": { + "title": "integer", + "description": "星期三是否營運 : [0:'否',1:'是']", + "type": "string" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "Thursday": { + "title": "integer", + "description": "星期四是否營運 : [0:'否',1:'是']", "type": "string" }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "Friday": { + "title": "integer", + "description": "星期五是否營運 : [0:'否',1:'是']", "type": "string" }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "Saturday": { + "title": "integer", + "description": "星期六是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "Sunday": { + "title": "integer", + "description": "星期日是否營運 : [0:'否',1:'是']", + "type": "string" } + }, + "xml": { + "name": "ServiceDay" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfRoute": { - "title": "StationOfRoute", - "description": "路線車站資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.StationOfLine": { + "title": "StationOfLine", + "description": "路線車站基本資料", "required": [ - "Direction", "LineID", - "RouteID", - "RouteName", - "SrcUpdateTime", + "LineNo", "Stations", - "UpdateTime", - "VersionID" + "UpdateTime" ], "type": "object", "properties": { "LineNo": { "title": "String", - "description": "營運路線所屬之路線編號", - "type": "string" + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } }, "LineID": { "title": "String", - "description": "營運路線所屬之路線代碼", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "營運路線代碼", - "type": "string" - }, - "RouteName": { - "title": "NameType", - "description": "營運路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "Direction": { - "format": "int32", - "title": "Int32", - "description": "營運路線方向描述(0:去程,1:返程)", - "type": "integer" + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, "Stations": { "title": "Array", - "description": "營運路線車站資訊", + "description": "路線車站資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.LineStation" + }, + "xml": { + "name": "List`1" } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, "UpdateTime": { "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" - }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" } + }, + "xml": { + "name": "StationOfLine" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStationTimetable": { - "title": "RailStationTimetable", - "description": "台鐵車站站別時刻表資料型別", + "PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo": { + "title": "RailDailyTrainInfo", + "description": "臺鐵車次資料型別", "required": [ - "ArrivalTime", - "DepartureTime", + "BikeFlag", + "BreastFeedingFlag", + "DailyFlag", + "DiningFlag", "Direction", - "EndingStationID", - "EndingStationName", - "StartingStationID", - "StartingStationName", - "StationID", - "StationName", - "TrainDate", + "PackageServiceFlag", + "ServiceAddedFlag", "TrainNo", - "UpdateTime", - "VersionID" + "WheelchairFlag" ], "type": "object", "properties": { - "TrainDate": { + "TrainNo": { "title": "String", - "description": "時刻表日期(格式: yyyy-MM-dd)", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "順逆行 : [0:'順行',1:'逆行']", "type": "string" }, - "StationID": { + "StartingStationID": { "title": "String", - "description": "車站代號", - "type": "string" + "description": "列車起點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "StartingStationName": { "title": "NameType", - "description": "車站名稱", + "description": "列車起點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "TrainNo": { + "EndingStationID": { "title": "String", - "description": "車次代號", - "type": "string" + "description": "列車終點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "順逆行 : [0:'順行',1:'逆行']", - "type": "integer" + "EndingStationName": { + "title": "NameType", + "description": "列車終點車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "TripLine": { - "format": "int32", - "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", - "type": "integer" + "TripHeadsign": { + "title": "String", + "description": "車次車頭文字描述(通用以\"往\"+ 迄站中文站名\")", + "type": "string", + "xml": { + "name": "String" + } }, "TrainTypeID": { "title": "String", "description": "列車車種代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TrainTypeCode": { "title": "String", "description": "列車車種簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TrainTypeName": { "title": "NameType", @@ -10940,372 +12313,554 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "StartingStationID": { - "title": "String", - "description": "起點車站代號", - "type": "string" - }, - "StartingStationName": { - "title": "NameType", - "description": "起點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + ], + "xml": { + "name": "NameType" + } }, - "EndingStationID": { + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", + "type": "string" + }, + "OverNightStationID": { "title": "String", - "description": "終點車站代號", + "description": "跨夜車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "WheelchairFlag": { + "title": "integer", + "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", "type": "string" }, - "EndingStationName": { - "title": "NameType", - "description": "終點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] + "PackageServiceFlag": { + "title": "integer", + "description": "是否提供行李服務 : [0:'否',1:'是']", + "type": "string" }, - "ArrivalTime": { - "title": "String", - "description": "到站時間(格式: HH:mm:ss)", + "DiningFlag": { + "title": "integer", + "description": "是否提供訂便當服務 : [0:'否',1:'是']", "type": "string" }, - "DepartureTime": { - "title": "String", - "description": "離站時間(格式: HH:mm:ss)", + "BikeFlag": { + "title": "integer", + "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", "type": "string" }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "BreastFeedingFlag": { + "title": "integer", + "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", "type": "string" }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "DailyFlag": { + "title": "integer", + "description": "是否為每日行駛 : [0:'否',1:'是']", + "type": "string" + }, + "ServiceAddedFlag": { + "title": "Boolean", + "description": "是否為加班車", + "type": "boolean" + }, + "Note": { + "title": "NameType", + "description": "附註說明", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } } + }, + "xml": { + "name": "RailDailyTrainInfo" } }, - "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStationTimetable": { - "title": "RailStationTimetable", - "description": "高鐵車站站別時刻表資料型別", + "PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo": { + "title": "RailGeneralTrainInfo", + "description": "臺鐵車次定期資料型別", "required": [ - "ArrivalTime", - "DepartureTime", + "BikeFlag", + "BreastFeedingFlag", + "DailyFlag", + "DiningFlag", "Direction", - "EndingStationID", - "EndingStationName", - "StartingStationID", - "StartingStationName", - "StationID", - "StationName", - "TrainDate", + "PackageServiceFlag", "TrainNo", - "UpdateTime", - "VersionID" + "WheelchairFlag" ], "type": "object", "properties": { - "TrainDate": { - "title": "String", - "description": "時刻表日期(格式: yyyy-MM-dd)", - "type": "string" - }, - "StationID": { - "title": "String", - "description": "車站代號", - "type": "string" - }, - "StationName": { - "title": "NameType", - "description": "車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, "TrainNo": { "title": "String", - "description": "車次代號", - "type": "string" + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } }, "Direction": { - "format": "int32", "title": "integer", - "description": "順逆行 : [0:'南下',1:'北上']", - "type": "integer" + "description": "順逆行 : [0:'順行',1:'逆行']", + "type": "string" }, "StartingStationID": { "title": "String", - "description": "起點車站代號", - "type": "string" + "description": "列車起點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, "StartingStationName": { "title": "NameType", - "description": "起點車站名稱", + "description": "列車起點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "EndingStationID": { "title": "String", - "description": "終點車站代號", - "type": "string" + "description": "列車終點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, "EndingStationName": { "title": "NameType", - "description": "終點車站名稱", + "description": "列車終點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ArrivalTime": { + "TrainTypeID": { "title": "String", - "description": "到站時間(格式: HH:mm:ss)", + "description": "列車車種代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeCode": { + "title": "String", + "description": "列車車種簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { + "title": "NameType", + "description": "列車車種名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", "type": "string" }, - "DepartureTime": { + "OverNightStationID": { "title": "String", - "description": "離站時間(格式: HH:mm:ss)", + "description": "跨夜車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "WheelchairFlag": { + "title": "integer", + "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", "type": "string" }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "PackageServiceFlag": { + "title": "integer", + "description": "是否提供行李服務 : [0:'否',1:'是']", "type": "string" }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Timetable": { - "title": "Timetable", - "description": "車站發車時刻資訊", - "required": [ - "ArrivalTime", - "DepartureTime", - "Sequence", - "TrainNo" - ], - "type": "object", - "properties": { - "Sequence": { - "format": "int32", - "title": "Int32", - "description": "發車順序", - "type": "integer" + "DiningFlag": { + "title": "integer", + "description": "是否提供訂便當服務 : [0:'否',1:'是']", + "type": "string" }, - "TrainNo": { - "title": "String", - "description": "車次號碼(捷運通常沒有TrainNo車次資訊)", + "BikeFlag": { + "title": "integer", + "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", "type": "string" }, - "ArrivalTime": { - "title": "String", - "description": "到站時刻(hh:mm)", + "BreastFeedingFlag": { + "title": "integer", + "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", "type": "string" }, - "DepartureTime": { - "title": "String", - "description": "發車時刻(hh:mm)", + "DailyFlag": { + "title": "integer", + "description": "是否為每日行駛 : [0:'否',1:'是']", "type": "string" }, - "TrainType": { - "format": "int32", - "description": "車種(0:不分車種, 1:普通車, 2:直達車)", - "type": "integer" + "Note": { + "title": "NameType", + "description": "附註說明", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } } + }, + "xml": { + "name": "RailGeneralTrainInfo" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.SpecialDay": { - "title": "SpecialDay", - "description": "特定日期", + "PTX.Service.DTO.Rail.Specification.V2.TRA.TrainType": { + "title": "TrainType", + "description": "臺鐵列車車種資料", "required": [ - "Description", - "EndDate", - "SaterDate" + "TrainTypeCode", + "TrainTypeID", + "TrainTypeName", + "UpdateTime", + "VersionID" ], "type": "object", "properties": { - "SaterDate": { - "title": "DateTime", - "description": "開始時間", - "type": "string" + "TrainTypeID": { + "title": "String", + "description": "列車車種代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { + "title": "NameType", + "description": "列車車種名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "EndDate": { + "TrainTypeCode": { + "title": "String", + "description": "列車車種簡碼 [1:太魯閣;2:普悠瑪;3:自強;4:莒光;5:復興;6:區間;7:普快]", + "type": "string", + "xml": { + "name": "String" + } + }, + "UpdateTime": { "title": "DateTime", - "description": "結束時間", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Description": { - "title": "String", - "description": "描述", - "type": "string" + "VersionID": { + "format": "int32", + "title": "Int32", + "description": "資料版本編號", + "type": "integer" } + }, + "xml": { + "name": "TrainType" } }, - "PTX.Service.DTO.Rail.Specification.V2.Metro.StationTimeTable": { - "title": "StationTimeTable", - "description": "站別時刻表資料", + "PTX.Service.DTO.Rail.Specification.V2.TRA.TRAShape": { + "title": "TRAShape", + "description": "臺鐵線型資料", "required": [ - "DestinationStaionID", - "DestinationStationName", + "EncodedPolyline", + "Geometry", "LineID", - "ServiceDay", - "SrcUpdateTime", - "StationID", - "StationName", - "Timetables", - "UpdateTime", - "VersionID" + "LineName", + "LineNo", + "UpdateTime" ], "type": "object", "properties": { - "RouteID": { + "LineNo": { "title": "String", - "description": "營運路線代碼", - "type": "string" + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } }, "LineID": { "title": "String", "description": "路線代碼", - "type": "string" - }, - "StationID": { - "title": "String", - "description": "車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "LineName": { "title": "NameType", - "description": "車站名稱", + "description": "路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "營運路線方向描述 : [0:'去程',1:'返程']", - "type": "integer" + ], + "xml": { + "name": "NameType" + } }, - "DestinationStaionID": { - "title": "String", - "description": "目的站車站代號", + "UpdateTime": { + "title": "DateTime", + "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "DestinationStationName": { - "title": "NameType", - "description": "目的站車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" - } - ] - }, - "Timetables": { - "title": "Array", - "description": "車站發車時刻資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Timetable" + "Geometry": { + "title": "String", + "description": "well-known text,為路線軌跡資料", + "type": "string", + "xml": { + "name": "String" } }, - "ServiceDay": { - "title": "ServiceDay", - "description": "服務日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDay" - } - ] - }, - "SpecialDays": { - "title": "Array", - "description": "特定日期", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.SpecialDay" + "EncodedPolyline": { + "title": "String", + "description": "路線軌跡編碼(encoded polyline)", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "TRAShape" + } + }, + "PTX.Service.DTO.Shared.Specification.V2.Base.Fare": { + "title": "Fare", + "description": "票價資料型別", + "type": "object", + "properties": { + "TicketType": { + "title": "String", + "description": "票種名稱", + "type": "string", + "xml": { + "name": "String" } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Price": { + "format": "double", + "description": "收費價格(新台幣)", + "type": "number" + } + }, + "xml": { + "name": "Fare" + } + }, + "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": { + "title": "NameType", + "description": "名稱資料型別", + "type": "object", + "properties": { + "Zh_tw": { + "title": "String", + "description": "中文繁體名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "En": { + "title": "String", + "description": "英文名稱", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "NameType" } }, - "PTX.Service.DTO.Rail.Specification.V2.TRA.TrainType": { - "title": "TrainType", - "description": "臺鐵列車車種資料", + "PTX.Service.DTO.Shared.Specification.V2.Base.Operator": { + "title": "Operator", + "description": "營運業者資料型別", "required": [ - "TrainTypeCode", - "TrainTypeID", - "TrainTypeName", - "UpdateTime", - "VersionID" + "AuthorityCode", + "OperatorCode", + "OperatorID", + "OperatorName", + "OperatorNo", + "ProviderID", + "UpdateTime" ], "type": "object", "properties": { - "TrainTypeID": { + "ProviderID": { "title": "String", - "description": "列車車種代碼", - "type": "string" + "description": "資料提供平台代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeName": { + "OperatorID": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { "title": "NameType", - "description": "列車車種名稱", + "description": "營運業者名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "TrainTypeCode": { + "OperatorPhone": { "title": "String", - "description": "列車車種簡碼 [1:太魯閣;2:普悠瑪;3:自強;4:莒光;5:復興;6:區間;7:普快]", - "type": "string" + "description": "營運業者連絡電話", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorEmail": { + "title": "String", + "description": "營運業者電子信箱", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorUrl": { + "title": "String", + "description": "營運業者網址鏈結", + "type": "string", + "xml": { + "name": "String" + } + }, + "ReservationUrl": { + "title": "String", + "description": "訂票網址鏈結", + "type": "string", + "xml": { + "name": "String" + } + }, + "ReservationPhone": { + "title": "String", + "description": "訂票連絡電話", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorCode": { + "title": "String", + "description": "營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "AuthorityCode": { + "title": "String", + "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)", + "type": "string", + "xml": { + "name": "String" + } + }, + "SubAuthorityCode": { + "title": "String", + "description": "營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorNo": { + "title": "String", + "description": "營運業者編號[交通部票證資料系統定義]", + "type": "string", + "xml": { + "name": "String" + } }, "UpdateTime": { "title": "DateTime", "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" + } + }, + "xml": { + "name": "Operator" + } + }, + "PTX.Service.DTO.Shared.Specification.V2.Base.PointType": { + "title": "PointType", + "description": "座標資料型別", + "type": "object", + "properties": { + "PositionLon": { + "format": "double", + "description": "位置經度(WGS84)", + "type": "number" }, - "VersionID": { - "format": "int32", - "title": "Int32", - "description": "資料版本編號", - "type": "integer" + "PositionLat": { + "format": "double", + "description": "位置緯度(WGS84)", + "type": "number" + }, + "GeoHash": { + "title": "String", + "description": "地理空間編碼", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "PointType" } } }, diff --git a/oas.rail.v3.json b/oas.rail.v3.json index c4e50bfb..83108e76 100644 --- a/oas.rail.v3.json +++ b/oas.rail.v3.json @@ -580,9 +580,16 @@ "operationId": "ODFareApiControllerApiController_Get", "produces": [ "application/json", - "application/xml", - "text/plain", - "text/json" + "application/xml" + ], + "parameters": [ + { + "in": "query", + "name": "$format", + "description": "指定來源格式", + "required": true, + "type": "string" + } ], "responses": { "200": { @@ -2769,275 +2776,203 @@ } }, "definitions": { - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeNetwork": { - "title": "AlertScopeNetwork", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Line]": { + "title": "TRALineList", + "required": [ + "AuthorityCode", + "Lines", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" + ], "type": "object", "properties": { - "NetworkID": { - "title": "String", - "description": "路網代碼", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "NetworkName": { - "title": "String", - "description": "路網名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeStation": { - "title": "AlertScopeStation", - "type": "object", - "properties": { - "StationID": { - "title": "String", - "description": "車站代碼", - "type": "string" + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" }, - "StationName": { - "title": "String", - "description": "車站名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLine": { - "title": "AlertScopeLine", - "type": "object", - "properties": { - "LineID": { - "title": "String", - "description": "實體路線代碼", + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "LineName": { - "title": "String", - "description": "實體路線名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeRoute": { - "title": "AlertScopeRoute", - "type": "object", - "properties": { - "RouteID": { - "title": "String", - "description": "營運路線代碼", - "type": "string" + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "RouteName": { - "title": "String", - "description": "營運路線名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeTrain": { - "title": "AlertScopeTrain", - "type": "object", - "properties": { - "TrainNo": { + "AuthorityCode": { "title": "String", - "description": "受影響的車次", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Lines": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Line" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfLine", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLineSection": { - "title": "AlertScopeLineSection", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork]": { + "title": "TRALineNetworkList", + "required": [ + "AuthorityCode", + "LineNetworks", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" + ], "type": "object", "properties": { - "LineID": { - "title": "String", - "description": "路線區間所在路線代碼", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StartingStationID": { - "title": "String", - "description": "區間起站車站代碼", - "type": "string" + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" }, - "StartingStationName": { - "title": "String", - "description": "區間起站車站名稱", + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "EndingStationID": { - "title": "String", - "description": "區間迄站車站代碼", - "type": "string" + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "EndingStationName": { + "AuthorityCode": { "title": "String", - "description": "區間迄站車站名稱", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Description": { - "title": "String", - "description": "影響區間輔助描述", - "type": "string" + "LineNetworks": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfLineNetwork", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScope": { - "title": "AlertScope", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer]": { + "title": "TRALineTransferList", "required": [ - "Lines", - "LineSections", - "Routes", - "Stations", - "Trains" + "AuthorityCode", + "LineTransfers", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "NetworkList": { - "title": "AlertScopeNetwork", - "description": "受影響的路網", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeNetwork" - } - ] + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "Stations": { - "title": "AlertScopeStation[]", - "description": "受影響的車站", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeStation" - } + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" }, - "Lines": { - "title": "AlertScopeLine[]", - "description": "受影響的實體路線", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLine" - } + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "Routes": { - "title": "AlertScopeRoute[]", - "description": "受影響的營運路線", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeRoute" + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" + }, + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" } }, - "Trains": { - "title": "AlertScopeTrain[]", - "description": "受影響的車次", + "LineTransfers": { + "title": "Array", + "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeTrain" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer" + }, + "xml": { + "name": "List`1" } }, - "LineSections": { - "title": "AlertScopeLineSection[]", - "description": "受影響的路線區間", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLineSection" - } - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert": { - "title": "Alert", - "required": [ - "AlertID", - "Description", - "Scope", - "Status", - "Title", - "UpdateTime" - ], - "type": "object", - "properties": { - "AlertID": { - "title": "String", - "description": "通阻訊息代碼", - "type": "string" - }, - "Title": { - "title": "String", - "description": "通阻訊息標題", - "type": "string" - }, - "Description": { - "title": "String", - "description": "通阻訊息說明", - "type": "string" - }, - "Status": { - "format": "int32", - "title": "integer", - "description": "營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況']", - "type": "integer" - }, - "Scope": { - "title": "AlertScope", - "description": "影響範圍", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScope" - } - ] - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "影響方向 : [0:'南下',1:'北上',2:'雙向']", - "type": "integer" - }, - "Level": { - "format": "int32", - "title": "integer", - "description": "影響等級程度 : [1:'重度',2:'中度',3:'輕度']", + "Count": { + "format": "int64", + "description": "資料總筆數", "type": "integer" - }, - "Effect": { - "title": "String", - "description": "影響說明", - "type": "string" - }, - "Reason": { - "title": "String", - "description": "影響原因", - "type": "string" - }, - "AlertURL": { - "title": "String", - "description": "通阻訊息網址連結", - "type": "string" - }, - "StartTime": { - "title": "DateTime", - "description": "訊息起始日期時間", - "type": "string" - }, - "EndTime": { - "title": "DateTime", - "description": "訊息結束日期時間", - "type": "string" - }, - "PublishTime": { - "title": "DateTime", - "description": "消息發佈日期時間", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "消息更新日期時間", - "type": "string" } + }, + "xml": { + "name": "TRABaseWrapperOfLineTransfer", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert]": { - "title": "TRAAlertList", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network]": { + "title": "TRANetworkList", "required": [ - "Alerts", "AuthorityCode", + "Networks", "SrcUpdateInterval", "SrcUpdateTime", "UpdateInterval", @@ -3070,14 +3005,20 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, - "Alerts": { + "Networks": { "title": "Array", "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network" + }, + "xml": { + "name": "List`1" } }, "Count": { @@ -3085,137 +3026,83 @@ "description": "資料總筆數", "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfNetwork", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Shared.Specification.V3.Base.NameType": { - "title": "NameType", - "type": "object", - "properties": { - "Zh_tw": { - "title": "String", - "description": "中文繁體名稱", - "type": "string" - }, - "En": { - "title": "String", - "description": "英文名稱", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.TimeTable": { - "title": "TimeTable", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Operator]": { + "title": "TRAOperatorList", "required": [ - "Sequence" + "AuthorityCode", + "Operators", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "Sequence": { + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateInterval": { "format": "int32", "title": "Int32", - "description": "發車順序", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" - }, - "DestinationStationID": { - "title": "String", - "description": "目的站車站代號", - "type": "string" - }, - "DestinationStationName": { - "title": "NameType", - "description": "目的站車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "TrainTypeID": { - "title": "String", - "description": "車種代嗎", - "type": "string" - }, - "TrainTypeCode": { - "title": "String", - "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", - "type": "string" - }, - "TrainTypeName": { - "title": "NameType", - "description": "車種名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "ArrivalTime": { - "title": "String", - "description": "到站時刻", - "type": "string" - }, - "DepartureTime": { - "title": "String", - "description": "發車時刻", - "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable": { - "title": "StationTimetable", - "required": [ - "TimeTables" - ], - "type": "object", - "properties": { - "RouteID": { - "title": "String", - "description": "營運路線代碼", - "type": "string" - }, - "StationID": { - "title": "String", - "description": "車站代碼", + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StationName": { - "title": "NameType", - "description": "車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "Direction": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'順行',1:'逆行']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "TimeTables": { + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Operators": { "title": "Array", - "description": "目的站車站名稱", + "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.TimeTable" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Operator" + }, + "xml": { + "name": "List`1" } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfOperator", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.API.Rail.Model.TraDailyStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable]": { - "title": "TRADailyStationTimeTableList", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Shape]": { + "title": "TRAShapeList", "required": [ "AuthorityCode", + "Shapes", "SrcUpdateInterval", "SrcUpdateTime", - "StationTimetables", - "TrainDate", "UpdateInterval", "UpdateTime" ], @@ -3246,19 +3133,20 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, - "TrainDate": { - "title": "String", - "description": "營運日說明(yyyy-MM-dd)", - "type": "string" - }, - "StationTimetables": { + "Shapes": { "title": "Array", "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Shape" + }, + "xml": { + "name": "List`1" } }, "Count": { @@ -3266,291 +3154,403 @@ "description": "資料總筆數", "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfShape", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong": { - "title": "SectionAmong", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Station]": { + "title": "TRAStationList", "required": [ - "EndStationID", - "StartStationID" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "Stations", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "StartStationID": { - "title": "String", - "description": "起站車站代碼", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "EndStationID": { - "title": "String", - "description": "迄站車站代碼", + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.DiningFlagSection": { - "title": "DiningFlagSection", - "required": [ - "EndSection", - "StartSection" - ], - "type": "object", - "properties": { - "StartSection": { - "title": "SectionAmong", - "description": "乘客出發站所屬區間", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong" - } - ] }, - "EndSection": { - "title": "SectionAmong", - "description": "乘客目的站所屬區間", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong" - } - ] + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" + }, + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Stations": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Station" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfStation", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainInfo": { - "title": "TrainInfo", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit]": { + "title": "TRAStationExitList", "required": [ - "BikeFlag", - "BreastFeedFlag", - "DailyFlag", - "DiningFlag", - "Direction", - "EndingStationName", - "ExtraTrainFlag", - "PackageServiceFlag", - "RouteID", - "StartingStationName", - "TrainNo", - "TrainTypeName", - "WheelChairFlag" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "StationExits", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" - }, - "RouteID": { - "title": "String", - "description": "營運路線代碼", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Direction": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'順行',1:'逆行']", + "title": "Int32", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "TrainTypeID": { - "title": "String", - "description": "車種代嗎", - "type": "string" - }, - "TrainTypeCode": { - "title": "String", - "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", - "type": "string" - }, - "TrainTypeName": { - "title": "NameType", - "description": "車種名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "TripHeadSign": { - "title": "String", - "description": "車次之目的地方向描述", - "type": "string" - }, - "StartingStationID": { - "title": "String", - "description": "車次之起始站車站代號", + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StartingStationName": { - "title": "NameType", - "description": "車次之起始站車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "EndingStationID": { + "AuthorityCode": { "title": "String", - "description": "車次之終點站車站代號", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "EndingStationName": { - "title": "NameType", - "description": "車次之終點站車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "StationExits": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit" + }, + "xml": { + "name": "List`1" + } }, - "OverNightStationID": { - "title": "String", - "description": "跨夜車站代碼", + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" + } + }, + "xml": { + "name": "TRABaseWrapperOfStationExit", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" + } + }, + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility]": { + "title": "TRAStationFacilityList", + "required": [ + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "StationFacilities", + "UpdateInterval", + "UpdateTime" + ], + "type": "object", + "properties": { + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "TripLine": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", + "title": "Int32", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "WheelChairFlag": { - "format": "int32", - "title": "integer", - "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", - "type": "integer" + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "PackageServiceFlag": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "是否提供行李服務 : [0:'否',1:'是']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "DiningFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供訂便當服務 : [0:'否',1:'是']", - "type": "integer" + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "DiningFlagSections": { - "title": "DiningFlagSection[]", - "description": "提供訂便當服務之車站區間", + "StationFacilities": { + "title": "Array", + "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.DiningFlagSection" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility" + }, + "xml": { + "name": "List`1" } }, - "BreastFeedFlag": { - "format": "int32", - "title": "integer", - "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", - "type": "integer" - }, - "BikeFlag": { - "format": "int32", - "title": "integer", - "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", + "Count": { + "format": "int64", + "description": "資料總筆數", "type": "integer" + } + }, + "xml": { + "name": "TRABaseWrapperOfStationFacility", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" + } + }, + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine]": { + "title": "TRAStationOfLineList", + "required": [ + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "StationOfLines", + "UpdateInterval", + "UpdateTime" + ], + "type": "object", + "properties": { + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "CarFlag": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "是否提供小汽車上火車服務 : [0:'否',1:'是']", + "title": "Int32", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "DailyFlag": { - "format": "int32", - "title": "integer", - "description": "是否每日行駛 : [0:'否',1:'是']", - "type": "integer" + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "ExtraTrainFlag": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "是否為加班車 : [0:'否',1:'是']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "Note": { + "AuthorityCode": { "title": "String", - "description": "附註說明", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationOfLines": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfStationOfLine", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.StopTime": { - "title": "StopTime", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer]": { + "title": "TRAStationTransferList", "required": [ - "StationID", - "StationName", - "StopSequence" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "StationTransfers", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "StopSequence": { + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateInterval": { "format": "int32", "title": "Int32", - "description": "停靠站序", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "StationID": { - "title": "String", - "description": "車站代碼", + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StationName": { - "title": "NameType", - "description": "車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "ArrivalTime": { + "AuthorityCode": { "title": "String", - "description": "到站時間", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "DepartureTime": { - "title": "String", - "description": "離站時間", - "type": "string" + "StationTransfers": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfStationTransfer", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable": { - "title": "TrainTimetable", + "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType]": { + "title": "TRATrainTypeList", "required": [ - "StopTimes", - "TrainInfo" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "TrainTypes", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "TrainInfo": { - "title": "TrainInfo", - "description": "車次資料", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainInfo" - } - ] + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "StopTimes": { + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" + }, + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypes": { "title": "Array", - "description": "停靠站資料", + "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.StopTime" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType" + }, + "xml": { + "name": "List`1" } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRABaseWrapperOfTrainType", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]": { - "title": "TRADailyTrainTimeTableList", + "PTX.API.Rail.Model.TraDailyStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable]": { + "title": "TRADailyStationTimeTableList", "required": [ "AuthorityCode", "SrcUpdateInterval", "SrcUpdateTime", + "StationTimetables", "TrainDate", "UpdateInterval", "UpdateTime" @@ -3582,19 +3582,28 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TrainDate": { "title": "String", "description": "營運日說明(yyyy-MM-dd)", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTimetables": { + "StationTimetables": { "title": "Array", "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable" + }, + "xml": { + "name": "List`1" } }, "Count": { @@ -3602,204 +3611,191 @@ "description": "資料總筆數", "type": "integer" } + }, + "xml": { + "name": "TraDailyStationWrapperOfStationTimetable", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.Timetable": { - "title": "Timetable", - "description": "車次停靠站資料", + "PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]": { + "title": "TRADailyTrainTimeTableList", + "required": [ + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "TrainDate", + "UpdateInterval", + "UpdateTime" + ], "type": "object", "properties": { - "Sequence": { + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateInterval": { "format": "int32", "title": "Int32", - "description": "發車順序", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" - }, - "DestinationStationID": { - "title": "String", - "description": "目的站車站代號", + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "DestinationStationName": { - "title": "NameType", - "description": "目的站車站", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "TrainTypeID": { + "AuthorityCode": { "title": "String", - "description": "車種代嗎", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeCode": { + "TrainDate": { "title": "String", - "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", - "type": "string" - }, - "TrainTypeName": { - "title": "NameType", - "description": "車種名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "description": "營運日說明(yyyy-MM-dd)", + "type": "string", + "xml": { + "name": "String" + } }, - "ArrivalTime": { - "title": "String", - "description": "到站時刻", - "type": "string" + "TrainTimetables": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable" + }, + "xml": { + "name": "List`1" + } }, - "DepartureTime": { - "title": "String", - "description": "發車時刻", - "type": "string" + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TraDailyTrainWrapperOfTrainTimetable", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.ServiceDay": { - "title": "ServiceDay", - "description": "服務日型態", + "PTX.API.Rail.Model.TRAGeneralStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable]": { + "title": "TRAGeneralStationTimetableList", "required": [ - "Friday", - "Monday", - "Saturday", - "Sunday", - "Thursday", - "Tuesday", - "Wednesday" + "AuthorityCode", + "EffectiveDate", + "SrcUpdateInterval", + "SrcUpdateTime", + "StationTimetables", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "ServiceTag": { - "title": "String", - "description": "服務日標籤", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Monday": { - "title": "Boolean", - "description": "星期一營運與否", - "type": "boolean" - }, - "Tuesday": { - "title": "Boolean", - "description": "星期二營運與否", - "type": "boolean" - }, - "Wednesday": { - "title": "Boolean", - "description": "星期三營運與否", - "type": "boolean" - }, - "Thursday": { - "title": "Boolean", - "description": "星期四營運與否", - "type": "boolean" - }, - "Friday": { - "title": "Boolean", - "description": "星期五營運與否", - "type": "boolean" - }, - "Saturday": { - "title": "Boolean", - "description": "星期六營運與否", - "type": "boolean" + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" }, - "Sunday": { - "title": "Boolean", - "description": "星期日營運與否", - "type": "boolean" + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "NationalHolidays": { - "description": "國定假日營運與否", - "type": "boolean" + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "DayBeforeHoliday": { - "description": "假日前一日營運與否", - "type": "boolean" + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "DayAfterHoliday": { - "description": "假日後一日營運與否", - "type": "boolean" + "EffectiveDate": { + "title": "DateTime", + "description": "有效起始日期", + "type": "string" }, - "TyphoonDay": { - "description": "颱風停止上班上課期間營運與否", - "type": "boolean" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable": { - "title": "GeneralStationTimetable", - "description": "台鐵車站站別時刻表資料型別", - "required": [ - "Direction", - "ServiceDay", - "StationID", - "Timetables" - ], - "type": "object", - "properties": { - "RouteID": { - "title": "String", - "description": "營運路線代碼", + "ExpireDate": { + "title": "DateTime", + "description": "有效終止日期", "type": "string" }, - "StationID": { + "SrcVersion": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "來源版號", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { - "title": "NameType", - "description": "車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "TimetableName": { + "title": "String", + "description": "定期性站別時刻表名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'順行',1:'逆行']", - "type": "integer" + "ValidityDesciption": { + "title": "String", + "description": "時刻表適用情形說明", + "type": "string", + "xml": { + "name": "String" + } }, - "Timetables": { + "StationTimetables": { "title": "Array", - "description": "車次停靠站資料", + "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.Timetable" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable" + }, + "xml": { + "name": "List`1" } }, - "ServiceDay": { - "title": "ServiceDay", - "description": "服務日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.ServiceDay" - } - ] + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRAGeneralStationWrapperOfGeneralStationTimetable", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.API.Rail.Model.TRAGeneralStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable]": { - "title": "TRAGeneralStationTimetableList", + "PTX.API.Rail.Model.TRAGeneralTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable]": { + "title": "TRAGeneralTrainTimetableList", "required": [ "AuthorityCode", "EffectiveDate", "SrcUpdateInterval", "SrcUpdateTime", - "StationTimetables", + "TrainTimetables", "UpdateInterval", "UpdateTime" ], @@ -3830,7 +3826,10 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "EffectiveDate": { "title": "DateTime", @@ -3845,24 +3844,36 @@ "SrcVersion": { "title": "String", "description": "來源版號", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TimetableName": { "title": "String", "description": "定期性站別時刻表名稱", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ValidityDesciption": { "title": "String", "description": "時刻表適用情形說明", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, - "StationTimetables": { + "TrainTimetables": { "title": "Array", "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable" + }, + "xml": { + "name": "List`1" } }, "Count": { @@ -3870,334 +3881,358 @@ "description": "資料總筆數", "type": "integer" } + }, + "xml": { + "name": "TRAGeneralTrainWrapperOfGeneralTrainTimetable", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo": { - "title": "TrainInfo", - "description": "臺鐵車次定期資料型別(時刻表用)", + "PTX.API.Rail.Model.TRAODFareWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare]": { + "title": "TRAODFareList", "required": [ - "BikeFlag", - "BreastFeedFlag", - "CarFlag", - "DailyFlag", - "DiningFlag", - "Direction", - "ExtraTrainFlag", - "PackageServiceFlag", - "TrainNo", - "WheelChairFlag" + "AuthorityCode", + "ODFares", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "TrainNo": { - "title": "String", - "description": "車次代碼", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "RouteID": { - "title": "String", - "description": "營運路線代碼", + "UpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "本平台資料更新週期(秒)", + "type": "integer" + }, + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Direction": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'順行',1:'逆行']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "TrainTypeID": { + "AuthorityCode": { "title": "String", - "description": "車種代嗎", - "type": "string" - }, - "TrainTypeCode": { - "title": "String", - "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", - "type": "string" - }, - "TrainTypeName": { - "title": "NameType", - "description": "車種名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "TripHeadSign": { - "title": "String", - "description": "車次之目的地方向描述", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StartingStationID": { + "EffectiveDate": { "title": "String", - "description": "列車起點車站代號", - "type": "string" - }, - "StartingStationName": { - "title": "NameType", - "description": "列車起點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "description": "有效起始日期", + "type": "string", + "xml": { + "name": "String" + } }, - "EndingStationID": { + "ExpireDate": { "title": "String", - "description": "列車終點車站代號", - "type": "string" - }, - "EndingStationName": { - "title": "NameType", - "description": "列車終點車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "description": "有效終止日期", + "type": "string", + "xml": { + "name": "String" + } }, - "OverNightStationID": { + "SrcVersion": { "title": "String", - "description": "跨夜車站代碼", - "type": "string" - }, - "TripLine": { - "format": "int32", - "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", - "type": "integer" + "description": "資料版本", + "type": "string", + "xml": { + "name": "String" + } }, - "WheelChairFlag": { - "format": "int32", - "title": "integer", - "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", - "type": "integer" + "ODFares": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare" + }, + "xml": { + "name": "List`1" + } }, - "PackageServiceFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供行李服務 : [0:'否',1:'是']", + "Count": { + "format": "int64", + "description": "資料總筆數", "type": "integer" + } + }, + "xml": { + "name": "TRAODFareWrapperOfODFare", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" + } + }, + "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert]": { + "title": "TRAAlertList", + "required": [ + "Alerts", + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" + ], + "type": "object", + "properties": { + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "DiningFlag": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "是否提供訂便當服務 : [0:'否',1:'是']", + "title": "Int32", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "BreastFeedFlag": { - "format": "int32", - "title": "integer", - "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", - "type": "integer" + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "BikeFlag": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "CarFlag": { - "format": "int32", - "title": "integer", - "description": "是否提供小客車 : [0:'否',1:'是']", - "type": "integer" + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "DailyFlag": { - "format": "int32", - "title": "integer", - "description": "是否為每日行駛 : [0:'否',1:'是']", - "type": "integer" + "Alerts": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert" + }, + "xml": { + "name": "List`1" + } }, - "ExtraTrainFlag": { - "format": "int32", - "title": "integer", - "description": "是否為加班車 : [0:'否',1:'是']", + "Count": { + "format": "int64", + "description": "資料總筆數", "type": "integer" - }, - "Note": { - "title": "String", - "description": "附註說明", - "type": "string" } + }, + "xml": { + "name": "TRARealTimeWrapperOfAlert", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime": { - "title": "StopTime", - "description": "台鐵停靠時間資料", + "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News]": { + "title": "TRANewsList", "required": [ - "ArrivalTime", - "DepartureTime", - "StationID", - "StationName", - "StopSequence" + "AuthorityCode", + "Newses", + "SrcUpdateInterval", + "SrcUpdateTime", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "StopSequence": { + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" + }, + "UpdateInterval": { "format": "int32", "title": "Int32", - "description": "停靠站序(由1開始)", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "StationID": { - "title": "String", - "description": "車站代碼", + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "StationName": { - "title": "NameType", - "description": "車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "SrcUpdateInterval": { + "format": "int32", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", + "type": "integer" }, - "ArrivalTime": { + "AuthorityCode": { "title": "String", - "description": "到站時間(格式: HH:mm)", - "type": "string" + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "DepartureTime": { - "title": "String", - "description": "離站時間(格式: HH:mm)", - "type": "string" + "Newses": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News" + }, + "xml": { + "name": "List`1" + } + }, + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRARealTimeWrapperOfNews", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.ServiceDay": { - "title": "ServiceDay", - "description": "台鐵服務日型態", + "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard]": { + "title": "TRAStationLiveBoardList", "required": [ - "DayAfterHoliday", - "DayBeforeHoliday", - "Friday", - "Monday", - "NationalHolidays", - "Saturday", - "Sunday", - "Thursday", - "Tuesday", - "TyphoonDay", - "Wednesday" + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "StationLiveBoards", + "UpdateInterval", + "UpdateTime" ], "type": "object", "properties": { - "ServiceTag": { - "title": "String", - "description": "服務日標籤", + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" }, - "Monday": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "星期一是否營運 : [0:'否',1:'是']", + "title": "Int32", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "Tuesday": { - "format": "int32", - "title": "integer", - "description": "星期二是否營運 : [0:'否',1:'是']", - "type": "integer" - }, - "Wednesday": { - "format": "int32", - "title": "integer", - "description": "星期三是否營運 : [0:'否',1:'是']", - "type": "integer" + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "Thursday": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "星期四是否營運 : [0:'否',1:'是']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "Friday": { - "format": "int32", - "title": "integer", - "description": "星期五是否營運 : [0:'否',1:'是']", - "type": "integer" + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Saturday": { - "format": "int32", - "title": "integer", - "description": "星期六是否營運 : [0:'否',1:'是']", - "type": "integer" + "StationLiveBoards": { + "title": "Array", + "description": "資料(陣列)", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard" + }, + "xml": { + "name": "List`1" + } }, - "Sunday": { - "format": "int32", - "title": "integer", - "description": "星期日是否營運 : [0:'否',1:'是']", + "Count": { + "format": "int64", + "description": "資料總筆數", "type": "integer" + } + }, + "xml": { + "name": "TRARealTimeWrapperOfStationLiveBoard", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" + } + }, + "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard]": { + "title": "TRATrainLiveBoardList", + "required": [ + "AuthorityCode", + "SrcUpdateInterval", + "SrcUpdateTime", + "TrainLiveBoards", + "UpdateInterval", + "UpdateTime" + ], + "type": "object", + "properties": { + "UpdateTime": { + "title": "DateTime", + "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "NationalHolidays": { + "UpdateInterval": { "format": "int32", - "title": "integer", - "description": "國定假日是否營運 : [0:'否',1:'是']", + "title": "Int32", + "description": "本平台資料更新週期(秒)", "type": "integer" }, - "DayBeforeHoliday": { - "format": "int32", - "title": "integer", - "description": "假日前一日是否營運 : [0:'否',1:'是']", - "type": "integer" + "SrcUpdateTime": { + "title": "DateTime", + "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "type": "string" }, - "DayAfterHoliday": { + "SrcUpdateInterval": { "format": "int32", - "title": "integer", - "description": "假日後一日是否營運 : [0:'否',1:'是']", + "title": "Int32", + "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", "type": "integer" }, - "TyphoonDay": { - "format": "int32", - "title": "integer", - "description": "颱風停止上班上課期間營運營運 : [0:'否',1:'是']", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable": { - "title": "GeneralTrainTimetable", - "description": "台鐵定期時刻表資料型別", - "required": [ - "ServiceDay", - "StopTimes", - "TrainInfo" - ], - "type": "object", - "properties": { - "TrainInfo": { - "title": "TrainInfo", - "description": "定期車次資料", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo" - } - ] + "AuthorityCode": { + "title": "String", + "description": "業管機關簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StopTimes": { + "TrainLiveBoards": { "title": "Array", - "description": "停靠時間資料", + "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard" + }, + "xml": { + "name": "List`1" } }, - "ServiceDay": { - "title": "ServiceDay", - "description": "營運日型態", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.ServiceDay" - } - ] + "Count": { + "format": "int64", + "description": "資料總筆數", + "type": "integer" } + }, + "xml": { + "name": "TRARealTimeWrapperOfTrainLiveBoard", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.API.Rail.Model.TRAGeneralTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable]": { - "title": "TRAGeneralTrainTimetableList", + "PTX.API.Rail.Model.TRASpecificWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable]": { + "title": "TRASpecificTrainTimetableList", "required": [ "AuthorityCode", "EffectiveDate", @@ -4234,7 +4269,10 @@ "AuthorityCode": { "title": "String", "description": "業管機關簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "EffectiveDate": { "title": "DateTime", @@ -4249,24 +4287,36 @@ "SrcVersion": { "title": "String", "description": "來源版號", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TimetableName": { "title": "String", "description": "定期性站別時刻表名稱", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ValidityDesciption": { "title": "String", "description": "時刻表適用情形說明", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TrainTimetables": { "title": "Array", "description": "資料(陣列)", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable" + }, + "xml": { + "name": "List`1" } }, "Count": { @@ -4274,686 +4324,1620 @@ "description": "資料總筆數", "type": "integer" } + }, + "xml": { + "name": "TRASpecificWrapperOfSpecificTrainTimetable", + "namespace": "http://www.w3.org/2001/XMLSchema-instance" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.Line": { - "title": "Line", - "description": "路線基本資料", + "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.ServiceDay": { + "title": "ServiceDay", + "description": "台鐵服務日型態", "required": [ - "IsBranch", - "LineID", - "LineName", - "LineNo", - "LineSectionName" + "DayAfterHoliday", + "DayBeforeHoliday", + "Friday", + "Monday", + "NationalHolidays", + "Saturday", + "Sunday", + "Thursday", + "Tuesday", + "TyphoonDay", + "Wednesday" ], "type": "object", "properties": { - "LineNo": { + "ServiceTag": { "title": "String", - "description": "路線編號", + "description": "服務日標籤", + "type": "string", + "xml": { + "name": "String" + } + }, + "Monday": { + "title": "integer", + "description": "星期一是否營運 : [0:'否',1:'是']", "type": "string" }, - "LineID": { - "title": "String", - "description": "路線代碼", + "Tuesday": { + "title": "integer", + "description": "星期二是否營運 : [0:'否',1:'是']", "type": "string" }, - "LineName": { - "title": "NameType", - "description": "路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Wednesday": { + "title": "integer", + "description": "星期三是否營運 : [0:'否',1:'是']", + "type": "string" }, - "LineSectionName": { - "title": "NameType", - "description": "路線區間名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Thursday": { + "title": "integer", + "description": "星期四是否營運 : [0:'否',1:'是']", + "type": "string" }, - "LineColor": { - "title": "String", - "description": "路線顏色", + "Friday": { + "title": "integer", + "description": "星期五是否營運 : [0:'否',1:'是']", "type": "string" }, - "IsBranch": { - "title": "Boolean", - "description": "是否位於支線", - "type": "boolean" + "Saturday": { + "title": "integer", + "description": "星期六是否營運 : [0:'否',1:'是']", + "type": "string" }, - "LineGroup": { - "title": "String", - "description": "路線群組", + "Sunday": { + "title": "integer", + "description": "星期日是否營運 : [0:'否',1:'是']", "type": "string" }, - "LineURL": { - "title": "String", - "description": "路線群組", + "NationalHolidays": { + "title": "integer", + "description": "國定假日是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "DayBeforeHoliday": { + "title": "integer", + "description": "假日前一日是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "DayAfterHoliday": { + "title": "integer", + "description": "假日後一日是否營運 : [0:'否',1:'是']", + "type": "string" + }, + "TyphoonDay": { + "title": "integer", + "description": "颱風停止上班上課期間營運營運 : [0:'否',1:'是']", "type": "string" } + }, + "xml": { + "name": "ServiceDay" } }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Line]": { - "title": "TRALineList", - "required": [ - "AuthorityCode", - "Lines", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" - ], + "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.SpecialDay": { + "title": "SpecialDay", + "description": "台鐵特定日期", "type": "object", "properties": { - "UpdateTime": { + "Dates": { + "title": "String", + "description": "不連續特殊日期", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartDate": { "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "開始日期", "type": "string" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { + "EndDate": { "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "description": "結束日期", "type": "string" }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", + "ServiceStatus": { + "title": "integer", + "description": "營運服務狀態代碼 : [0:'停止營運',1:'正常營運',2:'加班營運']", "type": "string" }, - "Lines": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Line" + "Description": { + "title": "String", + "description": "特殊營運描述", + "type": "string", + "xml": { + "name": "String" } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" } + }, + "xml": { + "name": "SpecialDay" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineSegment": { - "title": "LineSegment", - "description": "路線站點間線段資料", + "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime": { + "title": "StopTime", + "description": "台鐵停靠時間資料", "required": [ - "Distance", - "FromStationID", - "LineSegmentID", - "LineSegmentName", - "SegmentType", - "ToStationID" + "ArrivalTime", + "DepartureTime", + "StationID", + "StationName", + "StopSequence" ], "type": "object", "properties": { - "LineSegmentID": { + "StopSequence": { + "format": "int32", + "title": "Int32", + "description": "停靠站序(由1開始)", + "type": "integer" + }, + "StationID": { "title": "String", - "description": "線段代碼", - "type": "string" + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "LineSegmentName": { + "StationName": { "title": "NameType", - "description": "路段名稱", + "description": "車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "FromStationID": { - "title": "String", - "description": "線段起點站代碼", - "type": "string" + ], + "xml": { + "name": "NameType" + } }, - "ToStationID": { + "ArrivalTime": { "title": "String", - "description": "線段迄點站代碼", - "type": "string" + "description": "到站時間(格式: HH:mm)", + "type": "string", + "xml": { + "name": "String" + } }, - "SegmentType": { + "DepartureTime": { "title": "String", - "description": "線段種類 = ['M: 主路線', 'B: 分支路線']", - "type": "string" - }, - "Distance": { - "format": "float", - "title": "Single", - "description": "站間距離", - "type": "number" + "description": "離站時間(格式: HH:mm)", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "StopTime" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork": { - "title": "LineNetwork", - "description": "路線網路拓撲基本資料", + "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo": { + "title": "TrainInfo", + "description": "臺鐵車次定期資料型別(時刻表用)", "required": [ - "LineID", - "LineName" + "BikeFlag", + "BreastFeedFlag", + "CarFlag", + "DailyFlag", + "DiningFlag", + "Direction", + "ExtraTrainFlag", + "PackageServiceFlag", + "TrainNo", + "WheelChairFlag" ], "type": "object", "properties": { - "LineID": { + "TrainNo": { "title": "String", - "description": "路線編號", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteID": { + "title": "String", + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "行駛方向 : [0:'順行',1:'逆行']", "type": "string" }, - "LineName": { + "TrainTypeID": { + "title": "String", + "description": "車種代嗎", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeCode": { + "title": "String", + "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { "title": "NameType", - "description": "路線名稱", + "description": "車種名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "LineSegments": { - "title": "Array", - "description": "路線站點間線段資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineSegment" + ], + "xml": { + "name": "NameType" } - } - } - }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork]": { - "title": "TRALineNetworkList", - "required": [ - "AuthorityCode", - "LineNetworks", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" }, - "AuthorityCode": { + "TripHeadSign": { "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "LineNetworks": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork" + "description": "車次之目的地方向描述", + "type": "string", + "xml": { + "name": "String" } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer": { - "title": "LineTransfer", - "description": "台鐵路線站間轉乘基本資料", - "required": [ - "FromLineID", - "FromLineName", - "FromStationID", - "FromStationName", - "MinTransferTime", - "ToLineID", - "ToLineName", - "ToStationID", - "ToStationName", - "TransferDescription" - ], - "type": "object", - "properties": { - "FromLineID": { + "StartingStationID": { "title": "String", - "description": "路線間轉乘(起)之路線代碼", - "type": "string" + "description": "列車起點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "FromLineName": { + "StartingStationName": { "title": "NameType", - "description": "路線間轉乘(起)之路線名稱", + "description": "列車起點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "FromStationID": { + "EndingStationID": { "title": "String", - "description": "路線間轉乘(起)之車站代碼", - "type": "string" + "description": "列車終點車站代號", + "type": "string", + "xml": { + "name": "String" + } }, - "FromStationName": { + "EndingStationName": { "title": "NameType", - "description": "路線間轉乘(起)之車站名稱", + "description": "列車終點車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "ToLineID": { + "OverNightStationID": { "title": "String", - "description": "路線間轉乘(迄)之路線代碼", - "type": "string" - }, - "ToLineName": { - "title": "NameType", - "description": "路線間轉乘(迄)之路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "description": "跨夜車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "ToStationID": { - "title": "String", - "description": "路線間轉乘(迄)之車站代碼", + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", "type": "string" }, - "ToStationName": { - "title": "NameType", - "description": "路線間轉乘(迄)之車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "MinTransferTime": { - "format": "double", - "title": "Double", - "description": "轉乘耗時參考時間(分)", - "type": "number" - }, - "TransferDescription": { - "title": "String", - "description": "轉乘方式文字描述", - "type": "string" - } - } - }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer]": { - "title": "TRALineTransferList", - "required": [ - "AuthorityCode", - "LineTransfers", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "WheelChairFlag": { + "title": "integer", + "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", "type": "string" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" + "PackageServiceFlag": { + "title": "integer", + "description": "是否提供行李服務 : [0:'否',1:'是']", + "type": "string" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "DiningFlag": { + "title": "integer", + "description": "是否提供訂便當服務 : [0:'否',1:'是']", "type": "string" }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "BreastFeedFlag": { + "title": "integer", + "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", + "type": "string" }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", + "BikeFlag": { + "title": "integer", + "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", "type": "string" }, - "LineTransfers": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer" - } + "CarFlag": { + "title": "integer", + "description": "是否提供小客車 : [0:'否',1:'是']", + "type": "string" }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.MapNameType": { - "title": "MapNameType", - "type": "object", - "properties": { - "MapName": { - "title": "String", - "description": "路網圖名稱", + "DailyFlag": { + "title": "integer", + "description": "是否為每日行駛 : [0:'否',1:'是']", "type": "string" }, - "Zh_tw": { - "title": "String", - "description": "臺鐵路網圖網址(中文版)", + "ExtraTrainFlag": { + "title": "integer", + "description": "是否為加班車 : [0:'否',1:'是']", "type": "string" }, - "En": { + "Note": { "title": "String", - "description": "臺鐵路網圖網址(英文版)", - "type": "string" + "description": "附註說明", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "TrainInfo" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Line": { - "title": "Line", - "description": "路線基本資料", + "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable": { + "title": "StationTimetable", "required": [ - "LineID", - "LineNo" + "TimeTables" ], "type": "object", "properties": { - "LineNo": { + "RouteID": { "title": "String", - "description": "路線編號", - "type": "string" + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "LineID": { + "StationID": { "title": "String", - "description": "路線代碼", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Direction": { + "title": "integer", + "description": "行駛方向 : [0:'順行',1:'逆行']", "type": "string" + }, + "TimeTables": { + "title": "Array", + "description": "目的站車站名稱", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.TimeTable" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "StationTimetable" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network": { - "title": "Network", - "description": "臺鐵路網資料", + "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.TimeTable": { + "title": "TimeTable", "required": [ - "Lines", - "NetworkID", - "NetworkMapURL", - "NetworkName", - "OperatorCode", - "OperatorName" + "Sequence" ], "type": "object", "properties": { - "NetworkID": { + "Sequence": { + "format": "int32", + "title": "Int32", + "description": "發車順序", + "type": "integer" + }, + "TrainNo": { "title": "String", - "description": "臺鐵路網代碼", - "type": "string" + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "NetworkName": { + "DestinationStationID": { + "title": "String", + "description": "目的站車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStationName": { "title": "NameType", - "description": "臺鐵路網名稱", + "description": "目的站車站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "OperatorCode": { + "TrainTypeID": { "title": "String", - "description": "營運業者代碼", - "type": "string" + "description": "車種代嗎", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorName": { + "TrainTypeCode": { + "title": "String", + "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { "title": "NameType", - "description": "營運業者名稱", + "description": "車種名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "NetworkMapURL": { - "title": "MapNameType", - "description": "臺鐵路網圖網址URL", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.MapNameType" - } - ] + "ArrivalTime": { + "title": "String", + "description": "到站時刻", + "type": "string", + "xml": { + "name": "String" + } }, - "Lines": { - "title": "Array", - "description": "臺鐵路線資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Line" + "DepartureTime": { + "title": "String", + "description": "發車時刻", + "type": "string", + "xml": { + "name": "String" } } + }, + "xml": { + "name": "TimeTable" } }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network]": { - "title": "TRANetworkList", + "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.DiningFlagSection": { + "title": "DiningFlagSection", "required": [ - "AuthorityCode", - "Networks", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "EndSection", + "StartSection" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { + "StartSection": { + "title": "SectionAmong", + "description": "乘客出發站所屬區間", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong" + } + ], + "xml": { + "name": "SectionAmong" + } + }, + "EndSection": { + "title": "SectionAmong", + "description": "乘客目的站所屬區間", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong" + } + ], + "xml": { + "name": "SectionAmong" + } + } + }, + "xml": { + "name": "DiningFlagSection" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong": { + "title": "SectionAmong", + "required": [ + "EndStationID", + "StartStationID" + ], + "type": "object", + "properties": { + "StartStationID": { + "title": "String", + "description": "起站車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndStationID": { + "title": "String", + "description": "迄站車站代碼", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "SectionAmong" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.StopTime": { + "title": "StopTime", + "required": [ + "StationID", + "StationName", + "StopSequence" + ], + "type": "object", + "properties": { + "StopSequence": { "format": "int32", "title": "Int32", - "description": "本平台資料更新週期(秒)", + "description": "停靠站序", "type": "integer" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "ArrivalTime": { + "title": "String", + "description": "到站時間", + "type": "string", + "xml": { + "name": "String" + } + }, + "DepartureTime": { + "title": "String", + "description": "離站時間", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "StopTime" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainInfo": { + "title": "TrainInfo", + "required": [ + "BikeFlag", + "BreastFeedFlag", + "DailyFlag", + "DiningFlag", + "Direction", + "EndingStationName", + "ExtraTrainFlag", + "PackageServiceFlag", + "RouteID", + "StartingStationName", + "TrainNo", + "TrainTypeName", + "WheelChairFlag" + ], + "type": "object", + "properties": { + "TrainNo": { + "title": "String", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteID": { + "title": "String", + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "Direction": { + "title": "integer", + "description": "行駛方向 : [0:'順行',1:'逆行']", "type": "string" }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "TrainTypeID": { + "title": "String", + "description": "車種代嗎", + "type": "string", + "xml": { + "name": "String" + } }, - "AuthorityCode": { + "TrainTypeCode": { "title": "String", - "description": "業管機關簡碼", + "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { + "title": "NameType", + "description": "車種名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "TripHeadSign": { + "title": "String", + "description": "車次之目的地方向描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartingStationID": { + "title": "String", + "description": "車次之起始站車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartingStationName": { + "title": "NameType", + "description": "車次之起始站車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "EndingStationID": { + "title": "String", + "description": "車次之終點站車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "EndingStationName": { + "title": "NameType", + "description": "車次之終點站車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "OverNightStationID": { + "title": "String", + "description": "跨夜車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", "type": "string" }, - "Networks": { - "title": "Array", - "description": "資料(陣列)", + "WheelChairFlag": { + "title": "integer", + "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']", + "type": "string" + }, + "PackageServiceFlag": { + "title": "integer", + "description": "是否提供行李服務 : [0:'否',1:'是']", + "type": "string" + }, + "DiningFlag": { + "title": "integer", + "description": "是否提供訂便當服務 : [0:'否',1:'是']", + "type": "string" + }, + "DiningFlagSections": { + "title": "DiningFlagSection[]", + "description": "提供訂便當服務之車站區間", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.DiningFlagSection" + }, + "xml": { + "name": "DiningFlagSection[]" } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "BreastFeedFlag": { + "title": "integer", + "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']", + "type": "string" + }, + "BikeFlag": { + "title": "integer", + "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']", + "type": "string" + }, + "CarFlag": { + "title": "integer", + "description": "是否提供小汽車上火車服務 : [0:'否',1:'是']", + "type": "string" + }, + "DailyFlag": { + "title": "integer", + "description": "是否每日行駛 : [0:'否',1:'是']", + "type": "string" + }, + "ExtraTrainFlag": { + "title": "integer", + "description": "是否為加班車 : [0:'否',1:'是']", + "type": "string" + }, + "Note": { + "title": "String", + "description": "附註說明", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "TrainInfo" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News": { - "title": "News", + "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable": { + "title": "TrainTimetable", + "required": [ + "StopTimes", + "TrainInfo" + ], + "type": "object", + "properties": { + "TrainInfo": { + "title": "TrainInfo", + "description": "車次資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainInfo" + } + ], + "xml": { + "name": "TrainInfo" + } + }, + "StopTimes": { + "title": "Array", + "description": "停靠站資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.StopTime" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "TrainTimetable" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable": { + "title": "GeneralStationTimetable", + "description": "台鐵車站站別時刻表資料型別", + "required": [ + "Direction", + "ServiceDay", + "StationID", + "Timetables" + ], + "type": "object", + "properties": { + "RouteID": { + "title": "String", + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Direction": { + "title": "integer", + "description": "行駛方向 : [0:'順行',1:'逆行']", + "type": "string" + }, + "Timetables": { + "title": "Array", + "description": "車次停靠站資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.Timetable" + }, + "xml": { + "name": "List`1" + } + }, + "ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" + } + } + }, + "xml": { + "name": "GeneralStationTimetable" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.ServiceDay": { + "title": "ServiceDay", + "description": "服務日型態", + "required": [ + "Friday", + "Monday", + "Saturday", + "Sunday", + "Thursday", + "Tuesday", + "Wednesday" + ], + "type": "object", + "properties": { + "ServiceTag": { + "title": "String", + "description": "服務日標籤", + "type": "string", + "xml": { + "name": "String" + } + }, + "Monday": { + "title": "Boolean", + "description": "星期一營運與否", + "type": "boolean" + }, + "Tuesday": { + "title": "Boolean", + "description": "星期二營運與否", + "type": "boolean" + }, + "Wednesday": { + "title": "Boolean", + "description": "星期三營運與否", + "type": "boolean" + }, + "Thursday": { + "title": "Boolean", + "description": "星期四營運與否", + "type": "boolean" + }, + "Friday": { + "title": "Boolean", + "description": "星期五營運與否", + "type": "boolean" + }, + "Saturday": { + "title": "Boolean", + "description": "星期六營運與否", + "type": "boolean" + }, + "Sunday": { + "title": "Boolean", + "description": "星期日營運與否", + "type": "boolean" + }, + "NationalHolidays": { + "description": "國定假日營運與否", + "type": "boolean" + }, + "DayBeforeHoliday": { + "description": "假日前一日營運與否", + "type": "boolean" + }, + "DayAfterHoliday": { + "description": "假日後一日營運與否", + "type": "boolean" + }, + "TyphoonDay": { + "description": "颱風停止上班上課期間營運與否", + "type": "boolean" + } + }, + "xml": { + "name": "ServiceDay" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.Timetable": { + "title": "Timetable", + "description": "車次停靠站資料", + "type": "object", + "properties": { + "Sequence": { + "format": "int32", + "title": "Int32", + "description": "發車順序", + "type": "integer" + }, + "TrainNo": { + "title": "String", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStationID": { + "title": "String", + "description": "目的站車站代號", + "type": "string", + "xml": { + "name": "String" + } + }, + "DestinationStationName": { + "title": "NameType", + "description": "目的站車站", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "TrainTypeID": { + "title": "String", + "description": "車種代嗎", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeCode": { + "title": "String", + "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", + "type": "string", + "xml": { + "name": "String" + } + }, + "TrainTypeName": { + "title": "NameType", + "description": "車種名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "ArrivalTime": { + "title": "String", + "description": "到站時刻", + "type": "string", + "xml": { + "name": "String" + } + }, + "DepartureTime": { + "title": "String", + "description": "發車時刻", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Timetable" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable": { + "title": "GeneralTrainTimetable", + "description": "台鐵定期時刻表資料型別", + "required": [ + "ServiceDay", + "StopTimes", + "TrainInfo" + ], + "type": "object", + "properties": { + "TrainInfo": { + "title": "TrainInfo", + "description": "定期車次資料", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo" + } + ], + "xml": { + "name": "TrainInfo" + } + }, + "StopTimes": { + "title": "Array", + "description": "停靠時間資料", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime" + }, + "xml": { + "name": "List`1" + } + }, + "ServiceDay": { + "title": "ServiceDay", + "description": "營運日型態", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.ServiceDay" + } + ], + "xml": { + "name": "ServiceDay" + } + } + }, + "xml": { + "name": "GeneralTrainTimetable" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.Line": { + "title": "Line", + "description": "路線基本資料", + "required": [ + "IsBranch", + "LineID", + "LineName", + "LineNo", + "LineSectionName" + ], + "type": "object", + "properties": { + "LineNo": { + "title": "String", + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineID": { + "title": "String", + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "LineSectionName": { + "title": "NameType", + "description": "路線區間名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "LineColor": { + "title": "String", + "description": "路線顏色", + "type": "string", + "xml": { + "name": "String" + } + }, + "IsBranch": { + "title": "Boolean", + "description": "是否位於支線", + "type": "boolean" + }, + "LineGroup": { + "title": "String", + "description": "路線群組", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineURL": { + "title": "String", + "description": "路線群組", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Line" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork": { + "title": "LineNetwork", + "description": "路線網路拓撲基本資料", + "required": [ + "LineID", + "LineName" + ], + "type": "object", + "properties": { + "LineID": { + "title": "String", + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineName": { + "title": "NameType", + "description": "路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "LineSegments": { + "title": "Array", + "description": "路線站點間線段資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineSegment" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "LineNetwork" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineSegment": { + "title": "LineSegment", + "description": "路線站點間線段資料", + "required": [ + "Distance", + "FromStationID", + "LineSegmentID", + "LineSegmentName", + "SegmentType", + "ToStationID" + ], + "type": "object", + "properties": { + "LineSegmentID": { + "title": "String", + "description": "線段代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "LineSegmentName": { + "title": "NameType", + "description": "路段名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "FromStationID": { + "title": "String", + "description": "線段起點站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "ToStationID": { + "title": "String", + "description": "線段迄點站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "SegmentType": { + "title": "String", + "description": "線段種類 = ['M: 主路線', 'B: 分支路線']", + "type": "string", + "xml": { + "name": "String" + } + }, + "Distance": { + "format": "float", + "title": "Single", + "description": "站間距離", + "type": "number" + } + }, + "xml": { + "name": "LineSegment" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer": { + "title": "LineTransfer", + "description": "台鐵路線站間轉乘基本資料", + "required": [ + "FromLineID", + "FromLineName", + "FromStationID", + "FromStationName", + "MinTransferTime", + "ToLineID", + "ToLineName", + "ToStationID", + "ToStationName", + "TransferDescription" + ], + "type": "object", + "properties": { + "FromLineID": { + "title": "String", + "description": "路線間轉乘(起)之路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "FromLineName": { + "title": "NameType", + "description": "路線間轉乘(起)之路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "FromStationID": { + "title": "String", + "description": "路線間轉乘(起)之車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "FromStationName": { + "title": "NameType", + "description": "路線間轉乘(起)之車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "ToLineID": { + "title": "String", + "description": "路線間轉乘(迄)之路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "ToLineName": { + "title": "NameType", + "description": "路線間轉乘(迄)之路線名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "ToStationID": { + "title": "String", + "description": "路線間轉乘(迄)之車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "ToStationName": { + "title": "NameType", + "description": "路線間轉乘(迄)之車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "MinTransferTime": { + "format": "double", + "title": "Double", + "description": "轉乘耗時參考時間(分)", + "type": "number" + }, + "TransferDescription": { + "title": "String", + "description": "轉乘方式文字描述", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "LineTransfer" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Line": { + "title": "Line", + "description": "路線基本資料", "required": [ - "Description", - "Language", - "NewsCategory", - "NewsID", - "PublishTime", - "Title", - "UpdateTime" + "LineID", + "LineNo" ], "type": "object", "properties": { - "NewsID": { - "title": "String", - "description": "消息代碼", - "type": "string" - }, - "Language": { - "format": "int32", - "title": "integer", - "description": "語系 : [1:'Zh_tw',2:'En_us',3:'Zh_cn',4:'Ja',5:'Ko',99:'Other']", - "type": "integer" - }, - "Department": { + "LineNo": { "title": "String", - "description": "發布單位", - "type": "string" + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "Title": { + "LineID": { "title": "String", - "description": "消息標題", - "type": "string" - }, - "NewsCategory": { - "format": "int32", - "title": "integer", - "description": "消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他']", - "type": "integer" - }, - "Description": { + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "Line" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.MapNameType": { + "title": "MapNameType", + "type": "object", + "properties": { + "MapName": { "title": "String", - "description": "內容描述", - "type": "string" + "description": "路網圖名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "NewsURL": { + "Zh_tw": { "title": "String", - "description": "消息網址連結", - "type": "string" + "description": "臺鐵路網圖網址(中文版)", + "type": "string", + "xml": { + "name": "String" + } }, - "AttachmentURL": { + "En": { "title": "String", - "description": "附件網址連結", - "type": "string" - }, - "StartTime": { - "title": "DateTime", - "description": "消息起始日期時間", - "type": "string" - }, - "EndTime": { - "title": "DateTime", - "description": "消息結束日期時間", - "type": "string" - }, - "PublishTime": { - "title": "DateTime", - "description": "消息發佈日期時間", - "type": "string" - }, - "UpdateTime": { - "title": "DateTime", - "description": "本筆資料之更新日期時間", - "type": "string" + "description": "臺鐵路網圖網址(英文版)", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "MapNameType" } }, - "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News]": { - "title": "TRANewsList", + "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network": { + "title": "Network", + "description": "臺鐵路網資料", "required": [ - "AuthorityCode", - "Newses", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" + "Lines", + "NetworkID", + "NetworkMapURL", + "NetworkName", + "OperatorCode", + "OperatorName" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "NetworkID": { + "title": "String", + "description": "臺鐵路網代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" + "NetworkName": { + "title": "NameType", + "description": "臺鐵路網名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "OperatorCode": { + "title": "String", + "description": "營運業者代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "OperatorName": { + "title": "NameType", + "description": "營運業者名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" + "NetworkMapURL": { + "title": "MapNameType", + "description": "臺鐵路網圖網址URL", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.MapNameType" + } + ], + "xml": { + "name": "MapNameType" + } }, - "Newses": { + "Lines": { "title": "Array", - "description": "資料(陣列)", + "description": "臺鐵路線資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Line" + }, + "xml": { + "name": "List`1" } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" } + }, + "xml": { + "name": "Network" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.Fare": { @@ -4990,6 +5974,9 @@ "description": "計費價格(新台幣)", "type": "integer" } + }, + "xml": { + "name": "Fare" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare": { @@ -5007,7 +5994,10 @@ "OriginStationID": { "title": "String", "description": "起點車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OriginStationName": { "title": "NameType", @@ -5016,12 +6006,18 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "DestinationStationID": { "title": "String", "description": "迄點車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "DestinationStationName": { "title": "NameType", @@ -5030,13 +6026,15 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Direction": { - "format": "int32", "title": "integer", "description": "方向 : [0:'順行',1:'逆行']", - "type": "integer" + "type": "string" }, "TrainType": { "format": "int32", @@ -5050,6 +6048,9 @@ "type": "array", "items": { "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.Fare" + }, + "xml": { + "name": "List`1" } }, "TravelDistance": { @@ -5057,75 +6058,9 @@ "description": "起迄站間乘車距離", "type": "number" } - } - }, - "PTX.API.Rail.Model.TRAODFareWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare]": { - "title": "TRAODFareList", - "required": [ - "AuthorityCode", - "ODFares", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "EffectiveDate": { - "title": "String", - "description": "有效起始日期", - "type": "string" - }, - "ExpireDate": { - "title": "String", - "description": "有效終止日期", - "type": "string" - }, - "SrcVersion": { - "title": "String", - "description": "資料版本", - "type": "string" - }, - "ODFares": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare" - } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - } + }, + "xml": { + "name": "ODFare" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.Operator": { @@ -5140,7 +6075,10 @@ "OperatorCode": { "title": "String", "description": "營運業者簡碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorName": { "title": "NameType", @@ -5149,97 +6087,70 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "OperatorPhone": { "title": "String", "description": "營運業者連絡電話", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorEmail": { "title": "String", "description": "營運業者電子信箱", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorURL": { "title": "String", "description": "營運業者網址連結", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "FareURL": { "title": "String", "description": "營運業者票價查詢網站連結", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ReservationURL": { "title": "String", "description": "營運業者訂票網站", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ReservationPhone": { "title": "String", "description": "營運業者訂票電話", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "OperatorLogoURL": { "title": "String", "description": "營運業者Logo網址", - "type": "string" - } - } - }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Operator]": { - "title": "TRAOperatorList", - "required": [ - "AuthorityCode", - "Operators", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Operators": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Operator" + "type": "string", + "xml": { + "name": "String" } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" } + }, + "xml": { + "name": "Operator" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.Shape": { @@ -5257,12 +6168,18 @@ "LineNo": { "title": "String", "description": "路線編號", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "LineID": { "title": "String", "description": "路線代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "LineName": { "title": "NameType", @@ -5271,105 +6188,27 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "Geometry": { "title": "String", "description": "well-known text,為路線軌跡資料", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "UpdateTime": { "title": "DateTime", "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", "type": "string" } - } - }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Shape]": { - "title": "TRAShapeList", - "required": [ - "AuthorityCode", - "Shapes", - "SrcUpdateInterval", - "SrcUpdateTime", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Shapes": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Shape" - } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.SpecialDay": { - "title": "SpecialDay", - "description": "台鐵特定日期", - "type": "object", - "properties": { - "Dates": { - "title": "String", - "description": "不連續特殊日期", - "type": "string" - }, - "StartDate": { - "title": "DateTime", - "description": "開始日期", - "type": "string" - }, - "EndDate": { - "title": "DateTime", - "description": "結束日期", - "type": "string" - }, - "ServiceStatus": { - "format": "int32", - "title": "integer", - "description": "營運服務狀態代碼 : [0:'停止營運',1:'正常營運',2:'加班營運']", - "type": "integer" - }, - "Description": { - "title": "String", - "description": "特殊營運描述", - "type": "string" - } + }, + "xml": { + "name": "Shape" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable": { @@ -5389,7 +6228,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo" } - ] + ], + "xml": { + "name": "TrainInfo" + } }, "StopTimes": { "title": "Array", @@ -5397,6 +6239,9 @@ "type": "array", "items": { "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime" + }, + "xml": { + "name": "List`1" } }, "SpecialDay": { @@ -5404,107 +6249,16 @@ "description": "營運日型態", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.SpecialDay" - } - ] - } - } - }, - "PTX.API.Rail.Model.TRASpecificWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable]": { - "title": "TRASpecificTrainTimetableList", - "required": [ - "AuthorityCode", - "EffectiveDate", - "SrcUpdateInterval", - "SrcUpdateTime", - "TrainTimetables", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "EffectiveDate": { - "title": "DateTime", - "description": "有效起始日期", - "type": "string" - }, - "ExpireDate": { - "title": "DateTime", - "description": "有效終止日期", - "type": "string" - }, - "SrcVersion": { - "title": "String", - "description": "來源版號", - "type": "string" - }, - "TimetableName": { - "title": "String", - "description": "定期性站別時刻表名稱", - "type": "string" - }, - "ValidityDesciption": { - "title": "String", - "description": "時刻表適用情形說明", - "type": "string" - }, - "TrainTimetables": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable" - } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Shared.Specification.V3.Base.PointType": { - "title": "PointType", - "description": "座標資料型別", - "type": "object", - "properties": { - "PositionLat": { - "format": "double", - "description": "位置緯度(WGS84)", - "type": "number" - }, - "PositionLon": { - "format": "double", - "description": "位置經度(WGS84)", - "type": "number" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.SpecialDay" + } + ], + "xml": { + "name": "SpecialDay" + } } + }, + "xml": { + "name": "SpecificTrainTimetable" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.Station": { @@ -5521,17 +6275,26 @@ "StationUID": { "title": "String", "description": "臺鐵車站唯一識別代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationID": { "title": "String", "description": "臺鐵車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ReservationCode": { "title": "String", "description": "訂票車站代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", @@ -5540,7 +6303,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "StationPosition": { "title": "PointType", @@ -5549,82 +6315,46 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" } - ] + ], + "xml": { + "name": "PointType" + } }, "StationAddress": { "title": "String", "description": "車站地址", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationPhone": { "title": "String", "description": "車站聯絡電話", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationClass": { "title": "String", "description": "車站級別 = ['0: 特等', '1: 一等', '2: 二等', '3: 三等', '4: 簡易', '5: 招呼', '6: 號誌', 'A: 貨運', 'B: 基地', 'X: 非車']", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationURL": { "title": "String", "description": "車站資訊說明網址", - "type": "string" - } - } - }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Station]": { - "title": "TRAStationList", - "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "Stations", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "Stations": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Station" + "type": "string", + "xml": { + "name": "String" } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" } + }, + "xml": { + "name": "Station" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.Exit": { @@ -5641,7 +6371,10 @@ "ExitID": { "title": "String", "description": "出入口代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "ExitName": { "title": "NameType", @@ -5650,7 +6383,10 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "ExitPosition": { "title": "PointType", @@ -5659,22 +6395,34 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType" } - ] + ], + "xml": { + "name": "PointType" + } }, "Bearing": { "title": "String", "description": "出入口所在道路路段方位角", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "RoadName": { "title": "String", "description": "出入口所在道路名稱", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "LocationDescription": { "title": "String", "description": "地址描述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Stair": { "title": "Boolean", @@ -5692,6 +6440,9 @@ "description": "是否有電梯", "type": "boolean" } + }, + "xml": { + "name": "Exit" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.ExitMapURL": { @@ -5708,18 +6459,30 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "MapURL": { "title": "String", "description": "車站出入口簡圖網址", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "FloorLevel": { "title": "String", "description": "樓層", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "ExitMapURL" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit": { @@ -5734,8 +6497,239 @@ "properties": { "StationID": { "title": "String", - "description": "出入口所屬車站代碼", - "type": "string" + "description": "出入口所屬車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "Exits": { + "title": "Array", + "description": "車站出入口", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.Exit" + }, + "xml": { + "name": "List`1" + } + }, + "ExitMapURLs": { + "title": "Array", + "description": "車站出入口簡圖網址連結資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.ExitMapURL" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "StationExit" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo": { + "title": "FacilityInfo", + "required": [ + "Description" + ], + "type": "object", + "properties": { + "Description": { + "title": "String", + "description": "位置描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "FloorLevel": { + "title": "String", + "description": "樓層", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "FacilityInfo" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityMapURL": { + "title": "FacilityMapURL", + "description": "車站設施簡圖網址連結資訊", + "required": [ + "MapName", + "MapURL" + ], + "type": "object", + "properties": { + "MapName": { + "title": "NameType", + "description": "車站設施簡圖名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "MapURL": { + "title": "String", + "description": "車站設施簡圖網址", + "type": "string", + "xml": { + "name": "String" + } + }, + "FloorLevel": { + "title": "String", + "description": "樓層", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "FacilityMapURL" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility": { + "title": "StationFacility", + "description": "車站設施資訊", + "required": [ + "DrinkingFountains", + "Elevators", + "FacilityMapURLs", + "InformationSpots", + "StationID", + "StationName", + "Toilets" + ], + "type": "object", + "properties": { + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "FacilityMapURLs": { + "title": "Array", + "description": "車站出入口", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityMapURL" + }, + "xml": { + "name": "List`1" + } + }, + "Elevators": { + "title": "Array", + "description": "無障礙電梯位置資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo" + }, + "xml": { + "name": "List`1" + } + }, + "InformationSpots": { + "title": "Array", + "description": "詢問處位置資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo" + }, + "xml": { + "name": "List`1" + } + }, + "DrinkingFountains": { + "title": "Array", + "description": "飲水機位置資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo" + }, + "xml": { + "name": "List`1" + } + }, + "Toilets": { + "title": "Array", + "description": "廁所位置資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "StationFacility" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.LineStation": { + "title": "LineStation", + "description": "路線車站資訊", + "required": [ + "CumulativeDistance", + "Sequence", + "StationID", + "StationName" + ], + "type": "object", + "properties": { + "Sequence": { + "format": "int32", + "title": "Int32", + "description": "站序", + "type": "integer" + }, + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", @@ -5744,611 +6738,772 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "Exits": { - "title": "Array", - "description": "車站出入口", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.Exit" + ], + "xml": { + "name": "NameType" } }, - "ExitMapURLs": { - "title": "Array", - "description": "車站出入口簡圖網址連結資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.ExitMapURL" - } + "CumulativeDistance": { + "format": "float", + "title": "Single", + "description": "已累積之里程距離(公里)", + "type": "number" } + }, + "xml": { + "name": "LineStation" } }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit]": { - "title": "TRAStationExitList", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine": { + "title": "StationOfLine", + "description": "路線車站基本資料", "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "StationExits", - "UpdateInterval", - "UpdateTime" + "LineID", + "LineNo", + "Stations" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "LineNo": { + "title": "String", + "description": "路線編號", + "type": "string", + "xml": { + "name": "String" + } }, - "AuthorityCode": { + "LineID": { "title": "String", - "description": "業管機關簡碼", - "type": "string" + "description": "路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationExits": { + "Stations": { "title": "Array", - "description": "資料(陣列)", + "description": "路線車站資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.LineStation" + }, + "xml": { + "name": "List`1" } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" } + }, + "xml": { + "name": "StationOfLine" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityMapURL": { - "title": "FacilityMapURL", - "description": "車站設施簡圖網址連結資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.AirportTransfer": { + "title": "AirportTransfer", + "description": "航空運具轉乘資訊", "required": [ - "MapName", - "MapURL" + "AirportID", + "AirportName", + "Mode", + "OperatorCode", + "OperatorName" ], "type": "object", "properties": { - "MapName": { + "Mode": { + "title": "String", + "description": "運具種類代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorCode": { + "title": "String", + "description": "機場營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { "title": "NameType", - "description": "車站設施簡圖名稱", + "description": "機場營運業者名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "MapURL": { + "AirportID": { "title": "String", - "description": "車站設施簡圖網址", - "type": "string" + "description": "機場代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "AirportName": { + "title": "NameType", + "description": "機場名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "MinTransferTime": { + "format": "double", + "description": "最短轉乘時間", + "type": "number" }, "FloorLevel": { "title": "String", - "description": "樓層", - "type": "string" + "description": "轉乘樓層", + "type": "string", + "xml": { + "name": "String" + } + }, + "Description": { + "title": "String", + "description": "轉乘描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "IsOnSiteTransfer": { + "description": "是否為站內或站外轉乘", + "type": "boolean" } + }, + "xml": { + "name": "AirportTransfer" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo": { - "title": "FacilityInfo", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BikeTransfer": { + "title": "BikeTransfer", + "description": "公共自行車轉乘資訊", "required": [ - "Description" + "Mode", + "OperatorCode", + "OperatorName", + "StationID", + "StationName" ], "type": "object", "properties": { - "Description": { + "Mode": { "title": "String", - "description": "位置描述", - "type": "string" + "description": "運具種類代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorCode": { + "title": "String", + "description": "公共自行車營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { + "title": "NameType", + "description": "公共自行車營運業者名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "StationID": { + "title": "String", + "description": "公共自行車租借站位代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "StationName": { + "title": "NameType", + "description": "公共自行車租借站位名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "MinTransferTime": { + "format": "double", + "description": "最短轉乘時間", + "type": "number" }, "FloorLevel": { "title": "String", - "description": "樓層", - "type": "string" + "description": "轉乘樓層", + "type": "string", + "xml": { + "name": "String" + } + }, + "Description": { + "title": "String", + "description": "轉乘描述", + "type": "string", + "xml": { + "name": "String" + } + }, + "IsOnSiteTransfer": { + "description": "是否為站內或站外轉乘", + "type": "boolean" } + }, + "xml": { + "name": "BikeTransfer" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility": { - "title": "StationFacility", - "description": "車站設施資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BusTransfer": { + "title": "BusTransfer", + "description": "公車運具轉乘資訊", "required": [ - "DrinkingFountains", - "Elevators", - "FacilityMapURLs", - "InformationSpots", - "StationID", - "StationName", - "Toilets" + "Destination", + "Mode", + "OperatorCode", + "OperatorName", + "RouteID", + "RouteName", + "StopID", + "StopName" ], "type": "object", "properties": { - "StationID": { + "Mode": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "運具種類代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "OperatorCode": { + "title": "String", + "description": "公車營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { + "title": "NameType", + "description": "公車營運業者名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "RouteID": { + "title": "String", + "description": "轉乘公車路線代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "RouteName": { "title": "NameType", - "description": "車站名稱", + "description": "轉乘公車路線名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "FacilityMapURLs": { - "title": "Array", - "description": "車站出入口", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityMapURL" + ], + "xml": { + "name": "NameType" } }, - "Elevators": { - "title": "Array", - "description": "無障礙電梯位置資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo" + "StopID": { + "title": "String", + "description": "轉乘公車站牌代碼", + "type": "string", + "xml": { + "name": "String" } }, - "InformationSpots": { - "title": "Array", - "description": "詢問處位置資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo" + "StopName": { + "title": "NameType", + "description": "轉乘公車站牌名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" } }, - "DrinkingFountains": { - "title": "Array", - "description": "飲水機位置資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo" + "Destination": { + "title": "String", + "description": "轉乘公車開往方向", + "type": "string", + "xml": { + "name": "String" } }, - "Toilets": { - "title": "Array", - "description": "廁所位置資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo" - } - } - } - }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility]": { - "title": "TRAStationFacilityList", - "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "StationFacilities", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "MinTransferTime": { + "format": "double", + "description": "最短轉乘時間", + "type": "number" }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" + "FloorLevel": { + "title": "String", + "description": "轉乘樓層", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Description": { + "title": "String", + "description": "轉乘描述", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "IsOnSiteTransfer": { + "description": "是否為站內或站外轉乘", + "type": "boolean" }, - "AuthorityCode": { + "Platform": { "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "StationFacilities": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility" + "description": "轉乘公車所在月台", + "type": "string", + "xml": { + "name": "String" } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" } + }, + "xml": { + "name": "BusTransfer" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard": { - "title": "StationLiveBoard", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.FerryTransfer": { + "title": "FerryTransfer", + "description": "航運轉乘資訊", "required": [ - "DelayTime", - "EndingStationName", - "StationID", - "StationName", - "TrainNo", - "TrainTypeName", - "UpdateTime" + "FerryStationName", + "Mode", + "OperatorCode", + "OperatorName" ], "type": "object", "properties": { - "StationID": { - "title": "String", - "description": "車站代號", - "type": "string" - }, - "StationName": { - "title": "NameType", - "description": "車站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "TrainNo": { - "title": "String", - "description": "車次代碼", - "type": "string" - }, - "Direction": { - "format": "int32", - "title": "integer", - "description": "行駛方向 : [0:'順行',1:'逆行']", - "type": "integer" - }, - "TrainTypeID": { + "Mode": { "title": "String", - "description": "車種代嗎", - "type": "string" + "description": "運具種類代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeCode": { + "OperatorCode": { "title": "String", - "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", - "type": "string" + "description": "航運營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TrainTypeName": { + "OperatorName": { "title": "NameType", - "description": "車種名稱", + "description": "航運營運業者名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "EndingStationID": { + "FerryStationID": { "title": "String", - "description": "終點站代碼", - "type": "string" + "description": "計程車招呼站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "EndingStationName": { + "FerryStationName": { "title": "NameType", - "description": "終點站名稱", + "description": "計程車招呼站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "TripLine": { - "format": "int32", - "title": "integer", - "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", - "type": "integer" + "MinTransferTime": { + "format": "double", + "description": "最短轉乘時間", + "type": "number" }, - "Platform": { + "FloorLevel": { "title": "String", - "description": "停靠月台(00代表當時尚未確定停靠的月台,待確定好停靠的月台後,就會更新Platfrom。)", - "type": "string" + "description": "轉乘樓層", + "type": "string", + "xml": { + "name": "String" + } }, - "ScheduleArrivalTime": { + "Description": { "title": "String", - "description": "表訂到站時刻", - "type": "string" + "description": "轉乘描述", + "type": "string", + "xml": { + "name": "String" + } }, - "ScheduleDepartureTime": { + "IsOnSiteTransfer": { + "description": "是否為站內或站外轉乘", + "type": "boolean" + } + }, + "xml": { + "name": "FerryTransfer" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL": { + "title": "MapURL", + "description": "轉乘地圖簡圖連結資訊", + "required": [ + "MapName", + "MapURL" + ], + "type": "object", + "properties": { + "MapName": { "title": "String", - "description": "表定離站時刻", - "type": "string" - }, - "DelayTime": { - "format": "int32", - "title": "Int32", - "description": "延誤分鐘", - "type": "integer" + "description": "地圖名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "RunningStatus": { - "format": "int32", - "title": "integer", - "description": "列車狀態 : [0:'準點',1:'誤點',2:'取消']", - "type": "integer" + "MapURL": { + "title": "String", + "description": "地圖簡圖連結", + "type": "string", + "xml": { + "name": "String" + } }, - "UpdateTime": { - "title": "DateTime", - "description": "本筆資料之更新日期時間", - "type": "string" + "FloorLevel": { + "title": "String", + "description": "樓層", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "MapURL" } }, - "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard]": { - "title": "TRAStationLiveBoardList", - "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "StationLiveBoards", - "UpdateInterval", - "UpdateTime" + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.ParkingTransfer": { + "title": "ParkingTransfer", + "description": "停車場轉乘資訊", + "required": [ + "CarParkID", + "CarParkName", + "Mode" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "Mode": { + "title": "String", + "description": "運具種類代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" + "CarParkID": { + "title": "String", + "description": "停車場代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "CarParkName": { + "title": "NameType", + "description": "停車場名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "MinTransferTime": { + "format": "double", + "description": "最短轉乘時間", + "type": "number" }, - "AuthorityCode": { + "FloorLevel": { "title": "String", - "description": "業管機關簡碼", - "type": "string" + "description": "轉乘樓層", + "type": "string", + "xml": { + "name": "String" + } }, - "StationLiveBoards": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard" + "Description": { + "title": "String", + "description": "轉乘描述", + "type": "string", + "xml": { + "name": "String" } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "IsOnSiteTransfer": { + "description": "是否為站內或站外轉乘", + "type": "boolean" } + }, + "xml": { + "name": "ParkingTransfer" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.LineStation": { - "title": "LineStation", - "description": "路線車站資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.RailTransfer": { + "title": "RailTransfer", + "description": "軌道轉乘資訊", "required": [ - "CumulativeDistance", - "Sequence", + "Mode", + "OperatorCode", + "OperatorName", "StationID", "StationName" ], "type": "object", "properties": { - "Sequence": { - "format": "int32", - "title": "Int32", - "description": "站序", - "type": "integer" + "Mode": { + "title": "String", + "description": "運具種類代碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorCode": { + "title": "String", + "description": "軌道營運業者簡碼", + "type": "string", + "xml": { + "name": "String" + } + }, + "OperatorName": { + "title": "NameType", + "description": "軌道營運業者名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, "StationID": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "軌道場站代碼", + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", - "description": "車站名稱", + "description": "軌道場站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "CumulativeDistance": { - "format": "float", - "title": "Single", - "description": "已累積之里程距離(公里)", + "MinTransferTime": { + "format": "double", + "description": "最短轉乘時間", "type": "number" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine": { - "title": "StationOfLine", - "description": "路線車站基本資料", - "required": [ - "LineID", - "LineNo", - "Stations" - ], - "type": "object", - "properties": { - "LineNo": { - "title": "String", - "description": "路線編號", - "type": "string" }, - "LineID": { + "FloorLevel": { "title": "String", - "description": "路線代碼", - "type": "string" + "description": "轉乘樓層", + "type": "string", + "xml": { + "name": "String" + } }, - "Stations": { - "title": "Array", - "description": "路線車站資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.LineStation" + "Description": { + "title": "String", + "description": "轉乘描述", + "type": "string", + "xml": { + "name": "String" } + }, + "IsOnSiteTransfer": { + "description": "是否為站內或站外轉乘", + "type": "boolean" } + }, + "xml": { + "name": "RailTransfer" } }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine]": { - "title": "TRAStationOfLineList", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer": { + "title": "StationTransfer", + "description": "車站跨運具轉乘資訊", "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "StationOfLines", - "UpdateInterval", - "UpdateTime" + "ExteriorMapURLs", + "InteriorMapURLs", + "StationID", + "StationName", + "Transfers" ], "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" + "StationName": { + "title": "NameType", + "description": "車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } }, - "AuthorityCode": { + "TransferDescription": { "title": "String", - "description": "業管機關簡碼", - "type": "string" + "description": "轉乘文字描述", + "type": "string", + "xml": { + "name": "String" + } }, - "StationOfLines": { + "InteriorMapURLs": { "title": "Array", - "description": "資料(陣列)", + "description": "車站內部地圖簡圖連結資訊", "type": "array", "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL" + }, + "xml": { + "name": "List`1" } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL": { - "title": "MapURL", - "description": "轉乘地圖簡圖連結資訊", - "required": [ - "MapName", - "MapURL" - ], - "type": "object", - "properties": { - "MapName": { - "title": "String", - "description": "地圖名稱", - "type": "string" - }, - "MapURL": { - "title": "String", - "description": "地圖簡圖連結", - "type": "string" + "ExteriorMapURLs": { + "title": "Array", + "description": "外部轉乘地圖簡圖連結資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL" + }, + "xml": { + "name": "List`1" + } }, - "FloorLevel": { - "title": "String", - "description": "樓層", - "type": "string" + "Transfers": { + "title": "Array", + "description": "跨運具轉乘資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.Transfer" + }, + "xml": { + "name": "List`1" + } } + }, + "xml": { + "name": "StationTransfer" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.RailTransfer": { - "title": "RailTransfer", - "description": "軌道轉乘資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.TaxiTransfer": { + "title": "TaxiTransfer", + "description": "計程車轉乘資訊", "required": [ "Mode", - "OperatorCode", - "OperatorName", - "StationID", - "StationName" + "TaxiStopName" ], "type": "object", "properties": { "Mode": { "title": "String", "description": "運具種類代碼", - "type": "string" - }, - "OperatorCode": { - "title": "String", - "description": "軌道營運業者簡碼", - "type": "string" - }, - "OperatorName": { - "title": "NameType", - "description": "軌道營運業者名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "type": "string", + "xml": { + "name": "String" + } }, - "StationID": { + "TaxiStopID": { "title": "String", - "description": "軌道場站代碼", - "type": "string" + "description": "計程車招呼站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "TaxiStopName": { "title": "NameType", - "description": "軌道場站名稱", + "description": "計程車招呼站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "MinTransferTime": { "format": "double", @@ -6358,601 +7513,792 @@ "FloorLevel": { "title": "String", "description": "轉乘樓層", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "Description": { "title": "String", "description": "轉乘描述", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "IsOnSiteTransfer": { "description": "是否為站內或站外轉乘", "type": "boolean" } + }, + "xml": { + "name": "TaxiTransfer" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BusTransfer": { - "title": "BusTransfer", - "description": "公車運具轉乘資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.Transfer": { + "title": "Transfer", + "description": "跨運具轉乘資訊", "required": [ - "Destination", - "Mode", - "OperatorCode", - "OperatorName", - "RouteID", - "RouteName", - "StopID", - "StopName" + "AirportTransfers", + "BikeTransfers", + "BusTransfers", + "ExitID", + "ExitName", + "FerryTransfers", + "ParkingTransfers", + "RailTransfers", + "TaxiTransfers" ], "type": "object", "properties": { - "Mode": { + "ExitID": { "title": "String", - "description": "運具種類代碼", - "type": "string" + "description": "出口代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorCode": { + "ExitName": { "title": "String", - "description": "公車營運業者簡碼", - "type": "string" + "description": "出口名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorName": { - "title": "NameType", - "description": "公車營運業者名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "RailTransfers": { + "title": "Array", + "description": "軌道轉乘資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.RailTransfer" + }, + "xml": { + "name": "List`1" + } }, - "RouteID": { + "BusTransfers": { + "title": "Array", + "description": "公車運具轉乘資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BusTransfer" + }, + "xml": { + "name": "List`1" + } + }, + "AirportTransfers": { + "title": "Array", + "description": "航空運具轉乘資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.AirportTransfer" + }, + "xml": { + "name": "List`1" + } + }, + "BikeTransfers": { + "title": "Array", + "description": "公共自行車轉乘資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BikeTransfer" + }, + "xml": { + "name": "List`1" + } + }, + "ParkingTransfers": { + "title": "Array", + "description": "停車場轉乘資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.ParkingTransfer" + }, + "xml": { + "name": "List`1" + } + }, + "TaxiTransfers": { + "title": "Array", + "description": "計程車轉乘資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.TaxiTransfer" + }, + "xml": { + "name": "List`1" + } + }, + "FerryTransfers": { + "title": "Array", + "description": "航運轉乘資訊", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.FerryTransfer" + }, + "xml": { + "name": "List`1" + } + } + }, + "xml": { + "name": "Transfer" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert": { + "title": "Alert", + "required": [ + "AlertID", + "Description", + "Scope", + "Status", + "Title", + "UpdateTime" + ], + "type": "object", + "properties": { + "AlertID": { "title": "String", - "description": "轉乘公車路線代碼", - "type": "string" + "description": "通阻訊息代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "RouteName": { - "title": "NameType", - "description": "轉乘公車路線名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Title": { + "title": "String", + "description": "通阻訊息標題", + "type": "string", + "xml": { + "name": "String" + } }, - "StopID": { + "Description": { "title": "String", - "description": "轉乘公車站牌代碼", + "description": "通阻訊息說明", + "type": "string", + "xml": { + "name": "String" + } + }, + "Status": { + "title": "integer", + "description": "營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況']", "type": "string" }, - "StopName": { - "title": "NameType", - "description": "轉乘公車站牌名稱", + "Scope": { + "title": "AlertScope", + "description": "影響範圍", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScope" } - ] + ], + "xml": { + "name": "AlertScope" + } }, - "Destination": { - "title": "String", - "description": "轉乘公車開往方向", + "Direction": { + "title": "integer", + "description": "影響方向 : [0:'南下',1:'北上',2:'雙向']", "type": "string" }, - "MinTransferTime": { - "format": "double", - "description": "最短轉乘時間", - "type": "number" + "Level": { + "title": "integer", + "description": "影響等級程度 : [1:'重度',2:'中度',3:'輕度']", + "type": "string" }, - "FloorLevel": { + "Effect": { "title": "String", - "description": "轉乘樓層", - "type": "string" + "description": "影響說明", + "type": "string", + "xml": { + "name": "String" + } }, - "Description": { + "Reason": { "title": "String", - "description": "轉乘描述", + "description": "影響原因", + "type": "string", + "xml": { + "name": "String" + } + }, + "AlertURL": { + "title": "String", + "description": "通阻訊息網址連結", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartTime": { + "title": "DateTime", + "description": "訊息起始日期時間", "type": "string" }, - "IsOnSiteTransfer": { - "description": "是否為站內或站外轉乘", - "type": "boolean" + "EndTime": { + "title": "DateTime", + "description": "訊息結束日期時間", + "type": "string" }, - "Platform": { - "title": "String", - "description": "轉乘公車所在月台", + "PublishTime": { + "title": "DateTime", + "description": "消息發佈日期時間", + "type": "string" + }, + "UpdateTime": { + "title": "DateTime", + "description": "消息更新日期時間", "type": "string" } + }, + "xml": { + "name": "Alert" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.AirportTransfer": { - "title": "AirportTransfer", - "description": "航空運具轉乘資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScope": { + "title": "AlertScope", "required": [ - "AirportID", - "AirportName", - "Mode", - "OperatorCode", - "OperatorName" + "Lines", + "LineSections", + "Routes", + "Stations", + "Trains" ], "type": "object", "properties": { - "Mode": { - "title": "String", - "description": "運具種類代碼", - "type": "string" - }, - "OperatorCode": { - "title": "String", - "description": "機場營運業者簡碼", - "type": "string" - }, - "OperatorName": { - "title": "NameType", - "description": "機場營運業者名稱", + "NetworkList": { + "title": "AlertScopeNetwork", + "description": "受影響的路網", "allOf": [ { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeNetwork" } - ] + ], + "xml": { + "name": "AlertScopeNetwork" + } }, - "AirportID": { - "title": "String", - "description": "機場代碼", - "type": "string" + "Stations": { + "title": "AlertScopeStation[]", + "description": "受影響的車站", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeStation" + }, + "xml": { + "name": "AlertScopeStation[]" + } }, - "AirportName": { - "title": "NameType", - "description": "機場名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Lines": { + "title": "AlertScopeLine[]", + "description": "受影響的實體路線", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLine" + }, + "xml": { + "name": "AlertScopeLine[]" + } }, - "MinTransferTime": { - "format": "double", - "description": "最短轉乘時間", - "type": "number" + "Routes": { + "title": "AlertScopeRoute[]", + "description": "受影響的營運路線", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeRoute" + }, + "xml": { + "name": "AlertScopeRoute[]" + } }, - "FloorLevel": { - "title": "String", - "description": "轉乘樓層", - "type": "string" + "Trains": { + "title": "AlertScopeTrain[]", + "description": "受影響的車次", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeTrain" + }, + "xml": { + "name": "AlertScopeTrain[]" + } }, - "Description": { + "LineSections": { + "title": "AlertScopeLineSection[]", + "description": "受影響的路線區間", + "type": "array", + "items": { + "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLineSection" + }, + "xml": { + "name": "AlertScopeLineSection[]" + } + } + }, + "xml": { + "name": "AlertScope" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLine": { + "title": "AlertScopeLine", + "type": "object", + "properties": { + "LineID": { "title": "String", - "description": "轉乘描述", - "type": "string" + "description": "實體路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "IsOnSiteTransfer": { - "description": "是否為站內或站外轉乘", - "type": "boolean" + "LineName": { + "title": "String", + "description": "實體路線名稱", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "AlertScopeLine" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BikeTransfer": { - "title": "BikeTransfer", - "description": "公共自行車轉乘資訊", - "required": [ - "Mode", - "OperatorCode", - "OperatorName", - "StationID", - "StationName" - ], + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLineSection": { + "title": "AlertScopeLineSection", "type": "object", "properties": { - "Mode": { + "LineID": { "title": "String", - "description": "運具種類代碼", - "type": "string" + "description": "路線區間所在路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorCode": { + "StartingStationID": { "title": "String", - "description": "公共自行車營運業者簡碼", - "type": "string" - }, - "OperatorName": { - "title": "NameType", - "description": "公共自行車營運業者名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "description": "區間起站車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationID": { + "StartingStationName": { "title": "String", - "description": "公共自行車租借站位代碼", - "type": "string" - }, - "StationName": { - "title": "NameType", - "description": "公共自行車租借站位名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "description": "區間起站車站名稱", + "type": "string", + "xml": { + "name": "String" + } }, - "MinTransferTime": { - "format": "double", - "description": "最短轉乘時間", - "type": "number" + "EndingStationID": { + "title": "String", + "description": "區間迄站車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "FloorLevel": { + "EndingStationName": { "title": "String", - "description": "轉乘樓層", - "type": "string" + "description": "區間迄站車站名稱", + "type": "string", + "xml": { + "name": "String" + } }, "Description": { "title": "String", - "description": "轉乘描述", - "type": "string" - }, - "IsOnSiteTransfer": { - "description": "是否為站內或站外轉乘", - "type": "boolean" + "description": "影響區間輔助描述", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "AlertScopeLineSection" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.ParkingTransfer": { - "title": "ParkingTransfer", - "description": "停車場轉乘資訊", - "required": [ - "CarParkID", - "CarParkName", - "Mode" - ], + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeNetwork": { + "title": "AlertScopeNetwork", "type": "object", "properties": { - "Mode": { + "NetworkID": { "title": "String", - "description": "運具種類代碼", - "type": "string" + "description": "路網代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "CarParkID": { + "NetworkName": { "title": "String", - "description": "停車場代碼", - "type": "string" - }, - "CarParkName": { - "title": "NameType", - "description": "停車場名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] - }, - "MinTransferTime": { - "format": "double", - "description": "最短轉乘時間", - "type": "number" - }, - "FloorLevel": { + "description": "路網名稱", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeNetwork" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeRoute": { + "title": "AlertScopeRoute", + "type": "object", + "properties": { + "RouteID": { "title": "String", - "description": "轉乘樓層", - "type": "string" + "description": "營運路線代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "Description": { + "RouteName": { "title": "String", - "description": "轉乘描述", - "type": "string" + "description": "營運路線名稱", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeRoute" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeStation": { + "title": "AlertScopeStation", + "type": "object", + "properties": { + "StationID": { + "title": "String", + "description": "車站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "IsOnSiteTransfer": { - "description": "是否為站內或站外轉乘", - "type": "boolean" + "StationName": { + "title": "String", + "description": "車站名稱", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "AlertScopeStation" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.TaxiTransfer": { - "title": "TaxiTransfer", - "description": "計程車轉乘資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeTrain": { + "title": "AlertScopeTrain", + "type": "object", + "properties": { + "TrainNo": { + "title": "String", + "description": "受影響的車次", + "type": "string", + "xml": { + "name": "String" + } + } + }, + "xml": { + "name": "AlertScopeTrain" + } + }, + "PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType": { + "title": "TrainType", + "description": "臺鐵列車車種資料", "required": [ - "Mode", - "TaxiStopName" + "TrainTypeCode", + "TrainTypeID", + "TrainTypeName" ], "type": "object", "properties": { - "Mode": { + "TrainTypeID": { "title": "String", - "description": "運具種類代碼", - "type": "string" + "description": "列車車種代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "TaxiStopID": { + "TrainTypeCode": { "title": "String", - "description": "計程車招呼站代碼", - "type": "string" + "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", + "type": "string", + "xml": { + "name": "String" + } }, - "TaxiStopName": { + "TrainTypeName": { "title": "NameType", - "description": "計程車招呼站名稱", + "description": "列車車種名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] - }, - "MinTransferTime": { - "format": "double", - "description": "最短轉乘時間", - "type": "number" - }, - "FloorLevel": { - "title": "String", - "description": "轉乘樓層", - "type": "string" - }, - "Description": { - "title": "String", - "description": "轉乘描述", - "type": "string" - }, - "IsOnSiteTransfer": { - "description": "是否為站內或站外轉乘", - "type": "boolean" + ], + "xml": { + "name": "NameType" + } } + }, + "xml": { + "name": "TrainType" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.FerryTransfer": { - "title": "FerryTransfer", - "description": "航運轉乘資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News": { + "title": "News", "required": [ - "FerryStationName", - "Mode", - "OperatorCode", - "OperatorName" + "Description", + "Language", + "NewsCategory", + "NewsID", + "PublishTime", + "Title", + "UpdateTime" ], "type": "object", "properties": { - "Mode": { + "NewsID": { "title": "String", - "description": "運具種類代碼", - "type": "string" + "description": "消息代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "OperatorCode": { - "title": "String", - "description": "航運營運業者簡碼", + "Language": { + "title": "integer", + "description": "語系 : [1:'Zh_tw',2:'En_us',3:'Zh_cn',4:'Ja',5:'Ko',99:'Other']", "type": "string" }, - "OperatorName": { - "title": "NameType", - "description": "航運營運業者名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Department": { + "title": "String", + "description": "發布單位", + "type": "string", + "xml": { + "name": "String" + } }, - "FerryStationID": { + "Title": { "title": "String", - "description": "計程車招呼站代碼", + "description": "消息標題", + "type": "string", + "xml": { + "name": "String" + } + }, + "NewsCategory": { + "title": "integer", + "description": "消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他']", "type": "string" }, - "FerryStationName": { - "title": "NameType", - "description": "計程車招呼站名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "Description": { + "title": "String", + "description": "內容描述", + "type": "string", + "xml": { + "name": "String" + } }, - "MinTransferTime": { - "format": "double", - "description": "最短轉乘時間", - "type": "number" + "NewsURL": { + "title": "String", + "description": "消息網址連結", + "type": "string", + "xml": { + "name": "String" + } }, - "FloorLevel": { + "AttachmentURL": { "title": "String", - "description": "轉乘樓層", + "description": "附件網址連結", + "type": "string", + "xml": { + "name": "String" + } + }, + "StartTime": { + "title": "DateTime", + "description": "消息起始日期時間", "type": "string" }, - "Description": { - "title": "String", - "description": "轉乘描述", + "EndTime": { + "title": "DateTime", + "description": "消息結束日期時間", "type": "string" }, - "IsOnSiteTransfer": { - "description": "是否為站內或站外轉乘", - "type": "boolean" + "PublishTime": { + "title": "DateTime", + "description": "消息發佈日期時間", + "type": "string" + }, + "UpdateTime": { + "title": "DateTime", + "description": "本筆資料之更新日期時間", + "type": "string" } + }, + "xml": { + "name": "News" } }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.Transfer": { - "title": "Transfer", - "description": "跨運具轉乘資訊", + "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard": { + "title": "StationLiveBoard", "required": [ - "AirportTransfers", - "BikeTransfers", - "BusTransfers", - "ExitID", - "ExitName", - "FerryTransfers", - "ParkingTransfers", - "RailTransfers", - "TaxiTransfers" + "DelayTime", + "EndingStationName", + "StationID", + "StationName", + "TrainNo", + "TrainTypeName", + "UpdateTime" ], "type": "object", "properties": { - "ExitID": { - "title": "String", - "description": "出口代碼", - "type": "string" - }, - "ExitName": { + "StationID": { "title": "String", - "description": "出口名稱", - "type": "string" - }, - "RailTransfers": { - "title": "Array", - "description": "軌道轉乘資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.RailTransfer" + "description": "車站代號", + "type": "string", + "xml": { + "name": "String" } }, - "BusTransfers": { - "title": "Array", - "description": "公車運具轉乘資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BusTransfer" + "StationName": { + "title": "NameType", + "description": "車站名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" } }, - "AirportTransfers": { - "title": "Array", - "description": "航空運具轉乘資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.AirportTransfer" + "TrainNo": { + "title": "String", + "description": "車次代碼", + "type": "string", + "xml": { + "name": "String" } }, - "BikeTransfers": { - "title": "Array", - "description": "公共自行車轉乘資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BikeTransfer" - } + "Direction": { + "title": "integer", + "description": "行駛方向 : [0:'順行',1:'逆行']", + "type": "string" }, - "ParkingTransfers": { - "title": "Array", - "description": "停車場轉乘資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.ParkingTransfer" + "TrainTypeID": { + "title": "String", + "description": "車種代嗎", + "type": "string", + "xml": { + "name": "String" } }, - "TaxiTransfers": { - "title": "Array", - "description": "計程車轉乘資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.TaxiTransfer" + "TrainTypeCode": { + "title": "String", + "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", + "type": "string", + "xml": { + "name": "String" } }, - "FerryTransfers": { - "title": "Array", - "description": "航運轉乘資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.FerryTransfer" - } - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer": { - "title": "StationTransfer", - "description": "車站跨運具轉乘資訊", - "required": [ - "ExteriorMapURLs", - "InteriorMapURLs", - "StationID", - "StationName", - "Transfers" - ], - "type": "object", - "properties": { - "StationID": { + "TrainTypeName": { + "title": "NameType", + "description": "車種名稱", + "allOf": [ + { + "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" + } + ], + "xml": { + "name": "NameType" + } + }, + "EndingStationID": { "title": "String", - "description": "車站代碼", - "type": "string" + "description": "終點站代碼", + "type": "string", + "xml": { + "name": "String" + } }, - "StationName": { + "EndingStationName": { "title": "NameType", - "description": "車站名稱", + "description": "終點站名稱", "allOf": [ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, - "TransferDescription": { - "title": "String", - "description": "轉乘文字描述", + "TripLine": { + "title": "integer", + "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']", "type": "string" }, - "InteriorMapURLs": { - "title": "Array", - "description": "車站內部地圖簡圖連結資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL" + "Platform": { + "title": "String", + "description": "停靠月台(00代表當時尚未確定停靠的月台,待確定好停靠的月台後,就會更新Platfrom。)", + "type": "string", + "xml": { + "name": "String" } }, - "ExteriorMapURLs": { - "title": "Array", - "description": "外部轉乘地圖簡圖連結資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL" + "ScheduleArrivalTime": { + "title": "String", + "description": "表訂到站時刻", + "type": "string", + "xml": { + "name": "String" } }, - "Transfers": { - "title": "Array", - "description": "跨運具轉乘資訊", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.Transfer" + "ScheduleDepartureTime": { + "title": "String", + "description": "表定離站時刻", + "type": "string", + "xml": { + "name": "String" } - } - } - }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer]": { - "title": "TRAStationTransferList", - "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "StationTransfers", - "UpdateInterval", - "UpdateTime" - ], - "type": "object", - "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" }, - "UpdateInterval": { + "DelayTime": { "format": "int32", "title": "Int32", - "description": "本平台資料更新週期(秒)", + "description": "延誤分鐘", "type": "integer" }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", + "RunningStatus": { + "title": "integer", + "description": "列車狀態 : [0:'準點',1:'誤點',2:'取消']", "type": "string" }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", + "UpdateTime": { + "title": "DateTime", + "description": "本筆資料之更新日期時間", "type": "string" - }, - "StationTransfers": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer" - } - }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" } + }, + "xml": { + "name": "StationLiveBoard" } }, "PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard": { @@ -6968,17 +8314,26 @@ "TrainNo": { "title": "String", "description": "車次代碼", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TrainTypeID": { "title": "String", "description": "車種代嗎", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TrainTypeCode": { "title": "String", "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "TrainTypeName": { "title": "NameType", @@ -6987,12 +8342,18 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "StationID": { "title": "String", "description": "車站代號", - "type": "string" + "type": "string", + "xml": { + "name": "String" + } }, "StationName": { "title": "NameType", @@ -7001,13 +8362,15 @@ { "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" } - ] + ], + "xml": { + "name": "NameType" + } }, "TrainStationStatus": { - "format": "int32", "title": "integer", "description": "列車目前所在之車站狀態 : [0:'進站中',1:'在站上',2:'已離站']", - "type": "integer" + "type": "string" }, "DelayTime": { "format": "int32", @@ -7020,145 +8383,54 @@ "description": "本筆位置資料之更新日期時間", "type": "string" } + }, + "xml": { + "name": "TrainLiveBoard" } }, - "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard]": { - "title": "TRATrainLiveBoardList", - "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "TrainLiveBoards", - "UpdateInterval", - "UpdateTime" - ], + "PTX.Service.DTO.Shared.Specification.V3.Base.NameType": { + "title": "NameType", "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { + "Zh_tw": { "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "TrainLiveBoards": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard" + "description": "中文繁體名稱", + "type": "string", + "xml": { + "name": "String" } }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" - } - } - }, - "PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType": { - "title": "TrainType", - "description": "臺鐵列車車種資料", - "required": [ - "TrainTypeCode", - "TrainTypeID", - "TrainTypeName" - ], - "type": "object", - "properties": { - "TrainTypeID": { - "title": "String", - "description": "列車車種代碼", - "type": "string" - }, - "TrainTypeCode": { + "En": { "title": "String", - "description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']", - "type": "string" - }, - "TrainTypeName": { - "title": "NameType", - "description": "列車車種名稱", - "allOf": [ - { - "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType" - } - ] + "description": "英文名稱", + "type": "string", + "xml": { + "name": "String" + } } + }, + "xml": { + "name": "NameType" } }, - "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType]": { - "title": "TRATrainTypeList", - "required": [ - "AuthorityCode", - "SrcUpdateInterval", - "SrcUpdateTime", - "TrainTypes", - "UpdateInterval", - "UpdateTime" - ], + "PTX.Service.DTO.Shared.Specification.V3.Base.PointType": { + "title": "PointType", + "description": "座標資料型別", "type": "object", "properties": { - "UpdateTime": { - "title": "DateTime", - "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "UpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "本平台資料更新週期(秒)", - "type": "integer" - }, - "SrcUpdateTime": { - "title": "DateTime", - "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)", - "type": "string" - }, - "SrcUpdateInterval": { - "format": "int32", - "title": "Int32", - "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']", - "type": "integer" - }, - "AuthorityCode": { - "title": "String", - "description": "業管機關簡碼", - "type": "string" - }, - "TrainTypes": { - "title": "Array", - "description": "資料(陣列)", - "type": "array", - "items": { - "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType" - } + "PositionLat": { + "format": "double", + "description": "位置緯度(WGS84)", + "type": "number" }, - "Count": { - "format": "int64", - "description": "資料總筆數", - "type": "integer" + "PositionLon": { + "format": "double", + "description": "位置經度(WGS84)", + "type": "number" } + }, + "xml": { + "name": "PointType" } } }, diff --git a/rail/v2/client/metro/metro_api_station_parameters.go b/rail/v2/client/metro/metro_api_station_parameters.go index a6c7a5ed..e9a268e4 100644 --- a/rail/v2/client/metro/metro_api_station_parameters.go +++ b/rail/v2/client/metro/metro_api_station_parameters.go @@ -90,6 +90,12 @@ type MetroAPIStationParams struct { */ DollarSkip *string + /* DollarSpatialFilter. + + 空間過濾 + */ + DollarSpatialFilter *string + /* DollarTop. 取前幾筆 @@ -223,6 +229,17 @@ func (o *MetroAPIStationParams) SetDollarSkip(dollarSkip *string) { o.DollarSkip = dollarSkip } +// WithDollarSpatialFilter adds the dollarSpatialFilter to the metro Api station params +func (o *MetroAPIStationParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *MetroAPIStationParams { + o.SetDollarSpatialFilter(dollarSpatialFilter) + return o +} + +// SetDollarSpatialFilter adds the dollarSpatialFilter to the metro Api station params +func (o *MetroAPIStationParams) SetDollarSpatialFilter(dollarSpatialFilter *string) { + o.DollarSpatialFilter = dollarSpatialFilter +} + // WithDollarTop adds the dollarTop to the metro Api station params func (o *MetroAPIStationParams) WithDollarTop(dollarTop *int64) *MetroAPIStationParams { o.SetDollarTop(dollarTop) @@ -331,6 +348,23 @@ func (o *MetroAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.DollarSpatialFilter != nil { + + // query param $spatialFilter + var qrDollarSpatialFilter string + + if o.DollarSpatialFilter != nil { + qrDollarSpatialFilter = *o.DollarSpatialFilter + } + qDollarSpatialFilter := qrDollarSpatialFilter + if qDollarSpatialFilter != "" { + + if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil { + return err + } + } + } + if o.DollarTop != nil { // query param $top diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_parameters.go index 1d66b9fd..c5529da7 100644 --- a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_parameters.go +++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_parameters.go @@ -90,6 +90,12 @@ type THSRAPIStationParams struct { */ DollarSkip *string + /* DollarSpatialFilter. + + 空間過濾 + */ + DollarSpatialFilter *string + /* DollarTop. 取前幾筆 @@ -217,6 +223,17 @@ func (o *THSRAPIStationParams) SetDollarSkip(dollarSkip *string) { o.DollarSkip = dollarSkip } +// WithDollarSpatialFilter adds the dollarSpatialFilter to the t h s r Api station params +func (o *THSRAPIStationParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *THSRAPIStationParams { + o.SetDollarSpatialFilter(dollarSpatialFilter) + return o +} + +// SetDollarSpatialFilter adds the dollarSpatialFilter to the t h s r Api station params +func (o *THSRAPIStationParams) SetDollarSpatialFilter(dollarSpatialFilter *string) { + o.DollarSpatialFilter = dollarSpatialFilter +} + // WithDollarTop adds the dollarTop to the t h s r Api station params func (o *THSRAPIStationParams) WithDollarTop(dollarTop *int64) *THSRAPIStationParams { o.SetDollarTop(dollarTop) @@ -314,6 +331,23 @@ func (o *THSRAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.DollarSpatialFilter != nil { + + // query param $spatialFilter + var qrDollarSpatialFilter string + + if o.DollarSpatialFilter != nil { + qrDollarSpatialFilter = *o.DollarSpatialFilter + } + qDollarSpatialFilter := qrDollarSpatialFilter + if qDollarSpatialFilter != "" { + + if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil { + return err + } + } + } + if o.DollarTop != nil { // query param $top diff --git a/rail/v2/client/t_r_a/t_r_a_api_station_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_station_parameters.go index 34d24a65..a0e36df7 100644 --- a/rail/v2/client/t_r_a/t_r_a_api_station_parameters.go +++ b/rail/v2/client/t_r_a/t_r_a_api_station_parameters.go @@ -90,6 +90,12 @@ type TRAAPIStationParams struct { */ DollarSkip *string + /* DollarSpatialFilter. + + 空間過濾 + */ + DollarSpatialFilter *string + /* DollarTop. 取前幾筆 @@ -217,6 +223,17 @@ func (o *TRAAPIStationParams) SetDollarSkip(dollarSkip *string) { o.DollarSkip = dollarSkip } +// WithDollarSpatialFilter adds the dollarSpatialFilter to the t r a Api station params +func (o *TRAAPIStationParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *TRAAPIStationParams { + o.SetDollarSpatialFilter(dollarSpatialFilter) + return o +} + +// SetDollarSpatialFilter adds the dollarSpatialFilter to the t r a Api station params +func (o *TRAAPIStationParams) SetDollarSpatialFilter(dollarSpatialFilter *string) { + o.DollarSpatialFilter = dollarSpatialFilter +} + // WithDollarTop adds the dollarTop to the t r a Api station params func (o *TRAAPIStationParams) WithDollarTop(dollarTop *int64) *TRAAPIStationParams { o.SetDollarTop(dollarTop) @@ -314,6 +331,23 @@ func (o *TRAAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.DollarSpatialFilter != nil { + + // query param $spatialFilter + var qrDollarSpatialFilter string + + if o.DollarSpatialFilter != nil { + qrDollarSpatialFilter = *o.DollarSpatialFilter + } + qDollarSpatialFilter := qrDollarSpatialFilter + if qDollarSpatialFilter != "" { + + if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil { + return err + } + } + } + if o.DollarTop != nil { // query param $top diff --git a/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go b/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go index 00bd56d3..9503a510 100644 --- a/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go +++ b/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go @@ -24,13 +24,13 @@ type PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert // // 資料(陣列) // Required: true - Alerts []*PTXServiceDTORailSpecificationV2MetroAlert `json:"Alerts"` + Alerts []*PTXServiceDTORailSpecificationV2MetroAlert "json:\"Alerts\" xml:\"List`1\"" // String // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` diff --git a/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go b/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go index 92b71437..ac2f3821 100644 --- a/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go +++ b/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go @@ -24,7 +24,7 @@ type PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNe // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -33,7 +33,7 @@ type PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNe // // 資料(陣列) // Required: true - Newses []*PTXServiceDTORailSpecificationV2MetroMRTNewsListNews `json:"Newses"` + Newses []*PTXServiceDTORailSpecificationV2MetroMRTNewsListNews "json:\"Newses\" xml:\"List`1\"" // Int32 // diff --git a/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_available_seat_status_old_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_available_seat_status_old_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go index 95b2b3f3..e5ca3511 100644 --- a/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_available_seat_status_old_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go +++ b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_available_seat_status_old_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go @@ -24,7 +24,7 @@ type PTXAPIRailModelV2THSRAvailableSeatStatusOldWrapperPTXServiceDTORailSpecific // // 對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板) // Required: true - AvailableSeats []*PTXServiceDTORailSpecificationV2THSROldAvailableSeat `json:"AvailableSeats"` + AvailableSeats []*PTXServiceDTORailSpecificationV2THSROldAvailableSeat "json:\"AvailableSeats\" xml:\"List`1\"" // 資料總筆數 Count int64 `json:"Count,omitempty"` diff --git a/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_available_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_available_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go index fd2bba1b..29010e31 100644 --- a/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_available_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go +++ b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_available_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go @@ -24,7 +24,7 @@ type PTXAPIRailModelV2THSRAvailableSeatStatusWrapperPTXServiceDTORailSpecificati // // 對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板) // Required: true - AvailableSeats []*PTXServiceDTORailSpecificationV2THSRAvailableSeat `json:"AvailableSeats"` + AvailableSeats []*PTXServiceDTORailSpecificationV2THSRAvailableSeat "json:\"AvailableSeats\" xml:\"List`1\"" // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -37,7 +37,7 @@ type PTXAPIRailModelV2THSRAvailableSeatStatusWrapperPTXServiceDTORailSpecificati // String // // 營運日說明(格式: yyyy-MM-dd) - TrainDate string `json:"TrainDate,omitempty"` + TrainDate string `json:"TrainDate,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_o_d_available_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_o_d_available_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go index 8da2b985..87062ff0 100644 --- a/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_o_d_available_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go +++ b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_o_d_available_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go @@ -24,7 +24,7 @@ type PTXAPIRailModelV2THSRODAvailableSeatStatusWrapperPTXServiceDTORailSpecifica // // 對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板) // Required: true - AvailableSeats []*PTXServiceDTORailSpecificationV2THSRODAvailableSeat `json:"AvailableSeats"` + AvailableSeats []*PTXServiceDTORailSpecificationV2THSRODAvailableSeat "json:\"AvailableSeats\" xml:\"List`1\"" // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -42,7 +42,7 @@ type PTXAPIRailModelV2THSRODAvailableSeatStatusWrapperPTXServiceDTORailSpecifica // String // // 營運日說明(格式: yyyy-MM-dd) - TrainDate string `json:"TrainDate,omitempty"` + TrainDate string `json:"TrainDate,omitempty" xml:"String,omitempty"` // Int32 // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go index 056ccc51..61f32035 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go @@ -23,28 +23,28 @@ type PTXServiceDTORailSpecificationV2MetroAlert struct { // // 通阻訊息代碼 // Required: true - AlertID *string `json:"AlertID"` + AlertID *string `json:"AlertID" xml:"String"` // String // // 通阻訊息網址連結 - AlertURL string `json:"AlertURL,omitempty"` + AlertURL string `json:"AlertURL,omitempty" xml:"String,omitempty"` // String // // 通阻訊息說明 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // integer // // 影響方向 : [0:'去程',1:'返程'] - Direction int32 `json:"Direction,omitempty"` + Direction string `json:"Direction,omitempty"` // String // // 影響說明 - Effect string `json:"Effect,omitempty"` + Effect string `json:"Effect,omitempty" xml:"String,omitempty"` // DateTime // @@ -54,7 +54,7 @@ type PTXServiceDTORailSpecificationV2MetroAlert struct { // integer // // 影響等級程度 : [1:'重度',2:'中度',3:'輕度'] - Level int32 `json:"Level,omitempty"` + Level string `json:"Level,omitempty"` // DateTime // @@ -64,7 +64,7 @@ type PTXServiceDTORailSpecificationV2MetroAlert struct { // String // // 影響原因 - Reason string `json:"Reason,omitempty"` + Reason string `json:"Reason,omitempty" xml:"String,omitempty"` // AlertScope // @@ -72,7 +72,7 @@ type PTXServiceDTORailSpecificationV2MetroAlert struct { // Required: true Scope struct { PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope - } `json:"Scope"` + } `json:"Scope" xml:"AlertScope"` // DateTime // @@ -83,13 +83,13 @@ type PTXServiceDTORailSpecificationV2MetroAlert struct { // // 營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況'] // Required: true - Status *int32 `json:"Status"` + Status *string `json:"Status"` // String // // 通阻訊息標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_drinking_fountain.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_drinking_fountain.go index ada2af86..ed8800ea 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_drinking_fountain.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_drinking_fountain.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2MetroDrinkingFountain struct { // // 位置描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // String // // 樓層 // Required: true - FloorLevel *string `json:"FloorLevel"` + FloorLevel *string `json:"FloorLevel" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 metro drinking fountain diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_elevator.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_elevator.go index 6242012d..ddd4d2a5 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_elevator.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_elevator.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2MetroElevator struct { // // 位置描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // String // // 樓層 // Required: true - FloorLevel *string `json:"FloorLevel"` + FloorLevel *string `json:"FloorLevel" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 metro elevator diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_first_last_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_first_last_timetable.go index ba0164d2..d0113f81 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_first_last_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_first_last_timetable.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV2MetroFirstLastTimetable struct { // // 目的站車站代號 // Required: true - DestinationStaionID *string `json:"DestinationStaionID"` + DestinationStaionID *string `json:"DestinationStaionID" xml:"String"` // NameType // @@ -33,30 +33,30 @@ type PTXServiceDTORailSpecificationV2MetroFirstLastTimetable struct { // Required: true DestinationStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"DestinationStationName"` + } `json:"DestinationStationName" xml:"NameType"` // String // // 首班車時刻 // Required: true - FirstTrainTime *string `json:"FirstTrainTime"` + FirstTrainTime *string `json:"FirstTrainTime" xml:"String"` // String // // 末班車時刻 // Required: true - LastTrainTime *string `json:"LastTrainTime"` + LastTrainTime *string `json:"LastTrainTime" xml:"String"` // String // // 首末班車次之路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 首末班車次之路線代號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` // ServiceDay // @@ -64,7 +64,7 @@ type PTXServiceDTORailSpecificationV2MetroFirstLastTimetable struct { // Required: true ServiceDay struct { PTXServiceDTORailSpecificationV2MetroSubClassServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // DateTime // @@ -76,7 +76,7 @@ type PTXServiceDTORailSpecificationV2MetroFirstLastTimetable struct { // // 車站代號 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -84,7 +84,7 @@ type PTXServiceDTORailSpecificationV2MetroFirstLastTimetable struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // 車種(0:不分車種, 1:普通車, 2:直達車) TrainType int32 `json:"TrainType,omitempty"` @@ -92,7 +92,7 @@ type PTXServiceDTORailSpecificationV2MetroFirstLastTimetable struct { // String // // 首末班車次之目的地方向描述 - TripHeadSign string `json:"TripHeadSign,omitempty"` + TripHeadSign string `json:"TripHeadSign,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_frequency.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_frequency.go index 5de39e99..ec4b4629 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_frequency.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_frequency.go @@ -26,18 +26,18 @@ type PTXServiceDTORailSpecificationV2MetroFrequency struct { // // 班距頻率資訊 // Required: true - Headways []*PTXServiceDTORailSpecificationV2MetroSubClassHeadway `json:"Headways"` + Headways []*PTXServiceDTORailSpecificationV2MetroSubClassHeadway "json:\"Headways\" xml:\"List`1\"" // String // // 營運路線所屬之路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 營運路線所屬之路線編號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` // OperationTime // @@ -45,13 +45,13 @@ type PTXServiceDTORailSpecificationV2MetroFrequency struct { // Required: true OperationTime struct { PTXServiceDTORailSpecificationV2MetroSubClassOperationTime - } `json:"OperationTime"` + } `json:"OperationTime" xml:"OperationTime"` // String // // 營運路線代碼 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // ServiceDay // @@ -59,7 +59,7 @@ type PTXServiceDTORailSpecificationV2MetroFrequency struct { // Required: true ServiceDay struct { PTXServiceDTORailSpecificationV2MetroSubClassServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_information_spot.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_information_spot.go index dac6b95a..abff7a33 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_information_spot.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_information_spot.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2MetroInformationSpot struct { // // 位置描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // String // // 樓層 // Required: true - FloorLevel *string `json:"FloorLevel"` + FloorLevel *string `json:"FloorLevel" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 metro information spot diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line.go index 33250b8b..2b67dbbf 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line.go @@ -31,13 +31,13 @@ type PTXServiceDTORailSpecificationV2MetroLine struct { // // 路線顏色 // Required: true - LineColor *string `json:"LineColor"` + LineColor *string `json:"LineColor" xml:"String"` // String // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // NameType // @@ -45,12 +45,12 @@ type PTXServiceDTORailSpecificationV2MetroLine struct { // Required: true LineName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"LineName"` + } `json:"LineName" xml:"NameType"` // String // // 路線編號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` // NameType // @@ -58,7 +58,7 @@ type PTXServiceDTORailSpecificationV2MetroLine struct { // Required: true LineSectionName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"LineSectionName"` + } `json:"LineSectionName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line_transfer.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line_transfer.go index 4766b8f4..51424a99 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line_transfer.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line_transfer.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV2MetroLineTransfer struct { // // 路線間轉乘(起)之路線代碼 // Required: true - FromLineID *string `json:"FromLineID"` + FromLineID *string `json:"FromLineID" xml:"String"` // NameType // @@ -33,18 +33,18 @@ type PTXServiceDTORailSpecificationV2MetroLineTransfer struct { // Required: true FromLineName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"FromLineName"` + } `json:"FromLineName" xml:"NameType"` // String // // 路線間轉乘(起)之路線編號 - FromLineNo string `json:"FromLineNo,omitempty"` + FromLineNo string `json:"FromLineNo,omitempty" xml:"String,omitempty"` // String // // 路線間轉乘(起)之車站代碼 // Required: true - FromStationID *string `json:"FromStationID"` + FromStationID *string `json:"FromStationID" xml:"String"` // NameType // @@ -52,12 +52,12 @@ type PTXServiceDTORailSpecificationV2MetroLineTransfer struct { // Required: true FromStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"FromStationName"` + } `json:"FromStationName" xml:"NameType"` // integer // // 是否為站內或站外轉乘 : [0:'站外',1:'站內'] - IsOnSiteTransfer int32 `json:"IsOnSiteTransfer,omitempty"` + IsOnSiteTransfer string `json:"IsOnSiteTransfer,omitempty"` // DateTime // @@ -69,7 +69,7 @@ type PTXServiceDTORailSpecificationV2MetroLineTransfer struct { // // 路線間轉乘(迄)之路線代碼 // Required: true - ToLineID *string `json:"ToLineID"` + ToLineID *string `json:"ToLineID" xml:"String"` // NameType // @@ -77,19 +77,19 @@ type PTXServiceDTORailSpecificationV2MetroLineTransfer struct { // Required: true ToLineName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"ToLineName"` + } `json:"ToLineName" xml:"NameType"` // String // // 路線間轉乘(迄)之路線編號 // Required: true - ToLineNo *string `json:"ToLineNo"` + ToLineNo *string `json:"ToLineNo" xml:"String"` // String // // 路線間轉乘(迄)之車站代碼 // Required: true - ToStationID *string `json:"ToStationID"` + ToStationID *string `json:"ToStationID" xml:"String"` // NameType // @@ -97,13 +97,13 @@ type PTXServiceDTORailSpecificationV2MetroLineTransfer struct { // Required: true ToStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"ToStationName"` + } `json:"ToStationName" xml:"NameType"` // String // // 轉乘方式文字描述 // Required: true - TransferDescription *string `json:"TransferDescription"` + TransferDescription *string `json:"TransferDescription" xml:"String"` // Int32 // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_live_board.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_live_board.go index e5b001a4..f4735471 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_live_board.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_live_board.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2MetroLiveBoard struct { // // 目的地車站代號 // Required: true - DestinationStaionID *string `json:"DestinationStaionID"` + DestinationStaionID *string `json:"DestinationStaionID" xml:"String"` // String // // 目的地車站代號 // Required: true - DestinationStationID *string `json:"DestinationStationID"` + DestinationStationID *string `json:"DestinationStationID" xml:"String"` // NameType // @@ -39,7 +39,7 @@ type PTXServiceDTORailSpecificationV2MetroLiveBoard struct { // Required: true DestinationStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"DestinationStationName"` + } `json:"DestinationStationName" xml:"NameType"` // Int32 // @@ -51,12 +51,12 @@ type PTXServiceDTORailSpecificationV2MetroLiveBoard struct { // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 路線編號 - LineNO string `json:"LineNO,omitempty"` + LineNO string `json:"LineNO,omitempty" xml:"String,omitempty"` // NameType // @@ -64,7 +64,7 @@ type PTXServiceDTORailSpecificationV2MetroLiveBoard struct { // Required: true LineName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"LineName"` + } `json:"LineName" xml:"NameType"` // DateTime // @@ -76,7 +76,7 @@ type PTXServiceDTORailSpecificationV2MetroLiveBoard struct { // // 所在車站代號 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -84,13 +84,13 @@ type PTXServiceDTORailSpecificationV2MetroLiveBoard struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 下班車次方向描述 // Required: true - TripHeadSign *string `json:"TripHeadSign"` + TripHeadSign *string `json:"TripHeadSign" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope.go index 2cc6d12e..52e35572 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope.go @@ -26,38 +26,38 @@ type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope struct { // // 受影響的路線區間 // Required: true - LineSections []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection `json:"LineSections"` + LineSections []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection `json:"LineSections" xml:"AlertScopeLineSection[]"` // AlertScopeLine[] // // 受影響的實體路線 // Required: true - Lines []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine `json:"Lines"` + Lines []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine `json:"Lines" xml:"AlertScopeLine[]"` // AlertScopeNetwork // // 受影響的路網 Network struct { PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork - } `json:"Network,omitempty"` + } `json:"Network,omitempty" xml:"AlertScopeNetwork,omitempty"` // AlertScopeRoute[] // // 受影響的營運路線 // Required: true - Routes []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute `json:"Routes"` + Routes []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute `json:"Routes" xml:"AlertScopeRoute[]"` // AlertScopeStation[] // // 受影響的車站 // Required: true - Stations []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation `json:"Stations"` + Stations []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation `json:"Stations" xml:"AlertScopeStation[]"` // AlertScopeTrain[] // // 受影響的車次 // Required: true - Trains []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain `json:"Trains"` + Trains []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain `json:"Trains" xml:"AlertScopeTrain[]"` } // Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line.go index 24337376..4b67333f 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line.go @@ -22,12 +22,12 @@ type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine struct { // String // // 實體路線代碼 - LineID string `json:"LineID,omitempty"` + LineID string `json:"LineID,omitempty" xml:"String,omitempty"` // String // // 實體路線名稱 - LineName string `json:"LineName,omitempty"` + LineName string `json:"LineName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope line diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line_section.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line_section.go index f8b6ac15..cde3b882 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line_section.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line_section.go @@ -22,32 +22,32 @@ type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection stru // String // // 影響區間輔助描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 區間迄站車站代碼 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // String // // 區間迄站車站名稱 - EndingStationName string `json:"EndingStationName,omitempty"` + EndingStationName string `json:"EndingStationName,omitempty" xml:"String,omitempty"` // String // // 路線區間所在路線代碼 - LineID string `json:"LineID,omitempty"` + LineID string `json:"LineID,omitempty" xml:"String,omitempty"` // String // // 區間起站車站代碼 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // String // // 區間起站車站名稱 - StartingStationName string `json:"StartingStationName,omitempty"` + StartingStationName string `json:"StartingStationName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope line section diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_network.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_network.go index a8c1c712..f5dc828f 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_network.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_network.go @@ -22,7 +22,7 @@ type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork struct { // String // // 路網代碼 - NetworkID string `json:"NetworkID,omitempty"` + NetworkID string `json:"NetworkID,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope network diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_route.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_route.go index f3792454..88f8f87c 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_route.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_route.go @@ -22,12 +22,12 @@ type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute struct { // String // // 營運路線代碼 - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // String // // 營運路線名稱 - RouteName string `json:"RouteName,omitempty"` + RouteName string `json:"RouteName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope route diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_station.go index 6315e503..400a07e6 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_station.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_station.go @@ -22,12 +22,12 @@ type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation struct { // String // // 車站代碼 - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // String // // 車站名稱 - StationName string `json:"StationName,omitempty"` + StationName string `json:"StationName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope station diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_train.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_train.go index 00932715..0d96b0bc 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_train.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_train.go @@ -22,7 +22,7 @@ type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain struct { // String // // 受影響的車次 - TrainNo string `json:"TrainNo,omitempty"` + TrainNo string `json:"TrainNo,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope train diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go index c9bfb8e8..b67f2063 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go @@ -22,18 +22,18 @@ type PTXServiceDTORailSpecificationV2MetroMRTNewsListNews struct { // String // // 附件網址連結 - AttachmentURL string `json:"AttachmentURL,omitempty"` + AttachmentURL string `json:"AttachmentURL,omitempty" xml:"String,omitempty"` // String // // 發布單位 - Department string `json:"Department,omitempty"` + Department string `json:"Department,omitempty" xml:"String,omitempty"` // String // // 內容描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // DateTime // @@ -43,24 +43,24 @@ type PTXServiceDTORailSpecificationV2MetroMRTNewsListNews struct { // integer // // 語系 : [1:'Zh_tw',2:'En_us',3:'Zh_cn',4:'Ja',5:'Ko',99:'Other'] - Language int32 `json:"Language,omitempty"` + Language string `json:"Language,omitempty"` // integer // // 消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他'] // Required: true - NewsCategory *int32 `json:"NewsCategory"` + NewsCategory *string `json:"NewsCategory"` // String // // 消息代碼 // Required: true - NewsID *string `json:"NewsID"` + NewsID *string `json:"NewsID" xml:"String"` // String // // 消息網址連結 - NewsURL string `json:"NewsURL,omitempty"` + NewsURL string `json:"NewsURL,omitempty" xml:"String,omitempty"` // DateTime // @@ -77,7 +77,7 @@ type PTXServiceDTORailSpecificationV2MetroMRTNewsListNews struct { // // 消息標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_metro_shape.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_metro_shape.go index c29b9cd3..7f4ec859 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_metro_shape.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_metro_shape.go @@ -25,19 +25,19 @@ type PTXServiceDTORailSpecificationV2MetroMetroShape struct { // // 路線軌跡編碼(encoded polyline) // Required: true - EncodedPolyline *string `json:"EncodedPolyline"` + EncodedPolyline *string `json:"EncodedPolyline" xml:"String"` // String // // well-known text,為路線軌跡資料 // Required: true - Geometry *string `json:"Geometry"` + Geometry *string `json:"Geometry" xml:"String"` // String // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // NameType // @@ -45,12 +45,12 @@ type PTXServiceDTORailSpecificationV2MetroMetroShape struct { // Required: true LineName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"LineName"` + } `json:"LineName" xml:"NameType"` // String // // 路線編號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network.go index 224d64db..23ed1c73 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network.go @@ -26,19 +26,19 @@ type PTXServiceDTORailSpecificationV2MetroNetwork struct { // // 捷運路線資訊 // Required: true - Lines []*PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine `json:"Lines"` + Lines []*PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine "json:\"Lines\" xml:\"List`1\"" // String // // 捷運路網代碼 // Required: true - NetworkID *string `json:"NetworkID"` + NetworkID *string `json:"NetworkID" xml:"String"` // String // // 捷運路網圖網址URL // Required: true - NetworkMapURL *string `json:"NetworkMapURL"` + NetworkMapURL *string `json:"NetworkMapURL" xml:"String"` // NameType // @@ -46,13 +46,13 @@ type PTXServiceDTORailSpecificationV2MetroNetwork struct { // Required: true NetworkName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"NetworkName"` + } `json:"NetworkName" xml:"NameType"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // NameType // @@ -60,7 +60,7 @@ type PTXServiceDTORailSpecificationV2MetroNetwork struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network_sub_class_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network_sub_class_line.go index e03a4b37..ffda793b 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network_sub_class_line.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network_sub_class_line.go @@ -25,12 +25,12 @@ type PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine struct { // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 路線編號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v2 metro network sub class line diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_o_d_fare.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_o_d_fare.go index c3ae9ef5..f328b828 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_o_d_fare.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_o_d_fare.go @@ -26,7 +26,7 @@ type PTXServiceDTORailSpecificationV2MetroODFare struct { // // 迄站車站代碼 // Required: true - DestinationStationID *string `json:"DestinationStationID"` + DestinationStationID *string `json:"DestinationStationID" xml:"String"` // NameType // @@ -34,19 +34,19 @@ type PTXServiceDTORailSpecificationV2MetroODFare struct { // Required: true DestinationStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"DestinationStationName"` + } `json:"DestinationStationName" xml:"NameType"` // Array // // 票價資訊 // Required: true - Fares []*PTXServiceDTORailSpecificationV2MetroSubClassFare `json:"Fares"` + Fares []*PTXServiceDTORailSpecificationV2MetroSubClassFare "json:\"Fares\" xml:\"List`1\"" // String // // 起站車站代碼 // Required: true - OriginStationID *string `json:"OriginStationID"` + OriginStationID *string `json:"OriginStationID" xml:"String"` // NameType // @@ -54,7 +54,7 @@ type PTXServiceDTORailSpecificationV2MetroODFare struct { // Required: true OriginStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OriginStationName"` + } `json:"OriginStationName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_route.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_route.go index 080425d4..0e0fc7a4 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_route.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_route.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV2MetroRoute struct { // // 營運路線迄站代號 // Required: true - EndStationID *string `json:"EndStationID"` + EndStationID *string `json:"EndStationID" xml:"String"` // NameType // @@ -33,24 +33,24 @@ type PTXServiceDTORailSpecificationV2MetroRoute struct { // Required: true EndStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndStationName"` + } `json:"EndStationName" xml:"NameType"` // String // // 營運路線所屬之路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 營運路線所屬之路線編號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` // String // // 營運業者代碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // Int32 // @@ -62,7 +62,7 @@ type PTXServiceDTORailSpecificationV2MetroRoute struct { // // 營運路線代碼 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // Single // @@ -76,7 +76,7 @@ type PTXServiceDTORailSpecificationV2MetroRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // DateTime // @@ -88,7 +88,7 @@ type PTXServiceDTORailSpecificationV2MetroRoute struct { // // 營運路線起站代號 // Required: true - StartStationID *string `json:"StartStationID"` + StartStationID *string `json:"StartStationID" xml:"String"` // NameType // @@ -96,7 +96,7 @@ type PTXServiceDTORailSpecificationV2MetroRoute struct { // Required: true StartStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartStationName"` + } `json:"StartStationName" xml:"NameType"` // Single // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_s2_s_travel_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_s2_s_travel_time.go index cfeab8ed..7c774a9e 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_s2_s_travel_time.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_s2_s_travel_time.go @@ -26,18 +26,18 @@ type PTXServiceDTORailSpecificationV2MetroS2STravelTime struct { // // 營運路線所屬之路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 營運路線所屬之路線編號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` // String // // 營運路線代碼 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // DateTime // @@ -52,7 +52,7 @@ type PTXServiceDTORailSpecificationV2MetroS2STravelTime struct { // // 站間運行時間資訊 // Required: true - TravelTimes []*PTXServiceDTORailSpecificationV2MetroSubClassTravelTime `json:"TravelTimes"` + TravelTimes []*PTXServiceDTORailSpecificationV2MetroSubClassTravelTime "json:\"TravelTimes\" xml:\"List`1\"" // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station.go index 13c8dc28..17621578 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station.go @@ -30,22 +30,22 @@ type PTXServiceDTORailSpecificationV2MetroStation struct { // String // // 車站位置所屬縣市 - LocationCity string `json:"LocationCity,omitempty"` + LocationCity string `json:"LocationCity,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬縣市代碼 - LocationCityCode string `json:"LocationCityCode,omitempty"` + LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬鄉鎮 - LocationTown string `json:"LocationTown,omitempty"` + LocationTown string `json:"LocationTown,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬鄉鎮代碼 - LocationTownCode string `json:"LocationTownCode,omitempty"` + LocationTownCode string `json:"LocationTownCode,omitempty" xml:"String,omitempty"` // DateTime // @@ -57,13 +57,13 @@ type PTXServiceDTORailSpecificationV2MetroStation struct { // // 車站地址 // Required: true - StationAddress *string `json:"StationAddress"` + StationAddress *string `json:"StationAddress" xml:"String"` // String // // 車站代號 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -71,20 +71,20 @@ type PTXServiceDTORailSpecificationV2MetroStation struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // PointType // // 車站位置 StationPosition struct { PTXServiceDTORailSpecificationV2PointType - } `json:"StationPosition,omitempty"` + } `json:"StationPosition,omitempty" xml:"PointType,omitempty"` // String // // 車站唯一識別代碼 // Required: true - StationUID *string `json:"StationUID"` + StationUID *string `json:"StationUID" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_exit.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_exit.go index 8c0f07b8..cc4034a4 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_exit.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_exit.go @@ -33,7 +33,7 @@ type PTXServiceDTORailSpecificationV2MetroStationExit struct { // // 出入口代碼 // Required: true - ExitID *string `json:"ExitID"` + ExitID *string `json:"ExitID" xml:"String"` // NameType // @@ -41,7 +41,7 @@ type PTXServiceDTORailSpecificationV2MetroStationExit struct { // Required: true ExitName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"ExitName"` + } `json:"ExitName" xml:"NameType"` // PointType // @@ -49,13 +49,13 @@ type PTXServiceDTORailSpecificationV2MetroStationExit struct { // Required: true ExitPosition struct { PTXServiceDTOSharedSpecificationV2BasePointType - } `json:"ExitPosition"` + } `json:"ExitPosition" xml:"PointType"` // String // // 地址描述 // Required: true - LocationDescription *string `json:"LocationDescription"` + LocationDescription *string `json:"LocationDescription" xml:"String"` // DateTime // @@ -71,7 +71,7 @@ type PTXServiceDTORailSpecificationV2MetroStationExit struct { // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -79,7 +79,7 @@ type PTXServiceDTORailSpecificationV2MetroStationExit struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_facility.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_facility.go index a159fe3f..b3db4d6d 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_facility.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_facility.go @@ -26,19 +26,19 @@ type PTXServiceDTORailSpecificationV2MetroStationFacility struct { // // 飲水機位置資訊 // Required: true - DrinkingFountains []*PTXServiceDTORailSpecificationV2MetroDrinkingFountain `json:"DrinkingFountains"` + DrinkingFountains []*PTXServiceDTORailSpecificationV2MetroDrinkingFountain "json:\"DrinkingFountains\" xml:\"List`1\"" // Array // // 無障礙電梯位置資訊 // Required: true - Elevators []*PTXServiceDTORailSpecificationV2MetroElevator `json:"Elevators"` + Elevators []*PTXServiceDTORailSpecificationV2MetroElevator "json:\"Elevators\" xml:\"List`1\"" // Array // // 詢問處位置資訊 // Required: true - InformationSpots []*PTXServiceDTORailSpecificationV2MetroInformationSpot `json:"InformationSpots"` + InformationSpots []*PTXServiceDTORailSpecificationV2MetroInformationSpot "json:\"InformationSpots\" xml:\"List`1\"" // DateTime // @@ -50,7 +50,7 @@ type PTXServiceDTORailSpecificationV2MetroStationFacility struct { // // 車站代號 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -58,13 +58,13 @@ type PTXServiceDTORailSpecificationV2MetroStationFacility struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Array // // 廁所位置資訊 // Required: true - Toilets []*PTXServiceDTORailSpecificationV2MetroToilet `json:"Toilets"` + Toilets []*PTXServiceDTORailSpecificationV2MetroToilet "json:\"Toilets\" xml:\"List`1\"" // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_line.go index 613ff99f..48002c27 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_line.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_line.go @@ -26,12 +26,12 @@ type PTXServiceDTORailSpecificationV2MetroStationOfLine struct { // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 路線編號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` // DateTime // @@ -43,7 +43,7 @@ type PTXServiceDTORailSpecificationV2MetroStationOfLine struct { // // 路線車站資訊 // Required: true - Stations []*PTXServiceDTORailSpecificationV2MetroSubClassStation `json:"Stations"` + Stations []*PTXServiceDTORailSpecificationV2MetroSubClassStation "json:\"Stations\" xml:\"List`1\"" // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_route.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_route.go index b9bfdb1c..f4cd302d 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_route.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_route.go @@ -32,18 +32,18 @@ type PTXServiceDTORailSpecificationV2MetroStationOfRoute struct { // // 營運路線所屬之路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 營運路線所屬之路線編號 - LineNo string `json:"LineNo,omitempty"` + LineNo string `json:"LineNo,omitempty" xml:"String,omitempty"` // String // // 營運路線代碼 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -51,7 +51,7 @@ type PTXServiceDTORailSpecificationV2MetroStationOfRoute struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // DateTime // @@ -63,7 +63,7 @@ type PTXServiceDTORailSpecificationV2MetroStationOfRoute struct { // // 營運路線車站資訊 // Required: true - Stations []*PTXServiceDTORailSpecificationV2MetroSubClassStation `json:"Stations"` + Stations []*PTXServiceDTORailSpecificationV2MetroSubClassStation "json:\"Stations\" xml:\"List`1\"" // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_time_table.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_time_table.go index e0d47e4f..d529b72e 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_time_table.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_time_table.go @@ -26,7 +26,7 @@ type PTXServiceDTORailSpecificationV2MetroStationTimeTable struct { // // 目的站車站代號 // Required: true - DestinationStaionID *string `json:"DestinationStaionID"` + DestinationStaionID *string `json:"DestinationStaionID" xml:"String"` // NameType // @@ -34,23 +34,23 @@ type PTXServiceDTORailSpecificationV2MetroStationTimeTable struct { // Required: true DestinationStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"DestinationStationName"` + } `json:"DestinationStationName" xml:"NameType"` // integer // // 營運路線方向描述 : [0:'去程',1:'返程'] - Direction int32 `json:"Direction,omitempty"` + Direction string `json:"Direction,omitempty"` // String // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 營運路線代碼 - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // ServiceDay // @@ -58,12 +58,12 @@ type PTXServiceDTORailSpecificationV2MetroStationTimeTable struct { // Required: true ServiceDay struct { PTXServiceDTORailSpecificationV2MetroSubClassServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // Array // // 特定日期 - SpecialDays []*PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay `json:"SpecialDays"` + SpecialDays []*PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay "json:\"SpecialDays\" xml:\"List`1\"" // DateTime // @@ -75,7 +75,7 @@ type PTXServiceDTORailSpecificationV2MetroStationTimeTable struct { // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -83,13 +83,13 @@ type PTXServiceDTORailSpecificationV2MetroStationTimeTable struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Array // // 車站發車時刻資訊 // Required: true - Timetables []*PTXServiceDTORailSpecificationV2MetroSubClassTimetable `json:"Timetables"` + Timetables []*PTXServiceDTORailSpecificationV2MetroSubClassTimetable "json:\"Timetables\" xml:\"List`1\"" // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_fare.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_fare.go index 2062ed43..8fc239f8 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_fare.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_fare.go @@ -24,7 +24,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassFare struct { // String // // 市民所屬縣市代碼 (TPE: 臺北市, NWT: 新北市, OTHERS: 其他) - CitizenCode string `json:"CitizenCode,omitempty"` + CitizenCode string `json:"CitizenCode,omitempty" xml:"String,omitempty"` // Int32 // @@ -41,7 +41,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassFare struct { // String // // 販售方式 (1: 現場櫃台販售, 2: 現場機器販售, 3: 線上販售, 99: 其他) - SaleType string `json:"SaleType,omitempty"` + SaleType string `json:"SaleType,omitempty" xml:"String,omitempty"` // Int32 // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_headway.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_headway.go index eeb184e6..dcc9a68f 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_headway.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_headway.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassHeadway struct { // // 結束時間 // Required: true - EndTime *string `json:"EndTime"` + EndTime *string `json:"EndTime" xml:"String"` // Int32 // @@ -43,13 +43,13 @@ type PTXServiceDTORailSpecificationV2MetroSubClassHeadway struct { // // 尖峰/離峰狀態(0:離峰, 1:尖峰) // Required: true - PeakFlag *string `json:"PeakFlag"` + PeakFlag *string `json:"PeakFlag" xml:"String"` // String // // 開始時間 // Required: true - StartTime *string `json:"StartTime"` + StartTime *string `json:"StartTime" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 metro sub class headway diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_operation_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_operation_time.go index aedd258d..01fbb585 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_operation_time.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_operation_time.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2MetroSubClassOperationTime struct { // // 營運結束時間 // Required: true - EndTime *string `json:"EndTime"` + EndTime *string `json:"EndTime" xml:"String"` // String // // 營運開始時間 // Required: true - StartTime *string `json:"StartTime"` + StartTime *string `json:"StartTime" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 metro sub class operation time diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_service_day.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_service_day.go index ada97201..209ef39d 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_service_day.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_service_day.go @@ -48,7 +48,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassServiceDay struct { // String // // 營運日標籤 - ServiceTag string `json:"ServiceTag,omitempty"` + ServiceTag string `json:"ServiceTag,omitempty" xml:"String,omitempty"` // Boolean // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_special_day.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_special_day.go index 95a7d22c..d183c7af 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_special_day.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_special_day.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay struct { // // 描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_station.go index 1605ce0c..2b34cbd4 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_station.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_station.go @@ -34,7 +34,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassStation struct { // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -42,7 +42,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassStation struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v2 metro sub class station diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_timetable.go index e761b6f5..9a801bbd 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_timetable.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2MetroSubClassTimetable struct { // // 到站時刻(hh:mm) // Required: true - ArrivalTime *string `json:"ArrivalTime"` + ArrivalTime *string `json:"ArrivalTime" xml:"String"` // String // // 發車時刻(hh:mm) // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // Int32 // @@ -43,7 +43,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassTimetable struct { // // 車次號碼(捷運通常沒有TrainNo車次資訊) // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // 車種(0:不分車種, 1:普通車, 2:直達車) TrainType int32 `json:"TrainType,omitempty"` diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_travel_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_travel_time.go index 458379bf..e1b33e2f 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_travel_time.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_travel_time.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassTravelTime struct { // // 起站車站代號 // Required: true - FromStationID *string `json:"FromStationID"` + FromStationID *string `json:"FromStationID" xml:"String"` // NameType // @@ -33,7 +33,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassTravelTime struct { // Required: true FromStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"FromStationName"` + } `json:"FromStationName" xml:"NameType"` // Int32 // @@ -54,7 +54,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassTravelTime struct { // // 迄站車站代號 // Required: true - ToStationID *string `json:"ToStationID"` + ToStationID *string `json:"ToStationID" xml:"String"` // NameType // @@ -62,7 +62,7 @@ type PTXServiceDTORailSpecificationV2MetroSubClassTravelTime struct { // Required: true ToStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"ToStationName"` + } `json:"ToStationName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v2 metro sub class travel time diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_toilet.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_toilet.go index c33bc44c..e3b73a5a 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_toilet.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_toilet.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2MetroToilet struct { // // 位置描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // String // // 樓層 // Required: true - FloorLevel *string `json:"FloorLevel"` + FloorLevel *string `json:"FloorLevel" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 metro toilet diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_point_type.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_point_type.go index 6ea54912..6d083213 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_point_type.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_point_type.go @@ -22,7 +22,7 @@ type PTXServiceDTORailSpecificationV2PointType struct { // String // // 地理空間編碼 - GeoHash string `json:"GeoHash,omitempty"` + GeoHash string `json:"GeoHash,omitempty" xml:"String,omitempty"` // 位置緯度(WGS84) PositionLat float64 `json:"PositionLat,omitempty"` diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_alert_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_alert_info.go index b4f7f7d8..b705d034 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_alert_info.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_alert_info.go @@ -25,31 +25,31 @@ type PTXServiceDTORailSpecificationV2THSRAlertInfo struct { // // 事件簡易描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // String // // 運行方向 // Required: true - Direction *string `json:"Direction"` + Direction *string `json:"Direction" xml:"String"` // String // // 影響區間 // Required: true - EffectedSection *string `json:"EffectedSection"` + EffectedSection *string `json:"EffectedSection" xml:"String"` // String // // 影響狀態 // Required: true - Effects *string `json:"Effects"` + Effects *string `json:"Effects" xml:"String"` // integer // // 動態事件影響等級(本資料僅作參考,實際資料請參考高鐵http://www.thsrc.com.tw/tw/Operation) : [1:'全線正常運行',2:'有異常狀況'] // Required: true - Level *int32 `json:"Level"` + Level *string `json:"Level"` // DateTime // @@ -71,13 +71,13 @@ type PTXServiceDTORailSpecificationV2THSRAlertInfo struct { // // 營運狀態 = ['空白: 正常' or '▲: 其他的異常狀態' or 'X: 全線停止運行'] // Required: true - Status *string `json:"Status"` + Status *string `json:"Status" xml:"String"` // String // // 標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go index bbbf8c92..cb3c5d27 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go @@ -26,19 +26,19 @@ type PTXServiceDTORailSpecificationV2THSRAvailableSeat struct { // // 方向 : [0:'南下',1:'北上'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 終點車站代碼 // Required: true - EndingStationCode *string `json:"EndingStationCode"` + EndingStationCode *string `json:"EndingStationCode" xml:"String"` // String // // 終點車站簡碼(訂票系統用) // Required: true - EndingStationID *string `json:"EndingStationID"` + EndingStationID *string `json:"EndingStationID" xml:"String"` // NameType // @@ -46,19 +46,19 @@ type PTXServiceDTORailSpecificationV2THSRAvailableSeat struct { // Required: true EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName"` + } `json:"EndingStationName" xml:"NameType"` // String // // 起站車站簡碼(訂票系統用) // Required: true - StartingStationCode *string `json:"StartingStationCode"` + StartingStationCode *string `json:"StartingStationCode" xml:"String"` // String // // 起點車站代碼 // Required: true - StartingStationID *string `json:"StartingStationID"` + StartingStationID *string `json:"StartingStationID" xml:"String"` // NameType // @@ -66,19 +66,19 @@ type PTXServiceDTORailSpecificationV2THSRAvailableSeat struct { // Required: true StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName"` + } `json:"StartingStationName" xml:"NameType"` // Array // // 車次停靠站點組合 // Required: true - StopStations []*PTXServiceDTORailSpecificationV2THSRStopStation `json:"StopStations"` + StopStations []*PTXServiceDTORailSpecificationV2THSRStopStation "json:\"StopStations\" xml:\"List`1\"" // String // // 車次號碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 t h s r available seat diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_general_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_general_timetable.go index 4abc0c0f..186279bf 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_general_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_general_timetable.go @@ -28,7 +28,7 @@ type PTXServiceDTORailSpecificationV2THSRGeneralTimetable struct { // Required: true GeneralTrainInfo struct { PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo - } `json:"GeneralTrainInfo"` + } `json:"GeneralTrainInfo" xml:"RailGeneralTrainInfo"` // ServiceDay // @@ -36,7 +36,7 @@ type PTXServiceDTORailSpecificationV2THSRGeneralTimetable struct { // Required: true ServiceDay struct { PTXServiceDTORailSpecificationV2THSRServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // DateTime // @@ -48,7 +48,7 @@ type PTXServiceDTORailSpecificationV2THSRGeneralTimetable struct { // // 停靠時間資料 // Required: true - StopTimes []*PTXServiceDTORailSpecificationV2THSRRailStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTORailSpecificationV2THSRRailStopTime "json:\"StopTimes\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v2 t h s r general timetable diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_news.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_news.go index b5c73be0..83b5fa18 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_news.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_news.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2THSRNews struct { // // 消息附件網址連結 // Required: true - AttachmentURLList []string `json:"AttachmentUrlList"` + AttachmentURLList []string "json:\"AttachmentUrlList\" xml:\"List`1\"" // String // // 消息內容描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // DateTime // @@ -43,13 +43,13 @@ type PTXServiceDTORailSpecificationV2THSRNews struct { // // 語系 // Required: true - Language *string `json:"Language"` + Language *string `json:"Language" xml:"String"` // String // // 消息類別 // Required: true - NewsCategory *string `json:"NewsCategory"` + NewsCategory *string `json:"NewsCategory" xml:"String"` // Guid // @@ -62,7 +62,7 @@ type PTXServiceDTORailSpecificationV2THSRNews struct { // // 消息網址連結 // Required: true - NewsURL *string `json:"NewsUrl"` + NewsURL *string `json:"NewsUrl" xml:"String"` // DateTime // @@ -80,7 +80,7 @@ type PTXServiceDTORailSpecificationV2THSRNews struct { // // 消息標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go index 87b6be80..79109fab 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go @@ -25,19 +25,19 @@ type PTXServiceDTORailSpecificationV2THSRODAvailableSeat struct { // // 商務席剩餘座位狀態 // Required: true - BusinessSeatStatus *string `json:"BusinessSeatStatus"` + BusinessSeatStatus *string `json:"BusinessSeatStatus" xml:"String"` // String // // 迄站車站簡碼(訂票系統用) // Required: true - DestinationStationCode *string `json:"DestinationStationCode"` + DestinationStationCode *string `json:"DestinationStationCode" xml:"String"` // String // // 迄點車站代碼 // Required: true - DestinationStationID *string `json:"DestinationStationID"` + DestinationStationID *string `json:"DestinationStationID" xml:"String"` // NameType // @@ -45,7 +45,7 @@ type PTXServiceDTORailSpecificationV2THSRODAvailableSeat struct { // Required: true DestinationStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"DestinationStationName"` + } `json:"DestinationStationName" xml:"NameType"` // Int32 // @@ -57,13 +57,13 @@ type PTXServiceDTORailSpecificationV2THSRODAvailableSeat struct { // // 起站車站簡碼(訂票系統用) // Required: true - OriginStationCode *string `json:"OriginStationCode"` + OriginStationCode *string `json:"OriginStationCode" xml:"String"` // String // // 起點車站代碼 // Required: true - OriginStationID *string `json:"OriginStationID"` + OriginStationID *string `json:"OriginStationID" xml:"String"` // NameType // @@ -71,19 +71,19 @@ type PTXServiceDTORailSpecificationV2THSRODAvailableSeat struct { // Required: true OriginStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OriginStationName"` + } `json:"OriginStationName" xml:"NameType"` // String // // 標準席剩餘座位狀態 // Required: true - StandardSeatStatus *string `json:"StandardSeatStatus"` + StandardSeatStatus *string `json:"StandardSeatStatus" xml:"String"` // String // // 車次號碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 t h s r o d available seat diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go index 1fab3bc9..f915807e 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go @@ -26,19 +26,19 @@ type PTXServiceDTORailSpecificationV2THSROldAvailableSeat struct { // // 發車時間(格式: HH:mm) // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // integer // // 方向 : [0:'南下',1:'北上'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 終點車站代碼 // Required: true - EndingStationID *string `json:"EndingStationID"` + EndingStationID *string `json:"EndingStationID" xml:"String"` // NameType // @@ -46,7 +46,7 @@ type PTXServiceDTORailSpecificationV2THSROldAvailableSeat struct { // Required: true EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName"` + } `json:"EndingStationName" xml:"NameType"` // DateTime // @@ -58,7 +58,7 @@ type PTXServiceDTORailSpecificationV2THSROldAvailableSeat struct { // // 查詢車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -66,19 +66,19 @@ type PTXServiceDTORailSpecificationV2THSROldAvailableSeat struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Array // // 車次停靠站點組合 // Required: true - StopStations []*PTXServiceDTORailSpecificationV2THSRStopStation `json:"StopStations"` + StopStations []*PTXServiceDTORailSpecificationV2THSRStopStation "json:\"StopStations\" xml:\"List`1\"" // String // // 車次號碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 t h s r old available seat diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_timetable.go index 6e547fd6..8f316709 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_timetable.go @@ -28,19 +28,19 @@ type PTXServiceDTORailSpecificationV2THSRRailDailyTimetable struct { // Required: true DailyTrainInfo struct { PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo - } `json:"DailyTrainInfo"` + } `json:"DailyTrainInfo" xml:"RailDailyTrainInfo"` // Array // // 停靠時間資料 // Required: true - StopTimes []*PTXServiceDTORailSpecificationV2THSRRailStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTORailSpecificationV2THSRRailStopTime "json:\"StopTimes\" xml:\"List`1\"" // String // // 行駛日期(格式: yyyy:MM:dd) // Required: true - TrainDate *string `json:"TrainDate"` + TrainDate *string `json:"TrainDate" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_train_info.go index 4b9439b6..c91d5c1b 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_train_info.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_train_info.go @@ -25,44 +25,44 @@ type PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo struct { // // 行駛方向 : [0:'南下',1:'北上'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 列車終點車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車終點車站名稱 EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName,omitempty"` + } `json:"EndingStationName,omitempty" xml:"NameType,omitempty"` // NameType // // 附註說明 Note struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"Note,omitempty"` + } `json:"Note,omitempty" xml:"NameType,omitempty"` // String // // 列車起點車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車起點車站名稱 StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName,omitempty"` + } `json:"StartingStationName,omitempty" xml:"NameType,omitempty"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_timetable.go index cd5275a2..4573e1b6 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_timetable.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable struct { // // 有效日期(格式: yyyy:MM:dd) // Required: true - EffectiveDate *string `json:"EffectiveDate"` + EffectiveDate *string `json:"EffectiveDate" xml:"String"` // String // // 結束日期(格式: yyyy:MM:dd) // Required: true - ExpiringDate *string `json:"ExpiringDate"` + ExpiringDate *string `json:"ExpiringDate" xml:"String"` // GeneralTimetable // @@ -39,7 +39,7 @@ type PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable struct { // Required: true GeneralTimetable struct { PTXServiceDTORailSpecificationV2THSRGeneralTimetable - } `json:"GeneralTimetable"` + } `json:"GeneralTimetable" xml:"GeneralTimetable"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_train_info.go index 6133d630..a5b96d2b 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_train_info.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_train_info.go @@ -25,44 +25,44 @@ type PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo struct { // // 行駛方向 : [0:'南下',1:'北上'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 列車終點車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車終點車站名稱 EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName,omitempty"` + } `json:"EndingStationName,omitempty" xml:"NameType,omitempty"` // NameType // // 附註說明 Note struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"Note,omitempty"` + } `json:"Note,omitempty" xml:"NameType,omitempty"` // String // // 列車起點車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車起點車站名稱 StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName,omitempty"` + } `json:"StartingStationName,omitempty" xml:"NameType,omitempty"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 t h s r rail general train info diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_daily_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_daily_timetable.go index 8d60d6e9..583c43f9 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_daily_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_daily_timetable.go @@ -27,7 +27,7 @@ type PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable struct { // Required: true DailyTrainInfo struct { PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo - } `json:"DailyTrainInfo"` + } `json:"DailyTrainInfo" xml:"RailDailyTrainInfo"` // RailStopTime // @@ -35,7 +35,7 @@ type PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable struct { // Required: true DestinationStopTime struct { PTXServiceDTORailSpecificationV2THSRRailStopTime - } `json:"DestinationStopTime"` + } `json:"DestinationStopTime" xml:"RailStopTime"` // RailStopTime // @@ -43,13 +43,13 @@ type PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable struct { // Required: true OriginStopTime struct { PTXServiceDTORailSpecificationV2THSRRailStopTime - } `json:"OriginStopTime"` + } `json:"OriginStopTime" xml:"RailStopTime"` // String // // 行駛日期(格式: yyyy:MM:dd) // Required: true - TrainDate *string `json:"TrainDate"` + TrainDate *string `json:"TrainDate" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_fare.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_fare.go index 6ebd3500..14dee932 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_fare.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_fare.go @@ -26,7 +26,7 @@ type PTXServiceDTORailSpecificationV2THSRRailODFare struct { // // 迄點車站代碼 // Required: true - DestinationStationID *string `json:"DestinationStationID"` + DestinationStationID *string `json:"DestinationStationID" xml:"String"` // NameType // @@ -34,25 +34,25 @@ type PTXServiceDTORailSpecificationV2THSRRailODFare struct { // Required: true DestinationStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"DestinationStationName"` + } `json:"DestinationStationName" xml:"NameType"` // integer // // 行駛方向 : [0:'南下',1:'北上'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // Array // // 票價收費資訊(本項僅列標準、商務及自由之基本票價,其他優待票及團體票之折扣計算請參考高鐵網站票價產品一覽表http://www.thsrc.com.tw/tw/Article/ArticleContent/caa6fac8-b875-4ad6-b1e6-96c2902d12a6 說明) // Required: true - Fares []*PTXServiceDTOSharedSpecificationV2BaseFare `json:"Fares"` + Fares []*PTXServiceDTOSharedSpecificationV2BaseFare "json:\"Fares\" xml:\"List`1\"" // String // // 起點車站代碼 // Required: true - OriginStationID *string `json:"OriginStationID"` + OriginStationID *string `json:"OriginStationID" xml:"String"` // NameType // @@ -60,7 +60,7 @@ type PTXServiceDTORailSpecificationV2THSRRailODFare struct { // Required: true OriginStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OriginStationName"` + } `json:"OriginStationName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station.go index 940603ac..4e91df3b 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station.go @@ -24,46 +24,46 @@ type PTXServiceDTORailSpecificationV2THSRRailStation struct { // String // // 車站位置所屬縣市 - LocationCity string `json:"LocationCity,omitempty"` + LocationCity string `json:"LocationCity,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬縣市代碼 - LocationCityCode string `json:"LocationCityCode,omitempty"` + LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬鄉鎮 - LocationTown string `json:"LocationTown,omitempty"` + LocationTown string `json:"LocationTown,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬鄉鎮代碼 - LocationTownCode string `json:"LocationTownCode,omitempty"` + LocationTownCode string `json:"LocationTownCode,omitempty" xml:"String,omitempty"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 車站地址 // Required: true - StationAddress *string `json:"StationAddress"` + StationAddress *string `json:"StationAddress" xml:"String"` // String // // 車站簡碼(訂票系統用) // Required: true - StationCode *string `json:"StationCode"` + StationCode *string `json:"StationCode" xml:"String"` // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -71,25 +71,25 @@ type PTXServiceDTORailSpecificationV2THSRRailStation struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 車站聯絡電話 - StationPhone string `json:"StationPhone,omitempty"` + StationPhone string `json:"StationPhone,omitempty" xml:"String,omitempty"` // PointType // // 車站位置 StationPosition struct { PTXServiceDTORailSpecificationV2PointType - } `json:"StationPosition,omitempty"` + } `json:"StationPosition,omitempty" xml:"PointType,omitempty"` // String // // 車站唯一識別代碼 // Required: true - StationUID *string `json:"StationUID"` + StationUID *string `json:"StationUID" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station_timetable.go index 68493e4d..bef629b5 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station_timetable.go @@ -25,25 +25,25 @@ type PTXServiceDTORailSpecificationV2THSRRailStationTimetable struct { // // 到站時間(格式: HH:mm:ss) // Required: true - ArrivalTime *string `json:"ArrivalTime"` + ArrivalTime *string `json:"ArrivalTime" xml:"String"` // String // // 離站時間(格式: HH:mm:ss) // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // integer // // 順逆行 : [0:'南下',1:'北上'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 終點車站代號 // Required: true - EndingStationID *string `json:"EndingStationID"` + EndingStationID *string `json:"EndingStationID" xml:"String"` // NameType // @@ -51,13 +51,13 @@ type PTXServiceDTORailSpecificationV2THSRRailStationTimetable struct { // Required: true EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName"` + } `json:"EndingStationName" xml:"NameType"` // String // // 起點車站代號 // Required: true - StartingStationID *string `json:"StartingStationID"` + StartingStationID *string `json:"StartingStationID" xml:"String"` // NameType // @@ -65,13 +65,13 @@ type PTXServiceDTORailSpecificationV2THSRRailStationTimetable struct { // Required: true StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName"` + } `json:"StartingStationName" xml:"NameType"` // String // // 車站代號 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -79,19 +79,19 @@ type PTXServiceDTORailSpecificationV2THSRRailStationTimetable struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 時刻表日期(格式: yyyy-MM-dd) // Required: true - TrainDate *string `json:"TrainDate"` + TrainDate *string `json:"TrainDate" xml:"String"` // String // // 車次代號 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_stop_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_stop_time.go index 31f39b96..0fe9dda7 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_stop_time.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_stop_time.go @@ -24,19 +24,19 @@ type PTXServiceDTORailSpecificationV2THSRRailStopTime struct { // String // // 到站時間(格式: HH:mm:ss) - ArrivalTime string `json:"ArrivalTime,omitempty"` + ArrivalTime string `json:"ArrivalTime,omitempty" xml:"String,omitempty"` // String // // 離站時間(格式: HH:mm:ss) // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -44,7 +44,7 @@ type PTXServiceDTORailSpecificationV2THSRRailStopTime struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Int32 // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_service_day.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_service_day.go index 9feedf6f..96e9b01a 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_service_day.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_service_day.go @@ -25,43 +25,43 @@ type PTXServiceDTORailSpecificationV2THSRServiceDay struct { // // 星期五是否營運 : [0:'否',1:'是'] // Required: true - Friday *int32 `json:"Friday"` + Friday *string `json:"Friday"` // integer // // 星期一是否營運 : [0:'否',1:'是'] // Required: true - Monday *int32 `json:"Monday"` + Monday *string `json:"Monday"` // integer // // 星期六是否營運 : [0:'否',1:'是'] // Required: true - Saturday *int32 `json:"Saturday"` + Saturday *string `json:"Saturday"` // integer // // 星期日是否營運 : [0:'否',1:'是'] // Required: true - Sunday *int32 `json:"Sunday"` + Sunday *string `json:"Sunday"` // integer // // 星期四是否營運 : [0:'否',1:'是'] // Required: true - Thursday *int32 `json:"Thursday"` + Thursday *string `json:"Thursday"` // integer // // 星期二是否營運 : [0:'否',1:'是'] // Required: true - Tuesday *int32 `json:"Tuesday"` + Tuesday *string `json:"Tuesday"` // integer // // 星期三是否營運 : [0:'否',1:'是'] // Required: true - Wednesday *int32 `json:"Wednesday"` + Wednesday *string `json:"Wednesday"` } // Validate validates this p t x service d t o rail specification v2 t h s r service day diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_station_exit.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_station_exit.go index 3ba41efe..da84f480 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_station_exit.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_station_exit.go @@ -33,7 +33,7 @@ type PTXServiceDTORailSpecificationV2THSRStationExit struct { // // 出入口代碼 // Required: true - ExitID *string `json:"ExitID"` + ExitID *string `json:"ExitID" xml:"String"` // NameType // @@ -41,7 +41,7 @@ type PTXServiceDTORailSpecificationV2THSRStationExit struct { // Required: true ExitName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"ExitName"` + } `json:"ExitName" xml:"NameType"` // PointType // @@ -49,13 +49,13 @@ type PTXServiceDTORailSpecificationV2THSRStationExit struct { // Required: true ExitPosition struct { PTXServiceDTOSharedSpecificationV2BasePointType - } `json:"ExitPosition"` + } `json:"ExitPosition" xml:"PointType"` // String // // 地址描述 // Required: true - LocationDescription *string `json:"LocationDescription"` + LocationDescription *string `json:"LocationDescription" xml:"String"` // DateTime // @@ -71,7 +71,7 @@ type PTXServiceDTORailSpecificationV2THSRStationExit struct { // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -79,7 +79,7 @@ type PTXServiceDTORailSpecificationV2THSRStationExit struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_stop_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_stop_station.go index a1d8f85b..fcfc3cef 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_stop_station.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_stop_station.go @@ -25,19 +25,19 @@ type PTXServiceDTORailSpecificationV2THSRStopStation struct { // // 商務席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位'] // Required: true - BusinessSeatStatus *string `json:"BusinessSeatStatus"` + BusinessSeatStatus *string `json:"BusinessSeatStatus" xml:"String"` // String // // 下一停靠站車站簡碼(訂票系統用) // Required: true - NextStationCode *string `json:"NextStationCode"` + NextStationCode *string `json:"NextStationCode" xml:"String"` // String // // 下一停靠站車站代碼 // Required: true - NextStationID *string `json:"NextStationID"` + NextStationID *string `json:"NextStationID" xml:"String"` // NameType // @@ -45,25 +45,25 @@ type PTXServiceDTORailSpecificationV2THSRStopStation struct { // Required: true NextStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"NextStationName"` + } `json:"NextStationName" xml:"NameType"` // String // // 標準席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位'] // Required: true - StandardSeatStatus *string `json:"StandardSeatStatus"` + StandardSeatStatus *string `json:"StandardSeatStatus" xml:"String"` // String // // 車站簡碼(訂票系統用) // Required: true - StationCode *string `json:"StationCode"` + StationCode *string `json:"StationCode" xml:"String"` // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -71,7 +71,7 @@ type PTXServiceDTORailSpecificationV2THSRStopStation struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Int32 // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_t_h_s_r_shape.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_t_h_s_r_shape.go index d6b833b2..77a550be 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_t_h_s_r_shape.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_t_h_s_r_shape.go @@ -23,19 +23,19 @@ type PTXServiceDTORailSpecificationV2THSRTHSRShape struct { // // 路線軌跡編碼(encoded polyline) // Required: true - EncodedPolyline *string `json:"EncodedPolyline"` + EncodedPolyline *string `json:"EncodedPolyline" xml:"String"` // String // // well-known text,為路線軌跡資料 // Required: true - Geometry *string `json:"Geometry"` + Geometry *string `json:"Geometry" xml:"String"` // String // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // NameType // @@ -43,7 +43,7 @@ type PTXServiceDTORailSpecificationV2THSRTHSRShape struct { // Required: true LineName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"LineName"` + } `json:"LineName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_time_info_rail_daily_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_time_info_rail_daily_train_info.go index ba15e8b9..3c56cfc3 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_time_info_rail_daily_train_info.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_time_info_rail_daily_train_info.go @@ -25,44 +25,44 @@ type PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo struct { // // 行駛方向 : [0:'南下',1:'北上'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 列車終點車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車終點車站名稱 EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName,omitempty"` + } `json:"EndingStationName,omitempty" xml:"NameType,omitempty"` // NameType // // 附註說明 Note struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"Note,omitempty"` + } `json:"Note,omitempty" xml:"NameType,omitempty"` // String // // 列車起點車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車起點車站名稱 StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName,omitempty"` + } `json:"StartingStationName,omitempty" xml:"NameType,omitempty"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 t h s r time info rail daily train info diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_general_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_general_timetable.go index 009c87d2..83683a3d 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_general_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_general_timetable.go @@ -28,7 +28,7 @@ type PTXServiceDTORailSpecificationV2TRAGeneralTimetable struct { // Required: true GeneralTrainInfo struct { PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo - } `json:"GeneralTrainInfo"` + } `json:"GeneralTrainInfo" xml:"RailGeneralTrainInfo"` // ServiceDay // @@ -36,7 +36,7 @@ type PTXServiceDTORailSpecificationV2TRAGeneralTimetable struct { // Required: true ServiceDay struct { PTXServiceDTORailSpecificationV2TRAServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // DateTime // @@ -47,7 +47,7 @@ type PTXServiceDTORailSpecificationV2TRAGeneralTimetable struct { // // 停靠時間資料 // Required: true - StopTimes []*PTXServiceDTORailSpecificationV2TRARailStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTORailSpecificationV2TRARailStopTime "json:\"StopTimes\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v2 t r a general timetable diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line.go index 2c33d454..d88c1a8b 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line.go @@ -30,43 +30,43 @@ type PTXServiceDTORailSpecificationV2TRALine struct { // String // // 路線顏色 - LineColor string `json:"LineColor,omitempty"` + LineColor string `json:"LineColor,omitempty" xml:"String,omitempty"` // String // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 路線英文名稱 // Required: true - LineNameEn *string `json:"LineNameEn"` + LineNameEn *string `json:"LineNameEn" xml:"String"` // String // // 路線中文名稱 // Required: true - LineNameZh *string `json:"LineNameZh"` + LineNameZh *string `json:"LineNameZh" xml:"String"` // String // // 路線編號 // Required: true - LineNo *string `json:"LineNo"` + LineNo *string `json:"LineNo" xml:"String"` // String // // 路線區間英文名稱 // Required: true - LineSectionNameEn *string `json:"LineSectionNameEn"` + LineSectionNameEn *string `json:"LineSectionNameEn" xml:"String"` // String // // 路線區間中文名稱 // Required: true - LineSectionNameZh *string `json:"LineSectionNameZh"` + LineSectionNameZh *string `json:"LineSectionNameZh" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_simple.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_simple.go index fb9f0eb8..70c45791 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_simple.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_simple.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2TRALineSimple struct { // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 路線編號 // Required: true - LineNo *string `json:"LineNo"` + LineNo *string `json:"LineNo" xml:"String"` } // Validate validates this p t x service d t o rail specification v2 t r a line simple diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_station.go index dda85c36..cb3f35fd 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_station.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_station.go @@ -31,13 +31,13 @@ type PTXServiceDTORailSpecificationV2TRALineStation struct { // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // String // // 車站名稱 // Required: true - StationName *string `json:"StationName"` + StationName *string `json:"StationName" xml:"String"` // Single // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_network.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_network.go index a5a2c31b..94ba3743 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_network.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_network.go @@ -26,49 +26,49 @@ type PTXServiceDTORailSpecificationV2TRANetwork struct { // // 臺鐵路線資訊 // Required: true - Lines []*PTXServiceDTORailSpecificationV2TRALineSimple `json:"Lines"` + Lines []*PTXServiceDTORailSpecificationV2TRALineSimple "json:\"Lines\" xml:\"List`1\"" // String // // 臺鐵路網代碼 // Required: true - NetworkID *string `json:"NetworkID"` + NetworkID *string `json:"NetworkID" xml:"String"` // String // // 臺鐵路網圖網址URL // Required: true - NetworkMapURL *string `json:"NetworkMapUrl"` + NetworkMapURL *string `json:"NetworkMapUrl" xml:"String"` // String // // 臺鐵路網英文名稱 // Required: true - NetworkNameEn *string `json:"NetworkNameEn"` + NetworkNameEn *string `json:"NetworkNameEn" xml:"String"` // String // // 臺鐵路網中文名稱 // Required: true - NetworkNameZh *string `json:"NetworkNameZh"` + NetworkNameZh *string `json:"NetworkNameZh" xml:"String"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 臺鐵路網英文名稱 // Required: true - OperatorNameEn *string `json:"OperatorNameEn"` + OperatorNameEn *string `json:"OperatorNameEn" xml:"String"` // String // // 臺鐵路網中文名稱 // Required: true - OperatorNameZh *string `json:"OperatorNameZh"` + OperatorNameZh *string `json:"OperatorNameZh" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_timetable.go index 1c32183e..495b371b 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_timetable.go @@ -28,19 +28,19 @@ type PTXServiceDTORailSpecificationV2TRARailDailyTimetable struct { // Required: true DailyTrainInfo struct { PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo - } `json:"DailyTrainInfo"` + } `json:"DailyTrainInfo" xml:"RailDailyTrainInfo"` // Array // // 停靠時間資料 // Required: true - StopTimes []*PTXServiceDTORailSpecificationV2TRARailStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTORailSpecificationV2TRARailStopTime "json:\"StopTimes\" xml:\"List`1\"" // String // // 行駛日期(格式: yyyy-MM-dd) // Required: true - TrainDate *string `json:"TrainDate"` + TrainDate *string `json:"TrainDate" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_train_info.go index 3adff3dd..e5643d03 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_train_info.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_train_info.go @@ -25,97 +25,97 @@ type PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo struct { // // 是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是'] // Required: true - BikeFlag *int32 `json:"BikeFlag"` + BikeFlag *string `json:"BikeFlag"` // integer // // 是否設有哺(集)乳室車廂 : [0:'否',1:'是'] // Required: true - BreastFeedingFlag *int32 `json:"BreastFeedingFlag"` + BreastFeedingFlag *string `json:"BreastFeedingFlag"` // integer // // 是否每日行駛 : [0:'否',1:'是'] // Required: true - DailyFlag *int32 `json:"DailyFlag"` + DailyFlag *string `json:"DailyFlag"` // integer // // 是否提供訂便當服務 : [0:'否',1:'是'] // Required: true - DiningFlag *int32 `json:"DiningFlag"` + DiningFlag *string `json:"DiningFlag"` // integer // // 順逆行 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 列車終點車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車終點車站名稱 EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName,omitempty"` + } `json:"EndingStationName,omitempty" xml:"NameType,omitempty"` // NameType // // 附註說明 Note struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"Note,omitempty"` + } `json:"Note,omitempty" xml:"NameType,omitempty"` // String // // 跨夜車站代碼 - OverNightStationID string `json:"OverNightStationID,omitempty"` + OverNightStationID string `json:"OverNightStationID,omitempty" xml:"String,omitempty"` // integer // // 是否提供行李服務 : [0:'否',1:'是'] // Required: true - PackageServiceFlag *int32 `json:"PackageServiceFlag"` + PackageServiceFlag *string `json:"PackageServiceFlag"` // integer // // 是否為加班車 : [0:'否',1:'是'] // Required: true - ServiceAddedFlag *int32 `json:"ServiceAddedFlag"` + ServiceAddedFlag *string `json:"ServiceAddedFlag"` // String // // 列車起點車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車起點車站名稱 StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName,omitempty"` + } `json:"StartingStationName,omitempty" xml:"NameType,omitempty"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 列車車種簡碼 // Required: true - TrainTypeCode *string `json:"TrainTypeCode"` + TrainTypeCode *string `json:"TrainTypeCode" xml:"String"` // String // // 列車車種代碼 // Required: true - TrainTypeID *string `json:"TrainTypeID"` + TrainTypeID *string `json:"TrainTypeID" xml:"String"` // NameType // @@ -123,17 +123,17 @@ type PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo struct { // Required: true TrainTypeName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"TrainTypeName"` + } `json:"TrainTypeName" xml:"NameType"` // String // // 車次車頭文字描述(通用以"往"+ 迄站中文站名") - TripHeadsign string `json:"TripHeadsign,omitempty"` + TripHeadsign string `json:"TripHeadsign,omitempty" xml:"String,omitempty"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // DateTime // @@ -151,7 +151,7 @@ type PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo struct { // // 是否設身障旅客專用座位車 : [0:'否',1:'是'] // Required: true - WheelchairFlag *int32 `json:"WheelchairFlag"` + WheelchairFlag *string `json:"WheelchairFlag"` } // Validate validates this p t x service d t o rail specification v2 t r a rail daily train info diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_timetable.go index d1f53cd8..d963f9c0 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_timetable.go @@ -27,7 +27,7 @@ type PTXServiceDTORailSpecificationV2TRARailGeneralTimetable struct { // Required: true GeneralTimetable struct { PTXServiceDTORailSpecificationV2TRAGeneralTimetable - } `json:"GeneralTimetable"` + } `json:"GeneralTimetable" xml:"GeneralTimetable"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_train_info.go index 7c550dc0..2d85aa59 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_train_info.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_train_info.go @@ -25,101 +25,101 @@ type PTXServiceDTORailSpecificationV2TRARailGeneralTrainInfo struct { // // 是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是'] // Required: true - BikeFlag *int32 `json:"BikeFlag"` + BikeFlag *string `json:"BikeFlag"` // integer // // 是否設有哺(集)乳室車廂 : [0:'否',1:'是'] // Required: true - BreastFeedingFlag *int32 `json:"BreastFeedingFlag"` + BreastFeedingFlag *string `json:"BreastFeedingFlag"` // integer // // 是否為每日行駛 : [0:'否',1:'是'] // Required: true - DailyFlag *int32 `json:"DailyFlag"` + DailyFlag *string `json:"DailyFlag"` // integer // // 是否提供訂便當服務 : [0:'否',1:'是'] // Required: true - DiningFlag *int32 `json:"DiningFlag"` + DiningFlag *string `json:"DiningFlag"` // integer // // 順逆行 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 列車終點車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車終點車站名稱 EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName,omitempty"` + } `json:"EndingStationName,omitempty" xml:"NameType,omitempty"` // NameType // // 附註說明 Note struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"Note,omitempty"` + } `json:"Note,omitempty" xml:"NameType,omitempty"` // String // // 跨夜車站代碼 - OverNightStationID string `json:"OverNightStationID,omitempty"` + OverNightStationID string `json:"OverNightStationID,omitempty" xml:"String,omitempty"` // integer // // 是否提供行李服務 : [0:'否',1:'是'] // Required: true - PackageServiceFlag *int32 `json:"PackageServiceFlag"` + PackageServiceFlag *string `json:"PackageServiceFlag"` // String // // 列車起點車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車起點車站名稱 StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName,omitempty"` + } `json:"StartingStationName,omitempty" xml:"NameType,omitempty"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 列車車種簡碼 - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 列車車種代碼 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // // 列車車種名稱 TrainTypeName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"TrainTypeName,omitempty"` + } `json:"TrainTypeName,omitempty" xml:"NameType,omitempty"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // DateTime // @@ -137,7 +137,7 @@ type PTXServiceDTORailSpecificationV2TRARailGeneralTrainInfo struct { // // 是否設身障旅客專用座位車 : [0:'否',1:'是'] // Required: true - WheelchairFlag *int32 `json:"WheelchairFlag"` + WheelchairFlag *string `json:"WheelchairFlag"` } // Validate validates this p t x service d t o rail specification v2 t r a rail general train info diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_board.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_board.go index fbfd8476..d08b2154 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_board.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_board.go @@ -31,13 +31,13 @@ type PTXServiceDTORailSpecificationV2TRARailLiveBoard struct { // // 順逆行 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 車次終點車站代號 // Required: true - EndingStationID *string `json:"EndingStationID"` + EndingStationID *string `json:"EndingStationID" xml:"String"` // NameType // @@ -45,19 +45,19 @@ type PTXServiceDTORailSpecificationV2TRARailLiveBoard struct { // Required: true EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName"` + } `json:"EndingStationName" xml:"NameType"` // String // // 表訂到站時間(格式: HH:mm:ss) // Required: true - ScheduledArrivalTime *string `json:"ScheduledArrivalTime"` + ScheduledArrivalTime *string `json:"ScheduledArrivalTime" xml:"String"` // String // // 表訂離站時間(格式: HH:mm:ss) // Required: true - ScheduledDepartureTime *string `json:"ScheduledDepartureTime"` + ScheduledDepartureTime *string `json:"ScheduledDepartureTime" xml:"String"` // DateTime // @@ -69,7 +69,7 @@ type PTXServiceDTORailSpecificationV2TRARailLiveBoard struct { // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -77,35 +77,35 @@ type PTXServiceDTORailSpecificationV2TRARailLiveBoard struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 列車車種簡碼 - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 列車車種代碼 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // // 列車車種名稱 TrainTypeName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"TrainTypeName,omitempty"` + } `json:"TrainTypeName,omitempty" xml:"NameType,omitempty"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_train_delay.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_train_delay.go index 6d0564bb..b1e728eb 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_train_delay.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_train_delay.go @@ -37,7 +37,7 @@ type PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay struct { // // 最近通過車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -45,13 +45,13 @@ type PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_daily_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_daily_timetable.go index bfdd5229..70001796 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_daily_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_daily_timetable.go @@ -27,7 +27,7 @@ type PTXServiceDTORailSpecificationV2TRARailODDailyTimetable struct { // Required: true DailyTrainInfo struct { PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo - } `json:"DailyTrainInfo"` + } `json:"DailyTrainInfo" xml:"RailDailyTrainInfo"` // RailStopTime // @@ -35,7 +35,7 @@ type PTXServiceDTORailSpecificationV2TRARailODDailyTimetable struct { // Required: true DestinationStopTime struct { PTXServiceDTORailSpecificationV2TRARailStopTime - } `json:"DestinationStopTime"` + } `json:"DestinationStopTime" xml:"RailStopTime"` // RailStopTime // @@ -43,13 +43,13 @@ type PTXServiceDTORailSpecificationV2TRARailODDailyTimetable struct { // Required: true OriginStopTime struct { PTXServiceDTORailSpecificationV2TRARailStopTime - } `json:"OriginStopTime"` + } `json:"OriginStopTime" xml:"RailStopTime"` // String // // 行駛日期(格式: yyyy:MM:dd) // Required: true - TrainDate *string `json:"TrainDate"` + TrainDate *string `json:"TrainDate" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_fare.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_fare.go index 3cca58a5..cd1b091e 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_fare.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_fare.go @@ -26,7 +26,7 @@ type PTXServiceDTORailSpecificationV2TRARailODFare struct { // // 迄點車站代碼 // Required: true - DestinationStationID *string `json:"DestinationStationID"` + DestinationStationID *string `json:"DestinationStationID" xml:"String"` // NameType // @@ -34,25 +34,25 @@ type PTXServiceDTORailSpecificationV2TRARailODFare struct { // Required: true DestinationStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"DestinationStationName"` + } `json:"DestinationStationName" xml:"NameType"` // integer // // 順逆行 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // Array // // 票價收費資訊 // Required: true - Fares []*PTXServiceDTOSharedSpecificationV2BaseFare `json:"Fares"` + Fares []*PTXServiceDTOSharedSpecificationV2BaseFare "json:\"Fares\" xml:\"List`1\"" // String // // 起點車站代碼 // Required: true - OriginStationID *string `json:"OriginStationID"` + OriginStationID *string `json:"OriginStationID" xml:"String"` // NameType // @@ -60,7 +60,7 @@ type PTXServiceDTORailSpecificationV2TRARailODFare struct { // Required: true OriginStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OriginStationName"` + } `json:"OriginStationName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station.go index b0cd899b..a2203a1f 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station.go @@ -24,50 +24,50 @@ type PTXServiceDTORailSpecificationV2TRARailStation struct { // String // // 車站位置所屬縣市 - LocationCity string `json:"LocationCity,omitempty"` + LocationCity string `json:"LocationCity,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬縣市代碼 - LocationCityCode string `json:"LocationCityCode,omitempty"` + LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬鄉鎮 - LocationTown string `json:"LocationTown,omitempty"` + LocationTown string `json:"LocationTown,omitempty" xml:"String,omitempty"` // String // // 車站位置所屬鄉鎮代碼 - LocationTownCode string `json:"LocationTownCode,omitempty"` + LocationTownCode string `json:"LocationTownCode,omitempty" xml:"String,omitempty"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // String // // 票價用站牌代碼 - ReservationCode string `json:"ReservationCode,omitempty"` + ReservationCode string `json:"ReservationCode,omitempty" xml:"String,omitempty"` // String // // 車站地址 // Required: true - StationAddress *string `json:"StationAddress"` + StationAddress *string `json:"StationAddress" xml:"String"` // String // // 車站級別 - StationClass string `json:"StationClass,omitempty"` + StationClass string `json:"StationClass,omitempty" xml:"String,omitempty"` // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -75,25 +75,25 @@ type PTXServiceDTORailSpecificationV2TRARailStation struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 車站聯絡電話 - StationPhone string `json:"StationPhone,omitempty"` + StationPhone string `json:"StationPhone,omitempty" xml:"String,omitempty"` // PointType // // 車站位置 StationPosition struct { PTXServiceDTORailSpecificationV2PointType - } `json:"StationPosition,omitempty"` + } `json:"StationPosition,omitempty" xml:"PointType,omitempty"` // String // // 車站唯一識別代碼 // Required: true - StationUID *string `json:"StationUID"` + StationUID *string `json:"StationUID" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station_timetable.go index 9773970a..a7cffcaa 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station_timetable.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station_timetable.go @@ -25,25 +25,25 @@ type PTXServiceDTORailSpecificationV2TRARailStationTimetable struct { // // 到站時間(格式: HH:mm:ss) // Required: true - ArrivalTime *string `json:"ArrivalTime"` + ArrivalTime *string `json:"ArrivalTime" xml:"String"` // String // // 離站時間(格式: HH:mm:ss) // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // integer // // 順逆行 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 終點車站代號 // Required: true - EndingStationID *string `json:"EndingStationID"` + EndingStationID *string `json:"EndingStationID" xml:"String"` // NameType // @@ -51,13 +51,13 @@ type PTXServiceDTORailSpecificationV2TRARailStationTimetable struct { // Required: true EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName"` + } `json:"EndingStationName" xml:"NameType"` // String // // 起點車站代號 // Required: true - StartingStationID *string `json:"StartingStationID"` + StartingStationID *string `json:"StartingStationID" xml:"String"` // NameType // @@ -65,13 +65,13 @@ type PTXServiceDTORailSpecificationV2TRARailStationTimetable struct { // Required: true StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName"` + } `json:"StartingStationName" xml:"NameType"` // String // // 車站代號 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -79,41 +79,41 @@ type PTXServiceDTORailSpecificationV2TRARailStationTimetable struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 時刻表日期(格式: yyyy-MM-dd) // Required: true - TrainDate *string `json:"TrainDate"` + TrainDate *string `json:"TrainDate" xml:"String"` // String // // 車次代號 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 列車車種簡碼 - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 列車車種代碼 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // // 列車車種名稱 TrainTypeName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"TrainTypeName,omitempty"` + } `json:"TrainTypeName,omitempty" xml:"NameType,omitempty"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_stop_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_stop_time.go index e6ce1ff0..2e2bf651 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_stop_time.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_stop_time.go @@ -25,19 +25,19 @@ type PTXServiceDTORailSpecificationV2TRARailStopTime struct { // // 到站時間(格式: HH:mm:ss) // Required: true - ArrivalTime *string `json:"ArrivalTime"` + ArrivalTime *string `json:"ArrivalTime" xml:"String"` // String // // 離站時間(格式: HH:mm:ss) // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -45,7 +45,7 @@ type PTXServiceDTORailSpecificationV2TRARailStopTime struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Int32 // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_service_day.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_service_day.go index b0fecea6..80221e11 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_service_day.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_service_day.go @@ -25,43 +25,43 @@ type PTXServiceDTORailSpecificationV2TRAServiceDay struct { // // 星期五是否營運 : [0:'否',1:'是'] // Required: true - Friday *int32 `json:"Friday"` + Friday *string `json:"Friday"` // integer // // 星期一是否營運 : [0:'否',1:'是'] // Required: true - Monday *int32 `json:"Monday"` + Monday *string `json:"Monday"` // integer // // 星期六是否營運 : [0:'否',1:'是'] // Required: true - Saturday *int32 `json:"Saturday"` + Saturday *string `json:"Saturday"` // integer // // 星期日是否營運 : [0:'否',1:'是'] // Required: true - Sunday *int32 `json:"Sunday"` + Sunday *string `json:"Sunday"` // integer // // 星期四是否營運 : [0:'否',1:'是'] // Required: true - Thursday *int32 `json:"Thursday"` + Thursday *string `json:"Thursday"` // integer // // 星期二是否營運 : [0:'否',1:'是'] // Required: true - Tuesday *int32 `json:"Tuesday"` + Tuesday *string `json:"Tuesday"` // integer // // 星期三是否營運 : [0:'否',1:'是'] // Required: true - Wednesday *int32 `json:"Wednesday"` + Wednesday *string `json:"Wednesday"` } // Validate validates this p t x service d t o rail specification v2 t r a service day diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_station_of_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_station_of_line.go index 4dd3a30d..b4517cbd 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_station_of_line.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_station_of_line.go @@ -26,19 +26,19 @@ type PTXServiceDTORailSpecificationV2TRAStationOfLine struct { // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 路線編號 // Required: true - LineNo *string `json:"LineNo"` + LineNo *string `json:"LineNo" xml:"String"` // Array // // 路線車站資訊 // Required: true - Stations []*PTXServiceDTORailSpecificationV2TRALineStation `json:"Stations"` + Stations []*PTXServiceDTORailSpecificationV2TRALineStation "json:\"Stations\" xml:\"List`1\"" // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_t_r_a_shape.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_t_r_a_shape.go index ccadbf1e..15c716fc 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_t_r_a_shape.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_t_r_a_shape.go @@ -25,19 +25,19 @@ type PTXServiceDTORailSpecificationV2TRATRAShape struct { // // 路線軌跡編碼(encoded polyline) // Required: true - EncodedPolyline *string `json:"EncodedPolyline"` + EncodedPolyline *string `json:"EncodedPolyline" xml:"String"` // String // // well-known text,為路線軌跡資料 // Required: true - Geometry *string `json:"Geometry"` + Geometry *string `json:"Geometry" xml:"String"` // String // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // NameType // @@ -45,13 +45,13 @@ type PTXServiceDTORailSpecificationV2TRATRAShape struct { // Required: true LineName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"LineName"` + } `json:"LineName" xml:"NameType"` // String // // 路線編號 // Required: true - LineNo *string `json:"LineNo"` + LineNo *string `json:"LineNo" xml:"String"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_daily_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_daily_train_info.go index 3d823c1e..3520a544 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_daily_train_info.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_daily_train_info.go @@ -25,61 +25,61 @@ type PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo struct { // // 是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是'] // Required: true - BikeFlag *int32 `json:"BikeFlag"` + BikeFlag *string `json:"BikeFlag"` // integer // // 是否設有哺(集)乳室車廂 : [0:'否',1:'是'] // Required: true - BreastFeedingFlag *int32 `json:"BreastFeedingFlag"` + BreastFeedingFlag *string `json:"BreastFeedingFlag"` // integer // // 是否為每日行駛 : [0:'否',1:'是'] // Required: true - DailyFlag *int32 `json:"DailyFlag"` + DailyFlag *string `json:"DailyFlag"` // integer // // 是否提供訂便當服務 : [0:'否',1:'是'] // Required: true - DiningFlag *int32 `json:"DiningFlag"` + DiningFlag *string `json:"DiningFlag"` // integer // // 順逆行 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 列車終點車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車終點車站名稱 EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName,omitempty"` + } `json:"EndingStationName,omitempty" xml:"NameType,omitempty"` // NameType // // 附註說明 Note struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"Note,omitempty"` + } `json:"Note,omitempty" xml:"NameType,omitempty"` // String // // 跨夜車站代碼 - OverNightStationID string `json:"OverNightStationID,omitempty"` + OverNightStationID string `json:"OverNightStationID,omitempty" xml:"String,omitempty"` // integer // // 是否提供行李服務 : [0:'否',1:'是'] // Required: true - PackageServiceFlag *int32 `json:"PackageServiceFlag"` + PackageServiceFlag *string `json:"PackageServiceFlag"` // Boolean // @@ -90,53 +90,53 @@ type PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo struct { // String // // 列車起點車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車起點車站名稱 StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName,omitempty"` + } `json:"StartingStationName,omitempty" xml:"NameType,omitempty"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 列車車種簡碼 - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 列車車種代碼 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // // 列車車種名稱 TrainTypeName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"TrainTypeName,omitempty"` + } `json:"TrainTypeName,omitempty" xml:"NameType,omitempty"` // String // // 車次車頭文字描述(通用以"往"+ 迄站中文站名") - TripHeadsign string `json:"TripHeadsign,omitempty"` + TripHeadsign string `json:"TripHeadsign,omitempty" xml:"String,omitempty"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // integer // // 是否設身障旅客專用座位車 : [0:'否',1:'是'] // Required: true - WheelchairFlag *int32 `json:"WheelchairFlag"` + WheelchairFlag *string `json:"WheelchairFlag"` } // Validate validates this p t x service d t o rail specification v2 t r a time info rail daily train info diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_general_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_general_train_info.go index 49738823..329c2e11 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_general_train_info.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_general_train_info.go @@ -25,107 +25,107 @@ type PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo struct { // // 是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是'] // Required: true - BikeFlag *int32 `json:"BikeFlag"` + BikeFlag *string `json:"BikeFlag"` // integer // // 是否設有哺(集)乳室車廂 : [0:'否',1:'是'] // Required: true - BreastFeedingFlag *int32 `json:"BreastFeedingFlag"` + BreastFeedingFlag *string `json:"BreastFeedingFlag"` // integer // // 是否為每日行駛 : [0:'否',1:'是'] // Required: true - DailyFlag *int32 `json:"DailyFlag"` + DailyFlag *string `json:"DailyFlag"` // integer // // 是否提供訂便當服務 : [0:'否',1:'是'] // Required: true - DiningFlag *int32 `json:"DiningFlag"` + DiningFlag *string `json:"DiningFlag"` // integer // // 順逆行 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 列車終點車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車終點車站名稱 EndingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"EndingStationName,omitempty"` + } `json:"EndingStationName,omitempty" xml:"NameType,omitempty"` // NameType // // 附註說明 Note struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"Note,omitempty"` + } `json:"Note,omitempty" xml:"NameType,omitempty"` // String // // 跨夜車站代碼 - OverNightStationID string `json:"OverNightStationID,omitempty"` + OverNightStationID string `json:"OverNightStationID,omitempty" xml:"String,omitempty"` // integer // // 是否提供行李服務 : [0:'否',1:'是'] // Required: true - PackageServiceFlag *int32 `json:"PackageServiceFlag"` + PackageServiceFlag *string `json:"PackageServiceFlag"` // String // // 列車起點車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車起點車站名稱 StartingStationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"StartingStationName,omitempty"` + } `json:"StartingStationName,omitempty" xml:"NameType,omitempty"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 列車車種簡碼 - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 列車車種代碼 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // // 列車車種名稱 TrainTypeName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"TrainTypeName,omitempty"` + } `json:"TrainTypeName,omitempty" xml:"NameType,omitempty"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // integer // // 是否設身障旅客專用座位車 : [0:'否',1:'是'] // Required: true - WheelchairFlag *int32 `json:"WheelchairFlag"` + WheelchairFlag *string `json:"WheelchairFlag"` } // Validate validates this p t x service d t o rail specification v2 t r a time info rail general train info diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_train_type.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_train_type.go index 169c54ab..6ddc30f7 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_train_type.go +++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_train_type.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV2TRATrainType struct { // // 列車車種簡碼 [1:太魯閣;2:普悠瑪;3:自強;4:莒光;5:復興;6:區間;7:普快] // Required: true - TrainTypeCode *string `json:"TrainTypeCode"` + TrainTypeCode *string `json:"TrainTypeCode" xml:"String"` // String // // 列車車種代碼 // Required: true - TrainTypeID *string `json:"TrainTypeID"` + TrainTypeID *string `json:"TrainTypeID" xml:"String"` // NameType // @@ -39,7 +39,7 @@ type PTXServiceDTORailSpecificationV2TRATrainType struct { // Required: true TrainTypeName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"TrainTypeName"` + } `json:"TrainTypeName" xml:"NameType"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_fare.go b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_fare.go index b96869b2..881832b1 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_fare.go +++ b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_fare.go @@ -25,7 +25,7 @@ type PTXServiceDTOSharedSpecificationV2BaseFare struct { // String // // 票種名稱 - TicketType string `json:"TicketType,omitempty"` + TicketType string `json:"TicketType,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o shared specification v2 base fare diff --git a/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go index b757afa0..e5163b66 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go +++ b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go @@ -22,12 +22,12 @@ type PTXServiceDTOSharedSpecificationV2BaseNameType struct { // String // // 英文名稱 - En string `json:"En,omitempty"` + En string `json:"En,omitempty" xml:"String,omitempty"` // String // // 中文繁體名稱 - ZhTw string `json:"Zh_tw,omitempty"` + ZhTw string `json:"Zh_tw,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o shared specification v2 base name type diff --git a/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go index cead550e..47178923 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go +++ b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go @@ -25,24 +25,24 @@ type PTXServiceDTOSharedSpecificationV2BaseOperator struct { // // 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB) // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者電子信箱 - OperatorEmail string `json:"OperatorEmail,omitempty"` + OperatorEmail string `json:"OperatorEmail,omitempty" xml:"String,omitempty"` // String // // 營運業者代碼 // Required: true - OperatorID *string `json:"OperatorID"` + OperatorID *string `json:"OperatorID" xml:"String"` // NameType // @@ -50,44 +50,44 @@ type PTXServiceDTOSharedSpecificationV2BaseOperator struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV2BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 營運業者編號[交通部票證資料系統定義] // Required: true - OperatorNo *string `json:"OperatorNo"` + OperatorNo *string `json:"OperatorNo" xml:"String"` // String // // 營運業者連絡電話 - OperatorPhone string `json:"OperatorPhone,omitempty"` + OperatorPhone string `json:"OperatorPhone,omitempty" xml:"String,omitempty"` // String // // 營運業者網址鏈結 - OperatorURL string `json:"OperatorUrl,omitempty"` + OperatorURL string `json:"OperatorUrl,omitempty" xml:"String,omitempty"` // String // // 資料提供平台代碼 // Required: true - ProviderID *string `json:"ProviderID"` + ProviderID *string `json:"ProviderID" xml:"String"` // String // // 訂票連絡電話 - ReservationPhone string `json:"ReservationPhone,omitempty"` + ReservationPhone string `json:"ReservationPhone,omitempty" xml:"String,omitempty"` // String // // 訂票網址鏈結 - ReservationURL string `json:"ReservationUrl,omitempty"` + ReservationURL string `json:"ReservationUrl,omitempty" xml:"String,omitempty"` // String // // 營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等) - SubAuthorityCode string `json:"SubAuthorityCode,omitempty"` + SubAuthorityCode string `json:"SubAuthorityCode,omitempty" xml:"String,omitempty"` // DateTime // diff --git a/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go index 02645203..0312b38d 100644 --- a/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go +++ b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go @@ -22,7 +22,7 @@ type PTXServiceDTOSharedSpecificationV2BasePointType struct { // String // // 地理空間編碼 - GeoHash string `json:"GeoHash,omitempty"` + GeoHash string `json:"GeoHash,omitempty" xml:"String,omitempty"` // 位置緯度(WGS84) PositionLat float64 `json:"PositionLat,omitempty"` diff --git a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_parameters.go b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_parameters.go index 9a4e492f..09bb74eb 100644 --- a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_parameters.go +++ b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_parameters.go @@ -58,6 +58,13 @@ func NewODFareAPIControllerAPIControllerGetParamsWithHTTPClient(client *http.Cli Typically these are written to a http.Request. */ type ODFareAPIControllerAPIControllerGetParams struct { + + /* DollarFormat. + + 指定來源格式 + */ + DollarFormat string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -111,6 +118,17 @@ func (o *ODFareAPIControllerAPIControllerGetParams) SetHTTPClient(client *http.C o.HTTPClient = client } +// WithDollarFormat adds the dollarFormat to the o d fare Api controller Api controller get params +func (o *ODFareAPIControllerAPIControllerGetParams) WithDollarFormat(dollarFormat string) *ODFareAPIControllerAPIControllerGetParams { + o.SetDollarFormat(dollarFormat) + return o +} + +// SetDollarFormat adds the dollarFormat to the o d fare Api controller Api controller get params +func (o *ODFareAPIControllerAPIControllerGetParams) SetDollarFormat(dollarFormat string) { + o.DollarFormat = dollarFormat +} + // WriteToRequest writes these params to a swagger request func (o *ODFareAPIControllerAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -119,6 +137,16 @@ func (o *ODFareAPIControllerAPIControllerGetParams) WriteToRequest(r runtime.Cli } var res []error + // query param $format + qrDollarFormat := o.DollarFormat + qDollarFormat := qrDollarFormat + if qDollarFormat != "" { + + if err := r.SetQueryParam("$format", qDollarFormat); err != nil { + return err + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/rail/v3/client/t_r_a/tra_client.go b/rail/v3/client/t_r_a/tra_client.go index f6148e91..0f854150 100644 --- a/rail/v3/client/t_r_a/tra_client.go +++ b/rail/v3/client/t_r_a/tra_client.go @@ -835,7 +835,7 @@ func (a *Client) ODFareAPIControllerAPIControllerGet(params *ODFareAPIController ID: "ODFareApiControllerApiController_Get", Method: "GET", PathPattern: "/v3/Rail/TRA/ODFare", - ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/plain"}, + ProducesMediaTypes: []string{"application/json", "application/xml"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go index ea4bd5bb..fafcf33c 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine struct // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -33,7 +33,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine struct // // 資料(陣列) // Required: true - Lines []*PTXServiceDTORailSpecificationV3TRALine `json:"Lines"` + Lines []*PTXServiceDTORailSpecificationV3TRALine "json:\"Lines\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go index 4fb30ed1..67b9f879 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetwork // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -33,7 +33,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetwork // // 資料(陣列) // Required: true - LineNetworks []*PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork `json:"LineNetworks"` + LineNetworks []*PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork "json:\"LineNetworks\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go index ce4bc5ed..cfd71837 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfe // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -33,7 +33,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfe // // 資料(陣列) // Required: true - LineTransfers []*PTXServiceDTORailSpecificationV3TRALineTransfer `json:"LineTransfers"` + LineTransfers []*PTXServiceDTORailSpecificationV3TRALineTransfer "json:\"LineTransfers\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go index 8f795fbd..98908e9c 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetw // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -33,7 +33,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetw // // 資料(陣列) // Required: true - Networks []*PTXServiceDTORailSpecificationV3TRANetworkNetwork `json:"Networks"` + Networks []*PTXServiceDTORailSpecificationV3TRANetworkNetwork "json:\"Networks\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go index 9ae45988..22e8052e 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator st // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -33,7 +33,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator st // // 資料(陣列) // Required: true - Operators []*PTXServiceDTORailSpecificationV3TRAOperator `json:"Operators"` + Operators []*PTXServiceDTORailSpecificationV3TRAOperator "json:\"Operators\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go index c5740e75..fce70e2f 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape struc // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -33,7 +33,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape struc // // 資料(陣列) // Required: true - Shapes []*PTXServiceDTORailSpecificationV3TRAShape `json:"Shapes"` + Shapes []*PTXServiceDTORailSpecificationV3TRAShape "json:\"Shapes\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go index 8c184cfa..ba770c5b 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation str // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,7 +45,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation str // // 資料(陣列) // Required: true - Stations []*PTXServiceDTORailSpecificationV3TRAStation `json:"Stations"` + Stations []*PTXServiceDTORailSpecificationV3TRAStation "json:\"Stations\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go index 8c197ad9..5247ed29 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExit // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,7 +45,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExit // // 資料(陣列) // Required: true - StationExits []*PTXServiceDTORailSpecificationV3TRAStationExitStationExit `json:"StationExits"` + StationExits []*PTXServiceDTORailSpecificationV3TRAStationExitStationExit "json:\"StationExits\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go index b974584f..c0a5be7f 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFaci // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,7 +45,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFaci // // 資料(陣列) // Required: true - StationFacilities []*PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility `json:"StationFacilities"` + StationFacilities []*PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility "json:\"StationFacilities\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go index 626f4faf..03ab5fd4 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLi // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,7 +45,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLi // // 資料(陣列) // Required: true - StationOfLines []*PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine `json:"StationOfLines"` + StationOfLines []*PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine "json:\"StationOfLines\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go index ac57e081..bd6dbe74 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTran // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,7 +45,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTran // // 資料(陣列) // Required: true - StationTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer `json:"StationTransfers"` + StationTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer "json:\"StationTransfers\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go index 28d9883b..1f7bda66 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType s // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,7 +45,7 @@ type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType s // // 資料(陣列) // Required: true - TrainTypes []*PTXServiceDTORailSpecificationV3TRATrainType `json:"TrainTypes"` + TrainTypes []*PTXServiceDTORailSpecificationV3TRATrainType "json:\"TrainTypes\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go index a3fe2eb8..0ccc0833 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAG // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -55,18 +55,18 @@ type PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAG // String // // 來源版號 - SrcVersion string `json:"SrcVersion,omitempty"` + SrcVersion string `json:"SrcVersion,omitempty" xml:"String,omitempty"` // Array // // 資料(陣列) // Required: true - StationTimetables []*PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable `json:"StationTimetables"` + StationTimetables []*PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable "json:\"StationTimetables\" xml:\"List`1\"" // String // // 定期性站別時刻表名稱 - TimetableName string `json:"TimetableName,omitempty"` + TimetableName string `json:"TimetableName,omitempty" xml:"String,omitempty"` // Int32 // @@ -83,7 +83,7 @@ type PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAG // String // // 時刻表適用情形說明 - ValidityDesciption string `json:"ValidityDesciption,omitempty"` + ValidityDesciption string `json:"ValidityDesciption,omitempty" xml:"String,omitempty"` } // Validate validates this p t x API rail model t r a general station wrapper p t x service d t o rail specification v3 t r a general station timetable general station timetable diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go index 335ff440..ec12df7a 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGen // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -55,18 +55,18 @@ type PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGen // String // // 來源版號 - SrcVersion string `json:"SrcVersion,omitempty"` + SrcVersion string `json:"SrcVersion,omitempty" xml:"String,omitempty"` // String // // 定期性站別時刻表名稱 - TimetableName string `json:"TimetableName,omitempty"` + TimetableName string `json:"TimetableName,omitempty" xml:"String,omitempty"` // Array // // 資料(陣列) // Required: true - TrainTimetables []*PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable `json:"TrainTimetables"` + TrainTimetables []*PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable "json:\"TrainTimetables\" xml:\"List`1\"" // Int32 // @@ -83,7 +83,7 @@ type PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGen // String // // 時刻表適用情形說明 - ValidityDesciption string `json:"ValidityDesciption,omitempty"` + ValidityDesciption string `json:"ValidityDesciption,omitempty" xml:"String,omitempty"` } // Validate validates this p t x API rail model t r a general train wrapper p t x service d t o rail specification v3 t r a general train timetable diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_o_d_fare_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_o_d_fare_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go index 2641e328..d84614f5 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_o_d_fare_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_o_d_fare_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODF // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -32,18 +32,18 @@ type PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODF // String // // 有效起始日期 - EffectiveDate string `json:"EffectiveDate,omitempty"` + EffectiveDate string `json:"EffectiveDate,omitempty" xml:"String,omitempty"` // String // // 有效終止日期 - ExpireDate string `json:"ExpireDate,omitempty"` + ExpireDate string `json:"ExpireDate,omitempty" xml:"String,omitempty"` // Array // // 資料(陣列) // Required: true - ODFares []*PTXServiceDTORailSpecificationV3TRAODFareODFare `json:"ODFares"` + ODFares []*PTXServiceDTORailSpecificationV3TRAODFareODFare "json:\"ODFares\" xml:\"List`1\"" // Int32 // @@ -60,7 +60,7 @@ type PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODF // String // // 資料版本 - SrcVersion string `json:"SrcVersion,omitempty"` + SrcVersion string `json:"SrcVersion,omitempty" xml:"String,omitempty"` // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go index dc16386d..9fb946ae 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go @@ -24,13 +24,13 @@ type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAler // // 資料(陣列) // Required: true - Alerts []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlert `json:"Alerts"` + Alerts []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlert "json:\"Alerts\" xml:\"List`1\"" // String // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go index c5c35016..68adb005 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANews // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -33,7 +33,7 @@ type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANews // // 資料(陣列) // Required: true - Newses []*PTXServiceDTORailSpecificationV3TRATRANewsListNews `json:"Newses"` + Newses []*PTXServiceDTORailSpecificationV3TRATRANewsListNews "json:\"Newses\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go index 9251ff97..ca6d8971 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStat // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,7 +45,7 @@ type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStat // // 資料(陣列) // Required: true - StationLiveBoards []*PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard `json:"StationLiveBoards"` + StationLiveBoards []*PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard "json:\"StationLiveBoards\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go index 6eb06894..fcc439e4 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrai // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,7 +45,7 @@ type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrai // // 資料(陣列) // Required: true - TrainLiveBoards []*PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard `json:"TrainLiveBoards"` + TrainLiveBoards []*PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard "json:\"TrainLiveBoards\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_t_r_a_specific_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_specific_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go index e4045040..b05dd735 100644 --- a/rail/v3/models/p_t_x_api_rail_model_t_r_a_specific_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go +++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_specific_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecifi // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -55,18 +55,18 @@ type PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecifi // String // // 來源版號 - SrcVersion string `json:"SrcVersion,omitempty"` + SrcVersion string `json:"SrcVersion,omitempty" xml:"String,omitempty"` // String // // 定期性站別時刻表名稱 - TimetableName string `json:"TimetableName,omitempty"` + TimetableName string `json:"TimetableName,omitempty" xml:"String,omitempty"` // Array // // 資料(陣列) // Required: true - TrainTimetables []*PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable `json:"TrainTimetables"` + TrainTimetables []*PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable "json:\"TrainTimetables\" xml:\"List`1\"" // Int32 // @@ -83,7 +83,7 @@ type PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecifi // String // // 時刻表適用情形說明 - ValidityDesciption string `json:"ValidityDesciption,omitempty"` + ValidityDesciption string `json:"ValidityDesciption,omitempty" xml:"String,omitempty"` } // Validate validates this p t x API rail model t r a specific wrapper p t x service d t o rail specification v3 t r a specific train timetable diff --git a/rail/v3/models/p_t_x_api_rail_model_tra_daily_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go b/rail/v3/models/p_t_x_api_rail_model_tra_daily_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go index f11cc327..990d6308 100644 --- a/rail/v3/models/p_t_x_api_rail_model_tra_daily_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go +++ b/rail/v3/models/p_t_x_api_rail_model_tra_daily_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADai // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,13 +45,13 @@ type PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADai // // 資料(陣列) // Required: true - StationTimetables []*PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable `json:"StationTimetables"` + StationTimetables []*PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable "json:\"StationTimetables\" xml:\"List`1\"" // String // // 營運日說明(yyyy-MM-dd) // Required: true - TrainDate *string `json:"TrainDate"` + TrainDate *string `json:"TrainDate" xml:"String"` // Int32 // diff --git a/rail/v3/models/p_t_x_api_rail_model_tra_daily_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go b/rail/v3/models/p_t_x_api_rail_model_tra_daily_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go index 9f29c3e7..105332ee 100644 --- a/rail/v3/models/p_t_x_api_rail_model_tra_daily_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go +++ b/rail/v3/models/p_t_x_api_rail_model_tra_daily_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go @@ -24,7 +24,7 @@ type PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADaily // // 業管機關簡碼 // Required: true - AuthorityCode *string `json:"AuthorityCode"` + AuthorityCode *string `json:"AuthorityCode" xml:"String"` // 資料總筆數 Count int64 `json:"Count,omitempty"` @@ -45,12 +45,12 @@ type PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADaily // // 營運日說明(yyyy-MM-dd) // Required: true - TrainDate *string `json:"TrainDate"` + TrainDate *string `json:"TrainDate" xml:"String"` // Array // // 資料(陣列) - TrainTimetables []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable `json:"TrainTimetables"` + TrainTimetables []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable "json:\"TrainTimetables\" xml:\"List`1\"" // Int32 // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_service_day.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_service_day.go index fa4defa2..96a4e0cc 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_service_day.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_service_day.go @@ -25,72 +25,72 @@ type PTXServiceDTORailSpecificationV3TRACommonServiceDay struct { // // 假日後一日是否營運 : [0:'否',1:'是'] // Required: true - DayAfterHoliday *int32 `json:"DayAfterHoliday"` + DayAfterHoliday *string `json:"DayAfterHoliday"` // integer // // 假日前一日是否營運 : [0:'否',1:'是'] // Required: true - DayBeforeHoliday *int32 `json:"DayBeforeHoliday"` + DayBeforeHoliday *string `json:"DayBeforeHoliday"` // integer // // 星期五是否營運 : [0:'否',1:'是'] // Required: true - Friday *int32 `json:"Friday"` + Friday *string `json:"Friday"` // integer // // 星期一是否營運 : [0:'否',1:'是'] // Required: true - Monday *int32 `json:"Monday"` + Monday *string `json:"Monday"` // integer // // 國定假日是否營運 : [0:'否',1:'是'] // Required: true - NationalHolidays *int32 `json:"NationalHolidays"` + NationalHolidays *string `json:"NationalHolidays"` // integer // // 星期六是否營運 : [0:'否',1:'是'] // Required: true - Saturday *int32 `json:"Saturday"` + Saturday *string `json:"Saturday"` // String // // 服務日標籤 - ServiceTag string `json:"ServiceTag,omitempty"` + ServiceTag string `json:"ServiceTag,omitempty" xml:"String,omitempty"` // integer // // 星期日是否營運 : [0:'否',1:'是'] // Required: true - Sunday *int32 `json:"Sunday"` + Sunday *string `json:"Sunday"` // integer // // 星期四是否營運 : [0:'否',1:'是'] // Required: true - Thursday *int32 `json:"Thursday"` + Thursday *string `json:"Thursday"` // integer // // 星期二是否營運 : [0:'否',1:'是'] // Required: true - Tuesday *int32 `json:"Tuesday"` + Tuesday *string `json:"Tuesday"` // integer // // 颱風停止上班上課期間營運營運 : [0:'否',1:'是'] // Required: true - TyphoonDay *int32 `json:"TyphoonDay"` + TyphoonDay *string `json:"TyphoonDay"` // integer // // 星期三是否營運 : [0:'否',1:'是'] // Required: true - Wednesday *int32 `json:"Wednesday"` + Wednesday *string `json:"Wednesday"` } // Validate validates this p t x service d t o rail specification v3 t r a common service day diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_special_day.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_special_day.go index 53261e09..f4a90a13 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_special_day.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_special_day.go @@ -22,12 +22,12 @@ type PTXServiceDTORailSpecificationV3TRACommonSpecialDay struct { // String // // 不連續特殊日期 - Dates string `json:"Dates,omitempty"` + Dates string `json:"Dates,omitempty" xml:"String,omitempty"` // String // // 特殊營運描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // DateTime // @@ -37,7 +37,7 @@ type PTXServiceDTORailSpecificationV3TRACommonSpecialDay struct { // integer // // 營運服務狀態代碼 : [0:'停止營運',1:'正常營運',2:'加班營運'] - ServiceStatus int32 `json:"ServiceStatus,omitempty"` + ServiceStatus string `json:"ServiceStatus,omitempty"` // DateTime // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_stop_time.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_stop_time.go index 6b3c9326..a8ccc6af 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_stop_time.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_stop_time.go @@ -25,19 +25,19 @@ type PTXServiceDTORailSpecificationV3TRACommonStopTime struct { // // 到站時間(格式: HH:mm) // Required: true - ArrivalTime *string `json:"ArrivalTime"` + ArrivalTime *string `json:"ArrivalTime" xml:"String"` // String // // 離站時間(格式: HH:mm) // Required: true - DepartureTime *string `json:"DepartureTime"` + DepartureTime *string `json:"DepartureTime" xml:"String"` // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -45,7 +45,7 @@ type PTXServiceDTORailSpecificationV3TRACommonStopTime struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Int32 // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_train_info.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_train_info.go index acf0a6cf..0dce043c 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_train_info.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_train_info.go @@ -25,127 +25,127 @@ type PTXServiceDTORailSpecificationV3TRACommonTrainInfo struct { // // 是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是'] // Required: true - BikeFlag *int32 `json:"BikeFlag"` + BikeFlag *string `json:"BikeFlag"` // integer // // 是否設有哺(集)乳室車廂 : [0:'否',1:'是'] // Required: true - BreastFeedFlag *int32 `json:"BreastFeedFlag"` + BreastFeedFlag *string `json:"BreastFeedFlag"` // integer // // 是否提供小客車 : [0:'否',1:'是'] // Required: true - CarFlag *int32 `json:"CarFlag"` + CarFlag *string `json:"CarFlag"` // integer // // 是否為每日行駛 : [0:'否',1:'是'] // Required: true - DailyFlag *int32 `json:"DailyFlag"` + DailyFlag *string `json:"DailyFlag"` // integer // // 是否提供訂便當服務 : [0:'否',1:'是'] // Required: true - DiningFlag *int32 `json:"DiningFlag"` + DiningFlag *string `json:"DiningFlag"` // integer // // 行駛方向 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 列車終點車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車終點車站名稱 EndingStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"EndingStationName,omitempty"` + } `json:"EndingStationName,omitempty" xml:"NameType,omitempty"` // integer // // 是否為加班車 : [0:'否',1:'是'] // Required: true - ExtraTrainFlag *int32 `json:"ExtraTrainFlag"` + ExtraTrainFlag *string `json:"ExtraTrainFlag"` // String // // 附註說明 - Note string `json:"Note,omitempty"` + Note string `json:"Note,omitempty" xml:"String,omitempty"` // String // // 跨夜車站代碼 - OverNightStationID string `json:"OverNightStationID,omitempty"` + OverNightStationID string `json:"OverNightStationID,omitempty" xml:"String,omitempty"` // integer // // 是否提供行李服務 : [0:'否',1:'是'] // Required: true - PackageServiceFlag *int32 `json:"PackageServiceFlag"` + PackageServiceFlag *string `json:"PackageServiceFlag"` // String // // 營運路線代碼 - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // String // // 列車起點車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // // 列車起點車站名稱 StartingStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StartingStationName,omitempty"` + } `json:"StartingStationName,omitempty" xml:"NameType,omitempty"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快'] - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 車種代嗎 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // // 車種名稱 TrainTypeName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TrainTypeName,omitempty"` + } `json:"TrainTypeName,omitempty" xml:"NameType,omitempty"` // String // // 車次之目的地方向描述 - TripHeadSign string `json:"TripHeadSign,omitempty"` + TripHeadSign string `json:"TripHeadSign,omitempty" xml:"String,omitempty"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // integer // // 是否設身障旅客專用座位車 : [0:'否',1:'是'] // Required: true - WheelChairFlag *int32 `json:"WheelChairFlag"` + WheelChairFlag *string `json:"WheelChairFlag"` } // Validate validates this p t x service d t o rail specification v3 t r a common train info diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go index a1d3e794..5ea4fb70 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go @@ -23,30 +23,30 @@ type PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable st // integer // // 行駛方向 : [0:'順行',1:'逆行'] - Direction int32 `json:"Direction,omitempty"` + Direction string `json:"Direction,omitempty"` // String // // 營運路線代碼 - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // String // // 車站代碼 - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // NameType // // 車站名稱 StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName,omitempty"` + } `json:"StationName,omitempty" xml:"NameType,omitempty"` // Array // // 目的站車站名稱 // Required: true - TimeTables []*PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable `json:"TimeTables"` + TimeTables []*PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable "json:\"TimeTables\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v3 t r a daily station time table station timetable diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_time_table.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_time_table.go index a2f6d664..f0d89f5d 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_time_table.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_time_table.go @@ -22,24 +22,24 @@ type PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable struct { // String // // 到站時刻 - ArrivalTime string `json:"ArrivalTime,omitempty"` + ArrivalTime string `json:"ArrivalTime,omitempty" xml:"String,omitempty"` // String // // 發車時刻 - DepartureTime string `json:"DepartureTime,omitempty"` + DepartureTime string `json:"DepartureTime,omitempty" xml:"String,omitempty"` // String // // 目的站車站代號 - DestinationStationID string `json:"DestinationStationID,omitempty"` + DestinationStationID string `json:"DestinationStationID,omitempty" xml:"String,omitempty"` // NameType // // 目的站車站名稱 DestinationStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DestinationStationName,omitempty"` + } `json:"DestinationStationName,omitempty" xml:"NameType,omitempty"` // Int32 // @@ -50,24 +50,24 @@ type PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable struct { // String // // 車次代碼 - TrainNo string `json:"TrainNo,omitempty"` + TrainNo string `json:"TrainNo,omitempty" xml:"String,omitempty"` // String // // 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快'] - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 車種代嗎 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // // 車種名稱 TrainTypeName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TrainTypeName,omitempty"` + } `json:"TrainTypeName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a daily station time table time table diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_dining_flag_section.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_dining_flag_section.go index df20f1d1..88983256 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_dining_flag_section.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_dining_flag_section.go @@ -24,7 +24,7 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection str // Required: true EndSection struct { PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong - } `json:"EndSection"` + } `json:"EndSection" xml:"SectionAmong"` // SectionAmong // @@ -32,7 +32,7 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection str // Required: true StartSection struct { PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong - } `json:"StartSection"` + } `json:"StartSection" xml:"SectionAmong"` } // Validate validates this p t x service d t o rail specification v3 t r a daily train time table dining flag section diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_section_among.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_section_among.go index 31041000..d0f04c4e 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_section_among.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_section_among.go @@ -23,13 +23,13 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong struct { // // 迄站車站代碼 // Required: true - EndStationID *string `json:"EndStationID"` + EndStationID *string `json:"EndStationID" xml:"String"` // String // // 起站車站代碼 // Required: true - StartStationID *string `json:"StartStationID"` + StartStationID *string `json:"StartStationID" xml:"String"` } // Validate validates this p t x service d t o rail specification v3 t r a daily train time table section among diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_stop_time.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_stop_time.go index 775544b6..05761859 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_stop_time.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_stop_time.go @@ -22,18 +22,18 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime struct { // String // // 到站時間 - ArrivalTime string `json:"ArrivalTime,omitempty"` + ArrivalTime string `json:"ArrivalTime,omitempty" xml:"String,omitempty"` // String // // 離站時間 - DepartureTime string `json:"DepartureTime,omitempty"` + DepartureTime string `json:"DepartureTime,omitempty" xml:"String,omitempty"` // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -41,7 +41,7 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Int32 // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_info.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_info.go index 8988234d..bdfc1f04 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_info.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_info.go @@ -24,46 +24,46 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo struct { // // 是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是'] // Required: true - BikeFlag *int32 `json:"BikeFlag"` + BikeFlag *string `json:"BikeFlag"` // integer // // 是否設有哺(集)乳室車廂 : [0:'否',1:'是'] // Required: true - BreastFeedFlag *int32 `json:"BreastFeedFlag"` + BreastFeedFlag *string `json:"BreastFeedFlag"` // integer // // 是否提供小汽車上火車服務 : [0:'否',1:'是'] - CarFlag int32 `json:"CarFlag,omitempty"` + CarFlag string `json:"CarFlag,omitempty"` // integer // // 是否每日行駛 : [0:'否',1:'是'] // Required: true - DailyFlag *int32 `json:"DailyFlag"` + DailyFlag *string `json:"DailyFlag"` // integer // // 是否提供訂便當服務 : [0:'否',1:'是'] // Required: true - DiningFlag *int32 `json:"DiningFlag"` + DiningFlag *string `json:"DiningFlag"` // DiningFlagSection[] // // 提供訂便當服務之車站區間 - DiningFlagSections []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection `json:"DiningFlagSections"` + DiningFlagSections []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection `json:"DiningFlagSections" xml:"DiningFlagSection[]"` // integer // // 行駛方向 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 車次之終點站車站代號 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // @@ -71,40 +71,40 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo struct { // Required: true EndingStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"EndingStationName"` + } `json:"EndingStationName" xml:"NameType"` // integer // // 是否為加班車 : [0:'否',1:'是'] // Required: true - ExtraTrainFlag *int32 `json:"ExtraTrainFlag"` + ExtraTrainFlag *string `json:"ExtraTrainFlag"` // String // // 附註說明 - Note string `json:"Note,omitempty"` + Note string `json:"Note,omitempty" xml:"String,omitempty"` // String // // 跨夜車站代碼 - OverNightStationID string `json:"OverNightStationID,omitempty"` + OverNightStationID string `json:"OverNightStationID,omitempty" xml:"String,omitempty"` // integer // // 是否提供行李服務 : [0:'否',1:'是'] // Required: true - PackageServiceFlag *int32 `json:"PackageServiceFlag"` + PackageServiceFlag *string `json:"PackageServiceFlag"` // String // // 營運路線代碼 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // String // // 車次之起始站車站代號 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // NameType // @@ -112,23 +112,23 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo struct { // Required: true StartingStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StartingStationName"` + } `json:"StartingStationName" xml:"NameType"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快'] - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 車種代嗎 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // @@ -136,23 +136,23 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo struct { // Required: true TrainTypeName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TrainTypeName"` + } `json:"TrainTypeName" xml:"NameType"` // String // // 車次之目的地方向描述 - TripHeadSign string `json:"TripHeadSign,omitempty"` + TripHeadSign string `json:"TripHeadSign,omitempty" xml:"String,omitempty"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // integer // // 是否設身障旅客專用座位車 : [0:'否',1:'是'] // Required: true - WheelChairFlag *int32 `json:"WheelChairFlag"` + WheelChairFlag *string `json:"WheelChairFlag"` } // Validate validates this p t x service d t o rail specification v3 t r a daily train time table train info diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go index 77a5f0c5..b3c71712 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go @@ -24,7 +24,7 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable struct // // 停靠站資料 // Required: true - StopTimes []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime "json:\"StopTimes\" xml:\"List`1\"" // TrainInfo // @@ -32,7 +32,7 @@ type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable struct // Required: true TrainInfo struct { PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo - } `json:"TrainInfo"` + } `json:"TrainInfo" xml:"TrainInfo"` } // Validate validates this p t x service d t o rail specification v3 t r a daily train time table train timetable diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go index 09363b70..b579518e 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go @@ -26,12 +26,12 @@ type PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTim // // 行駛方向 : [0:'順行',1:'逆行'] // Required: true - Direction *int32 `json:"Direction"` + Direction *string `json:"Direction"` // String // // 營運路線代碼 - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // ServiceDay // @@ -39,26 +39,26 @@ type PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTim // Required: true ServiceDay struct { PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // // 車站名稱 StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName,omitempty"` + } `json:"StationName,omitempty" xml:"NameType,omitempty"` // Array // // 車次停靠站資料 // Required: true - Timetables []*PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable `json:"Timetables"` + Timetables []*PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable "json:\"Timetables\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v3 t r a general station timetable general station timetable diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_service_day.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_service_day.go index c3e68d24..d4ff3499 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_service_day.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_service_day.go @@ -51,7 +51,7 @@ type PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay struct // String // // 服務日標籤 - ServiceTag string `json:"ServiceTag,omitempty"` + ServiceTag string `json:"ServiceTag,omitempty" xml:"String,omitempty"` // Boolean // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_timetable.go index 28c5f65e..45001ca6 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_timetable.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_timetable.go @@ -23,24 +23,24 @@ type PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable struct // String // // 到站時刻 - ArrivalTime string `json:"ArrivalTime,omitempty"` + ArrivalTime string `json:"ArrivalTime,omitempty" xml:"String,omitempty"` // String // // 發車時刻 - DepartureTime string `json:"DepartureTime,omitempty"` + DepartureTime string `json:"DepartureTime,omitempty" xml:"String,omitempty"` // String // // 目的站車站代號 - DestinationStationID string `json:"DestinationStationID,omitempty"` + DestinationStationID string `json:"DestinationStationID,omitempty" xml:"String,omitempty"` // NameType // // 目的站車站 DestinationStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DestinationStationName,omitempty"` + } `json:"DestinationStationName,omitempty" xml:"NameType,omitempty"` // Int32 // @@ -50,24 +50,24 @@ type PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable struct // String // // 車次代碼 - TrainNo string `json:"TrainNo,omitempty"` + TrainNo string `json:"TrainNo,omitempty" xml:"String,omitempty"` // String // // 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快'] - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 車種代嗎 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // // 車種名稱 TrainTypeName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TrainTypeName,omitempty"` + } `json:"TrainTypeName,omitempty" xml:"NameType,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a general station timetable timetable diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go index 3e332865..59ece8b3 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go @@ -28,13 +28,13 @@ type PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable struct { // Required: true ServiceDay struct { PTXServiceDTORailSpecificationV3TRACommonServiceDay - } `json:"ServiceDay"` + } `json:"ServiceDay" xml:"ServiceDay"` // Array // // 停靠時間資料 // Required: true - StopTimes []*PTXServiceDTORailSpecificationV3TRACommonStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTORailSpecificationV3TRACommonStopTime "json:\"StopTimes\" xml:\"List`1\"" // TrainInfo // @@ -42,7 +42,7 @@ type PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable struct { // Required: true TrainInfo struct { PTXServiceDTORailSpecificationV3TRACommonTrainInfo - } `json:"TrainInfo"` + } `json:"TrainInfo" xml:"TrainInfo"` } // Validate validates this p t x service d t o rail specification v3 t r a general train timetable diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go index f2a3ab73..300d2cf2 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go @@ -30,18 +30,18 @@ type PTXServiceDTORailSpecificationV3TRALine struct { // String // // 路線顏色 - LineColor string `json:"LineColor,omitempty"` + LineColor string `json:"LineColor,omitempty" xml:"String,omitempty"` // String // // 路線群組 - LineGroup string `json:"LineGroup,omitempty"` + LineGroup string `json:"LineGroup,omitempty" xml:"String,omitempty"` // String // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // NameType // @@ -49,13 +49,13 @@ type PTXServiceDTORailSpecificationV3TRALine struct { // Required: true LineName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"LineName"` + } `json:"LineName" xml:"NameType"` // String // // 路線編號 // Required: true - LineNo *string `json:"LineNo"` + LineNo *string `json:"LineNo" xml:"String"` // NameType // @@ -63,12 +63,12 @@ type PTXServiceDTORailSpecificationV3TRALine struct { // Required: true LineSectionName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"LineSectionName"` + } `json:"LineSectionName" xml:"NameType"` // String // // 路線群組 - LineURL string `json:"LineURL,omitempty"` + LineURL string `json:"LineURL,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a line diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go index 617b0f82..d5049eb6 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go @@ -26,7 +26,7 @@ type PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork struct { // // 路線編號 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // NameType // @@ -34,12 +34,12 @@ type PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork struct { // Required: true LineName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"LineName"` + } `json:"LineName" xml:"NameType"` // Array // // 路線站點間線段資訊 - LineSegments []*PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment `json:"LineSegments"` + LineSegments []*PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment "json:\"LineSegments\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v3 t r a line network line network diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_segment.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_segment.go index 8d0d35f3..fc3cae91 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_segment.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_segment.go @@ -31,13 +31,13 @@ type PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment struct { // // 線段起點站代碼 // Required: true - FromStationID *string `json:"FromStationID"` + FromStationID *string `json:"FromStationID" xml:"String"` // String // // 線段代碼 // Required: true - LineSegmentID *string `json:"LineSegmentID"` + LineSegmentID *string `json:"LineSegmentID" xml:"String"` // NameType // @@ -45,19 +45,19 @@ type PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment struct { // Required: true LineSegmentName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"LineSegmentName"` + } `json:"LineSegmentName" xml:"NameType"` // String // // 線段種類 = ['M: 主路線', 'B: 分支路線'] // Required: true - SegmentType *string `json:"SegmentType"` + SegmentType *string `json:"SegmentType" xml:"String"` // String // // 線段迄點站代碼 // Required: true - ToStationID *string `json:"ToStationID"` + ToStationID *string `json:"ToStationID" xml:"String"` } // Validate validates this p t x service d t o rail specification v3 t r a line network line segment diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go index f776edb0..a6cc6db0 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV3TRALineTransfer struct { // // 路線間轉乘(起)之路線代碼 // Required: true - FromLineID *string `json:"FromLineID"` + FromLineID *string `json:"FromLineID" xml:"String"` // NameType // @@ -33,13 +33,13 @@ type PTXServiceDTORailSpecificationV3TRALineTransfer struct { // Required: true FromLineName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"FromLineName"` + } `json:"FromLineName" xml:"NameType"` // String // // 路線間轉乘(起)之車站代碼 // Required: true - FromStationID *string `json:"FromStationID"` + FromStationID *string `json:"FromStationID" xml:"String"` // NameType // @@ -47,7 +47,7 @@ type PTXServiceDTORailSpecificationV3TRALineTransfer struct { // Required: true FromStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"FromStationName"` + } `json:"FromStationName" xml:"NameType"` // Double // @@ -59,7 +59,7 @@ type PTXServiceDTORailSpecificationV3TRALineTransfer struct { // // 路線間轉乘(迄)之路線代碼 // Required: true - ToLineID *string `json:"ToLineID"` + ToLineID *string `json:"ToLineID" xml:"String"` // NameType // @@ -67,13 +67,13 @@ type PTXServiceDTORailSpecificationV3TRALineTransfer struct { // Required: true ToLineName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"ToLineName"` + } `json:"ToLineName" xml:"NameType"` // String // // 路線間轉乘(迄)之車站代碼 // Required: true - ToStationID *string `json:"ToStationID"` + ToStationID *string `json:"ToStationID" xml:"String"` // NameType // @@ -81,13 +81,13 @@ type PTXServiceDTORailSpecificationV3TRALineTransfer struct { // Required: true ToStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"ToStationName"` + } `json:"ToStationName" xml:"NameType"` // String // // 轉乘方式文字描述 // Required: true - TransferDescription *string `json:"TransferDescription"` + TransferDescription *string `json:"TransferDescription" xml:"String"` } // Validate validates this p t x service d t o rail specification v3 t r a line transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_line.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_line.go index a3d6f25b..e15ddadc 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_line.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_line.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV3TRANetworkLine struct { // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 路線編號 // Required: true - LineNo *string `json:"LineNo"` + LineNo *string `json:"LineNo" xml:"String"` } // Validate validates this p t x service d t o rail specification v3 t r a network line diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_map_name_type.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_map_name_type.go index 93e6f9a3..72152419 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_map_name_type.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_map_name_type.go @@ -20,17 +20,17 @@ type PTXServiceDTORailSpecificationV3TRANetworkMapNameType struct { // String // // 臺鐵路網圖網址(英文版) - En string `json:"En,omitempty"` + En string `json:"En,omitempty" xml:"String,omitempty"` // String // // 路網圖名稱 - MapName string `json:"MapName,omitempty"` + MapName string `json:"MapName,omitempty" xml:"String,omitempty"` // String // // 臺鐵路網圖網址(中文版) - ZhTw string `json:"Zh_tw,omitempty"` + ZhTw string `json:"Zh_tw,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a network map name type diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go index 61ec0927..42d9b1d7 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go @@ -26,13 +26,13 @@ type PTXServiceDTORailSpecificationV3TRANetworkNetwork struct { // // 臺鐵路線資訊 // Required: true - Lines []*PTXServiceDTORailSpecificationV3TRANetworkLine `json:"Lines"` + Lines []*PTXServiceDTORailSpecificationV3TRANetworkLine "json:\"Lines\" xml:\"List`1\"" // String // // 臺鐵路網代碼 // Required: true - NetworkID *string `json:"NetworkID"` + NetworkID *string `json:"NetworkID" xml:"String"` // MapNameType // @@ -40,7 +40,7 @@ type PTXServiceDTORailSpecificationV3TRANetworkNetwork struct { // Required: true NetworkMapURL struct { PTXServiceDTORailSpecificationV3TRANetworkMapNameType - } `json:"NetworkMapURL"` + } `json:"NetworkMapURL" xml:"MapNameType"` // NameType // @@ -48,13 +48,13 @@ type PTXServiceDTORailSpecificationV3TRANetworkNetwork struct { // Required: true NetworkName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"NetworkName"` + } `json:"NetworkName" xml:"NameType"` // String // // 營運業者代碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // NameType // @@ -62,7 +62,7 @@ type PTXServiceDTORailSpecificationV3TRANetworkNetwork struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a network network diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go index dcdeedf3..f9dfc4db 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go @@ -24,7 +24,7 @@ type PTXServiceDTORailSpecificationV3TRAODFareODFare struct { // // 迄點車站代碼 // Required: true - DestinationStationID *string `json:"DestinationStationID"` + DestinationStationID *string `json:"DestinationStationID" xml:"String"` // NameType // @@ -32,24 +32,24 @@ type PTXServiceDTORailSpecificationV3TRAODFareODFare struct { // Required: true DestinationStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"DestinationStationName"` + } `json:"DestinationStationName" xml:"NameType"` // integer // // 方向 : [0:'順行',1:'逆行'] - Direction int32 `json:"Direction,omitempty"` + Direction string `json:"Direction,omitempty"` // Array // // 票價 // Required: true - Fares []*PTXServiceDTORailSpecificationV3TRAODFareFare `json:"Fares"` + Fares []*PTXServiceDTORailSpecificationV3TRAODFareFare "json:\"Fares\" xml:\"List`1\"" // String // // 起點車站代碼 // Required: true - OriginStationID *string `json:"OriginStationID"` + OriginStationID *string `json:"OriginStationID" xml:"String"` // NameType // @@ -57,7 +57,7 @@ type PTXServiceDTORailSpecificationV3TRAODFareODFare struct { // Required: true OriginStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OriginStationName"` + } `json:"OriginStationName" xml:"NameType"` // Int32 // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go index f252d9d3..9e824c43 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go @@ -24,23 +24,23 @@ type PTXServiceDTORailSpecificationV3TRAOperator struct { // String // // 營運業者票價查詢網站連結 - FareURL string `json:"FareURL,omitempty"` + FareURL string `json:"FareURL,omitempty" xml:"String,omitempty"` // String // // 營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // String // // 營運業者電子信箱 - OperatorEmail string `json:"OperatorEmail,omitempty"` + OperatorEmail string `json:"OperatorEmail,omitempty" xml:"String,omitempty"` // String // // 營運業者Logo網址 - OperatorLogoURL string `json:"OperatorLogoURL,omitempty"` + OperatorLogoURL string `json:"OperatorLogoURL,omitempty" xml:"String,omitempty"` // NameType // @@ -48,27 +48,27 @@ type PTXServiceDTORailSpecificationV3TRAOperator struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 營運業者連絡電話 - OperatorPhone string `json:"OperatorPhone,omitempty"` + OperatorPhone string `json:"OperatorPhone,omitempty" xml:"String,omitempty"` // String // // 營運業者網址連結 - OperatorURL string `json:"OperatorURL,omitempty"` + OperatorURL string `json:"OperatorURL,omitempty" xml:"String,omitempty"` // String // // 營運業者訂票電話 - ReservationPhone string `json:"ReservationPhone,omitempty"` + ReservationPhone string `json:"ReservationPhone,omitempty" xml:"String,omitempty"` // String // // 營運業者訂票網站 - ReservationURL string `json:"ReservationURL,omitempty"` + ReservationURL string `json:"ReservationURL,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a operator diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go index 0b9c5bb6..d9cec9a9 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV3TRAShape struct { // // well-known text,為路線軌跡資料 // Required: true - Geometry *string `json:"Geometry"` + Geometry *string `json:"Geometry" xml:"String"` // String // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // NameType // @@ -39,13 +39,13 @@ type PTXServiceDTORailSpecificationV3TRAShape struct { // Required: true LineName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"LineName"` + } `json:"LineName" xml:"NameType"` // String // // 路線編號 // Required: true - LineNo *string `json:"LineNo"` + LineNo *string `json:"LineNo" xml:"String"` // DateTime // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go index b9743665..1a437375 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go @@ -28,13 +28,13 @@ type PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable struct { // Required: true SpecialDay struct { PTXServiceDTORailSpecificationV3TRACommonSpecialDay - } `json:"SpecialDay"` + } `json:"SpecialDay" xml:"SpecialDay"` // Array // // 停靠時間資料 // Required: true - StopTimes []*PTXServiceDTORailSpecificationV3TRACommonStopTime `json:"StopTimes"` + StopTimes []*PTXServiceDTORailSpecificationV3TRACommonStopTime "json:\"StopTimes\" xml:\"List`1\"" // TrainInfo // @@ -42,7 +42,7 @@ type PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable struct { // Required: true TrainInfo struct { PTXServiceDTORailSpecificationV3TRACommonTrainInfo - } `json:"TrainInfo"` + } `json:"TrainInfo" xml:"TrainInfo"` } // Validate validates this p t x service d t o rail specification v3 t r a specific train timetable diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go index b92ed2c9..71012e8a 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go @@ -24,23 +24,23 @@ type PTXServiceDTORailSpecificationV3TRAStation struct { // String // // 訂票車站代碼 - ReservationCode string `json:"ReservationCode,omitempty"` + ReservationCode string `json:"ReservationCode,omitempty" xml:"String,omitempty"` // String // // 車站地址 - StationAddress string `json:"StationAddress,omitempty"` + StationAddress string `json:"StationAddress,omitempty" xml:"String,omitempty"` // String // // 車站級別 = ['0: 特等', '1: 一等', '2: 二等', '3: 三等', '4: 簡易', '5: 招呼', '6: 號誌', 'A: 貨運', 'B: 基地', 'X: 非車'] - StationClass string `json:"StationClass,omitempty"` + StationClass string `json:"StationClass,omitempty" xml:"String,omitempty"` // String // // 臺鐵車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -48,12 +48,12 @@ type PTXServiceDTORailSpecificationV3TRAStation struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 車站聯絡電話 - StationPhone string `json:"StationPhone,omitempty"` + StationPhone string `json:"StationPhone,omitempty" xml:"String,omitempty"` // PointType // @@ -61,18 +61,18 @@ type PTXServiceDTORailSpecificationV3TRAStation struct { // Required: true StationPosition struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"StationPosition"` + } `json:"StationPosition" xml:"PointType"` // String // // 臺鐵車站唯一識別代碼 // Required: true - StationUID *string `json:"StationUID"` + StationUID *string `json:"StationUID" xml:"String"` // String // // 車站資訊說明網址 - StationURL string `json:"StationURL,omitempty"` + StationURL string `json:"StationURL,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a station diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit.go index 7aee9cea..3b2c7463 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit.go @@ -24,7 +24,7 @@ type PTXServiceDTORailSpecificationV3TRAStationExitExit struct { // String // // 出入口所在道路路段方位角 - Bearing string `json:"Bearing,omitempty"` + Bearing string `json:"Bearing,omitempty" xml:"String,omitempty"` // Boolean // @@ -41,7 +41,7 @@ type PTXServiceDTORailSpecificationV3TRAStationExitExit struct { // // 出入口代碼 // Required: true - ExitID *string `json:"ExitID"` + ExitID *string `json:"ExitID" xml:"String"` // NameType // @@ -49,7 +49,7 @@ type PTXServiceDTORailSpecificationV3TRAStationExitExit struct { // Required: true ExitName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"ExitName"` + } `json:"ExitName" xml:"NameType"` // PointType // @@ -57,17 +57,17 @@ type PTXServiceDTORailSpecificationV3TRAStationExitExit struct { // Required: true ExitPosition struct { PTXServiceDTOSharedSpecificationV3BasePointType - } `json:"ExitPosition"` + } `json:"ExitPosition" xml:"PointType"` // String // // 地址描述 - LocationDescription string `json:"LocationDescription,omitempty"` + LocationDescription string `json:"LocationDescription,omitempty" xml:"String,omitempty"` // String // // 出入口所在道路名稱 - RoadName string `json:"RoadName,omitempty"` + RoadName string `json:"RoadName,omitempty" xml:"String,omitempty"` // Boolean // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit_map_url.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit_map_url.go index b94e2c67..54a870e1 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit_map_url.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit_map_url.go @@ -21,7 +21,7 @@ type PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL struct { // String // // 樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // NameType // @@ -29,12 +29,12 @@ type PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL struct { // Required: true MapName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"MapName"` + } `json:"MapName" xml:"NameType"` // String // // 車站出入口簡圖網址 - MapURL string `json:"MapURL,omitempty"` + MapURL string `json:"MapURL,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a station exit exit map URL diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go index 72e97988..b0d3cf3e 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go @@ -25,19 +25,19 @@ type PTXServiceDTORailSpecificationV3TRAStationExitStationExit struct { // Array // // 車站出入口簡圖網址連結資訊 - ExitMapURLs []*PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL `json:"ExitMapURLs"` + ExitMapURLs []*PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL "json:\"ExitMapURLs\" xml:\"List`1\"" // Array // // 車站出入口 // Required: true - Exits []*PTXServiceDTORailSpecificationV3TRAStationExitExit `json:"Exits"` + Exits []*PTXServiceDTORailSpecificationV3TRAStationExitExit "json:\"Exits\" xml:\"List`1\"" // String // // 出入口所屬車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -45,7 +45,7 @@ type PTXServiceDTORailSpecificationV3TRAStationExitStationExit struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a station exit station exit diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_info.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_info.go index 15a37bd1..5c9feb4d 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_info.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_info.go @@ -23,12 +23,12 @@ type PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo struct { // // 位置描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // String // // 樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a station facility facility info diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_map_url.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_map_url.go index 77dde8bf..4178f2e2 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_map_url.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_map_url.go @@ -24,7 +24,7 @@ type PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL struct { // String // // 樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // NameType // @@ -32,13 +32,13 @@ type PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL struct { // Required: true MapName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"MapName"` + } `json:"MapName" xml:"NameType"` // String // // 車站設施簡圖網址 // Required: true - MapURL *string `json:"MapURL"` + MapURL *string `json:"MapURL" xml:"String"` } // Validate validates this p t x service d t o rail specification v3 t r a station facility facility map URL diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go index b58ffcef..7f7ba209 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go @@ -26,31 +26,31 @@ type PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility struct { // // 飲水機位置資訊 // Required: true - DrinkingFountains []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo `json:"DrinkingFountains"` + DrinkingFountains []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo "json:\"DrinkingFountains\" xml:\"List`1\"" // Array // // 無障礙電梯位置資訊 // Required: true - Elevators []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo `json:"Elevators"` + Elevators []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo "json:\"Elevators\" xml:\"List`1\"" // Array // // 車站出入口 // Required: true - FacilityMapURLs []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL `json:"FacilityMapURLs"` + FacilityMapURLs []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL "json:\"FacilityMapURLs\" xml:\"List`1\"" // Array // // 詢問處位置資訊 // Required: true - InformationSpots []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo `json:"InformationSpots"` + InformationSpots []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo "json:\"InformationSpots\" xml:\"List`1\"" // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -58,13 +58,13 @@ type PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // Array // // 廁所位置資訊 // Required: true - Toilets []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo `json:"Toilets"` + Toilets []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo "json:\"Toilets\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v3 t r a station facility station facility diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_line_station.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_line_station.go index 11ecd14c..648aaffb 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_line_station.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_line_station.go @@ -37,7 +37,7 @@ type PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation struct { // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -45,7 +45,7 @@ type PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a station of line line station diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go index bf6632bc..3a538206 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go @@ -26,19 +26,19 @@ type PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine struct { // // 路線代碼 // Required: true - LineID *string `json:"LineID"` + LineID *string `json:"LineID" xml:"String"` // String // // 路線編號 // Required: true - LineNo *string `json:"LineNo"` + LineNo *string `json:"LineNo" xml:"String"` // Array // // 路線車站資訊 // Required: true - Stations []*PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation `json:"Stations"` + Stations []*PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation "json:\"Stations\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v3 t r a station of line station of line diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_airport_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_airport_transfer.go index 08fcc1d2..1f21c656 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_airport_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_airport_transfer.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer struct { // // 機場代碼 // Required: true - AirportID *string `json:"AirportID"` + AirportID *string `json:"AirportID" xml:"String"` // NameType // @@ -33,17 +33,17 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer struct { // Required: true AirportName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"AirportName"` + } `json:"AirportName" xml:"NameType"` // String // // 轉乘描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 轉乘樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // 是否為站內或站外轉乘 IsOnSiteTransfer bool `json:"IsOnSiteTransfer,omitempty"` @@ -55,13 +55,13 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer struct { // // 運具種類代碼 // Required: true - Mode *string `json:"Mode"` + Mode *string `json:"Mode" xml:"String"` // String // // 機場營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // NameType // @@ -69,7 +69,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a station transfer airport transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bike_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bike_transfer.go index 87311d4e..05e2c96e 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bike_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bike_transfer.go @@ -24,12 +24,12 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer struct { // String // // 轉乘描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 轉乘樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // 是否為站內或站外轉乘 IsOnSiteTransfer bool `json:"IsOnSiteTransfer,omitempty"` @@ -41,13 +41,13 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer struct { // // 運具種類代碼 // Required: true - Mode *string `json:"Mode"` + Mode *string `json:"Mode" xml:"String"` // String // // 公共自行車營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // NameType // @@ -55,13 +55,13 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 公共自行車租借站位代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -69,7 +69,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a station transfer bike transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bus_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bus_transfer.go index 5cf3d275..0a25c778 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bus_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bus_transfer.go @@ -24,18 +24,18 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer struct { // String // // 轉乘描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 轉乘公車開往方向 // Required: true - Destination *string `json:"Destination"` + Destination *string `json:"Destination" xml:"String"` // String // // 轉乘樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // 是否為站內或站外轉乘 IsOnSiteTransfer bool `json:"IsOnSiteTransfer,omitempty"` @@ -47,13 +47,13 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer struct { // // 運具種類代碼 // Required: true - Mode *string `json:"Mode"` + Mode *string `json:"Mode" xml:"String"` // String // // 公車營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // NameType // @@ -61,18 +61,18 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 轉乘公車所在月台 - Platform string `json:"Platform,omitempty"` + Platform string `json:"Platform,omitempty" xml:"String,omitempty"` // String // // 轉乘公車路線代碼 // Required: true - RouteID *string `json:"RouteID"` + RouteID *string `json:"RouteID" xml:"String"` // NameType // @@ -80,13 +80,13 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer struct { // Required: true RouteName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"RouteName"` + } `json:"RouteName" xml:"NameType"` // String // // 轉乘公車站牌代碼 // Required: true - StopID *string `json:"StopID"` + StopID *string `json:"StopID" xml:"String"` // NameType // @@ -94,7 +94,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer struct { // Required: true StopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StopName"` + } `json:"StopName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a station transfer bus transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_ferry_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_ferry_transfer.go index d22728b7..8d877c65 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_ferry_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_ferry_transfer.go @@ -24,12 +24,12 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer struct { // String // // 轉乘描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 計程車招呼站代碼 - FerryStationID string `json:"FerryStationID,omitempty"` + FerryStationID string `json:"FerryStationID,omitempty" xml:"String,omitempty"` // NameType // @@ -37,12 +37,12 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer struct { // Required: true FerryStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"FerryStationName"` + } `json:"FerryStationName" xml:"NameType"` // String // // 轉乘樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // 是否為站內或站外轉乘 IsOnSiteTransfer bool `json:"IsOnSiteTransfer,omitempty"` @@ -54,13 +54,13 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer struct { // // 運具種類代碼 // Required: true - Mode *string `json:"Mode"` + Mode *string `json:"Mode" xml:"String"` // String // // 航運營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // NameType // @@ -68,7 +68,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a station transfer ferry transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_map_url.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_map_url.go index d190421d..324a9d05 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_map_url.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_map_url.go @@ -24,19 +24,19 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferMapURL struct { // String // // 樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // String // // 地圖名稱 // Required: true - MapName *string `json:"MapName"` + MapName *string `json:"MapName" xml:"String"` // String // // 地圖簡圖連結 // Required: true - MapURL *string `json:"MapURL"` + MapURL *string `json:"MapURL" xml:"String"` } // Validate validates this p t x service d t o rail specification v3 t r a station transfer map URL diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_parking_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_parking_transfer.go index b02cde4a..08a9efee 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_parking_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_parking_transfer.go @@ -25,7 +25,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer struct { // // 停車場代碼 // Required: true - CarParkID *string `json:"CarParkID"` + CarParkID *string `json:"CarParkID" xml:"String"` // NameType // @@ -33,17 +33,17 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer struct { // Required: true CarParkName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"CarParkName"` + } `json:"CarParkName" xml:"NameType"` // String // // 轉乘描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 轉乘樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // 是否為站內或站外轉乘 IsOnSiteTransfer bool `json:"IsOnSiteTransfer,omitempty"` @@ -55,7 +55,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer struct { // // 運具種類代碼 // Required: true - Mode *string `json:"Mode"` + Mode *string `json:"Mode" xml:"String"` } // Validate validates this p t x service d t o rail specification v3 t r a station transfer parking transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_rail_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_rail_transfer.go index 7251c2bc..b6f102c0 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_rail_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_rail_transfer.go @@ -24,12 +24,12 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer struct { // String // // 轉乘描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 轉乘樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // 是否為站內或站外轉乘 IsOnSiteTransfer bool `json:"IsOnSiteTransfer,omitempty"` @@ -41,13 +41,13 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer struct { // // 運具種類代碼 // Required: true - Mode *string `json:"Mode"` + Mode *string `json:"Mode" xml:"String"` // String // // 軌道營運業者簡碼 // Required: true - OperatorCode *string `json:"OperatorCode"` + OperatorCode *string `json:"OperatorCode" xml:"String"` // NameType // @@ -55,13 +55,13 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer struct { // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"OperatorName"` + } `json:"OperatorName" xml:"NameType"` // String // // 軌道場站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -69,7 +69,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a station transfer rail transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go index afd0bb4e..5f7ce711 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go @@ -26,19 +26,19 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer struct { // // 外部轉乘地圖簡圖連結資訊 // Required: true - ExteriorMapURLs []*PTXServiceDTORailSpecificationV3TRAStationTransferMapURL `json:"ExteriorMapURLs"` + ExteriorMapURLs []*PTXServiceDTORailSpecificationV3TRAStationTransferMapURL "json:\"ExteriorMapURLs\" xml:\"List`1\"" // Array // // 車站內部地圖簡圖連結資訊 // Required: true - InteriorMapURLs []*PTXServiceDTORailSpecificationV3TRAStationTransferMapURL `json:"InteriorMapURLs"` + InteriorMapURLs []*PTXServiceDTORailSpecificationV3TRAStationTransferMapURL "json:\"InteriorMapURLs\" xml:\"List`1\"" // String // // 車站代碼 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -46,18 +46,18 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer struct { // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 轉乘文字描述 - TransferDescription string `json:"TransferDescription,omitempty"` + TransferDescription string `json:"TransferDescription,omitempty" xml:"String,omitempty"` // Array // // 跨運具轉乘資訊 // Required: true - Transfers []*PTXServiceDTORailSpecificationV3TRAStationTransferTransfer `json:"Transfers"` + Transfers []*PTXServiceDTORailSpecificationV3TRAStationTransferTransfer "json:\"Transfers\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v3 t r a station transfer station transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_taxi_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_taxi_transfer.go index 92d4c0d2..f91ca1e3 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_taxi_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_taxi_transfer.go @@ -24,12 +24,12 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer struct { // String // // 轉乘描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 轉乘樓層 - FloorLevel string `json:"FloorLevel,omitempty"` + FloorLevel string `json:"FloorLevel,omitempty" xml:"String,omitempty"` // 是否為站內或站外轉乘 IsOnSiteTransfer bool `json:"IsOnSiteTransfer,omitempty"` @@ -41,12 +41,12 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer struct { // // 運具種類代碼 // Required: true - Mode *string `json:"Mode"` + Mode *string `json:"Mode" xml:"String"` // String // // 計程車招呼站代碼 - TaxiStopID string `json:"TaxiStopID,omitempty"` + TaxiStopID string `json:"TaxiStopID,omitempty" xml:"String,omitempty"` // NameType // @@ -54,7 +54,7 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer struct { // Required: true TaxiStopName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TaxiStopName"` + } `json:"TaxiStopName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a station transfer taxi transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_transfer.go index 4a324c60..6a12e3dc 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_transfer.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_transfer.go @@ -26,55 +26,55 @@ type PTXServiceDTORailSpecificationV3TRAStationTransferTransfer struct { // // 航空運具轉乘資訊 // Required: true - AirportTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer `json:"AirportTransfers"` + AirportTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer "json:\"AirportTransfers\" xml:\"List`1\"" // Array // // 公共自行車轉乘資訊 // Required: true - BikeTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer `json:"BikeTransfers"` + BikeTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer "json:\"BikeTransfers\" xml:\"List`1\"" // Array // // 公車運具轉乘資訊 // Required: true - BusTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer `json:"BusTransfers"` + BusTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer "json:\"BusTransfers\" xml:\"List`1\"" // String // // 出口代碼 // Required: true - ExitID *string `json:"ExitID"` + ExitID *string `json:"ExitID" xml:"String"` // String // // 出口名稱 // Required: true - ExitName *string `json:"ExitName"` + ExitName *string `json:"ExitName" xml:"String"` // Array // // 航運轉乘資訊 // Required: true - FerryTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer `json:"FerryTransfers"` + FerryTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer "json:\"FerryTransfers\" xml:\"List`1\"" // Array // // 停車場轉乘資訊 // Required: true - ParkingTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer `json:"ParkingTransfers"` + ParkingTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer "json:\"ParkingTransfers\" xml:\"List`1\"" // Array // // 軌道轉乘資訊 // Required: true - RailTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer `json:"RailTransfers"` + RailTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer "json:\"RailTransfers\" xml:\"List`1\"" // Array // // 計程車轉乘資訊 // Required: true - TaxiTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer `json:"TaxiTransfers"` + TaxiTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer "json:\"TaxiTransfers\" xml:\"List`1\"" } // Validate validates this p t x service d t o rail specification v3 t r a station transfer transfer diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go index b0c17847..4ef69496 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go @@ -23,28 +23,28 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlert struct { // // 通阻訊息代碼 // Required: true - AlertID *string `json:"AlertID"` + AlertID *string `json:"AlertID" xml:"String"` // String // // 通阻訊息網址連結 - AlertURL string `json:"AlertURL,omitempty"` + AlertURL string `json:"AlertURL,omitempty" xml:"String,omitempty"` // String // // 通阻訊息說明 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // integer // // 影響方向 : [0:'南下',1:'北上',2:'雙向'] - Direction int32 `json:"Direction,omitempty"` + Direction string `json:"Direction,omitempty"` // String // // 影響說明 - Effect string `json:"Effect,omitempty"` + Effect string `json:"Effect,omitempty" xml:"String,omitempty"` // DateTime // @@ -54,7 +54,7 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlert struct { // integer // // 影響等級程度 : [1:'重度',2:'中度',3:'輕度'] - Level int32 `json:"Level,omitempty"` + Level string `json:"Level,omitempty"` // DateTime // @@ -64,7 +64,7 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlert struct { // String // // 影響原因 - Reason string `json:"Reason,omitempty"` + Reason string `json:"Reason,omitempty" xml:"String,omitempty"` // AlertScope // @@ -72,7 +72,7 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlert struct { // Required: true Scope struct { PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope - } `json:"Scope"` + } `json:"Scope" xml:"AlertScope"` // DateTime // @@ -83,13 +83,13 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlert struct { // // 營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況'] // Required: true - Status *int32 `json:"Status"` + Status *string `json:"Status"` // String // // 通阻訊息標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` // DateTime // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope.go index 979a5216..18d81858 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope.go @@ -24,38 +24,38 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope struct { // // 受影響的路線區間 // Required: true - LineSections []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection `json:"LineSections"` + LineSections []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection `json:"LineSections" xml:"AlertScopeLineSection[]"` // AlertScopeLine[] // // 受影響的實體路線 // Required: true - Lines []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine `json:"Lines"` + Lines []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine `json:"Lines" xml:"AlertScopeLine[]"` // AlertScopeNetwork // // 受影響的路網 NetworkList struct { PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork - } `json:"NetworkList,omitempty"` + } `json:"NetworkList,omitempty" xml:"AlertScopeNetwork,omitempty"` // AlertScopeRoute[] // // 受影響的營運路線 // Required: true - Routes []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute `json:"Routes"` + Routes []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute `json:"Routes" xml:"AlertScopeRoute[]"` // AlertScopeStation[] // // 受影響的車站 // Required: true - Stations []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation `json:"Stations"` + Stations []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation `json:"Stations" xml:"AlertScopeStation[]"` // AlertScopeTrain[] // // 受影響的車次 // Required: true - Trains []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain `json:"Trains"` + Trains []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain `json:"Trains" xml:"AlertScopeTrain[]"` } // Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line.go index ff80620f..9dd6c5f4 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line.go @@ -20,12 +20,12 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine struct { // String // // 實體路線代碼 - LineID string `json:"LineID,omitempty"` + LineID string `json:"LineID,omitempty" xml:"String,omitempty"` // String // // 實體路線名稱 - LineName string `json:"LineName,omitempty"` + LineName string `json:"LineName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope line diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line_section.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line_section.go index 60339866..b883afd7 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line_section.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line_section.go @@ -20,32 +20,32 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection struct // String // // 影響區間輔助描述 - Description string `json:"Description,omitempty"` + Description string `json:"Description,omitempty" xml:"String,omitempty"` // String // // 區間迄站車站代碼 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // String // // 區間迄站車站名稱 - EndingStationName string `json:"EndingStationName,omitempty"` + EndingStationName string `json:"EndingStationName,omitempty" xml:"String,omitempty"` // String // // 路線區間所在路線代碼 - LineID string `json:"LineID,omitempty"` + LineID string `json:"LineID,omitempty" xml:"String,omitempty"` // String // // 區間起站車站代碼 - StartingStationID string `json:"StartingStationID,omitempty"` + StartingStationID string `json:"StartingStationID,omitempty" xml:"String,omitempty"` // String // // 區間起站車站名稱 - StartingStationName string `json:"StartingStationName,omitempty"` + StartingStationName string `json:"StartingStationName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope line section diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_network.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_network.go index ca2bb983..498af009 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_network.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_network.go @@ -20,12 +20,12 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork struct { // String // // 路網代碼 - NetworkID string `json:"NetworkID,omitempty"` + NetworkID string `json:"NetworkID,omitempty" xml:"String,omitempty"` // String // // 路網名稱 - NetworkName string `json:"NetworkName,omitempty"` + NetworkName string `json:"NetworkName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope network diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_route.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_route.go index e8aaa1bd..20005a6b 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_route.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_route.go @@ -20,12 +20,12 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute struct { // String // // 營運路線代碼 - RouteID string `json:"RouteID,omitempty"` + RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"` // String // // 營運路線名稱 - RouteName string `json:"RouteName,omitempty"` + RouteName string `json:"RouteName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope route diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_station.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_station.go index 70d99750..a3531b51 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_station.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_station.go @@ -20,12 +20,12 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation struct { // String // // 車站代碼 - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // String // // 車站名稱 - StationName string `json:"StationName,omitempty"` + StationName string `json:"StationName,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope station diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_train.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_train.go index 31d74c41..f67fd6f0 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_train.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_train.go @@ -20,7 +20,7 @@ type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain struct { // String // // 受影響的車次 - TrainNo string `json:"TrainNo,omitempty"` + TrainNo string `json:"TrainNo,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope train diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go index e2e89a98..3be62ccc 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go @@ -22,18 +22,18 @@ type PTXServiceDTORailSpecificationV3TRATRANewsListNews struct { // String // // 附件網址連結 - AttachmentURL string `json:"AttachmentURL,omitempty"` + AttachmentURL string `json:"AttachmentURL,omitempty" xml:"String,omitempty"` // String // // 發布單位 - Department string `json:"Department,omitempty"` + Department string `json:"Department,omitempty" xml:"String,omitempty"` // String // // 內容描述 // Required: true - Description *string `json:"Description"` + Description *string `json:"Description" xml:"String"` // DateTime // @@ -44,24 +44,24 @@ type PTXServiceDTORailSpecificationV3TRATRANewsListNews struct { // // 語系 : [1:'Zh_tw',2:'En_us',3:'Zh_cn',4:'Ja',5:'Ko',99:'Other'] // Required: true - Language *int32 `json:"Language"` + Language *string `json:"Language"` // integer // // 消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他'] // Required: true - NewsCategory *int32 `json:"NewsCategory"` + NewsCategory *string `json:"NewsCategory"` // String // // 消息代碼 // Required: true - NewsID *string `json:"NewsID"` + NewsID *string `json:"NewsID" xml:"String"` // String // // 消息網址連結 - NewsURL string `json:"NewsURL,omitempty"` + NewsURL string `json:"NewsURL,omitempty" xml:"String,omitempty"` // DateTime // @@ -78,7 +78,7 @@ type PTXServiceDTORailSpecificationV3TRATRANewsListNews struct { // // 消息標題 // Required: true - Title *string `json:"Title"` + Title *string `json:"Title" xml:"String"` // DateTime // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go index 78f0d1c4..c00d6383 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go @@ -28,12 +28,12 @@ type PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard // integer // // 行駛方向 : [0:'順行',1:'逆行'] - Direction int32 `json:"Direction,omitempty"` + Direction string `json:"Direction,omitempty"` // String // // 終點站代碼 - EndingStationID string `json:"EndingStationID,omitempty"` + EndingStationID string `json:"EndingStationID,omitempty" xml:"String,omitempty"` // NameType // @@ -41,33 +41,33 @@ type PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard // Required: true EndingStationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"EndingStationName"` + } `json:"EndingStationName" xml:"NameType"` // String // // 停靠月台(00代表當時尚未確定停靠的月台,待確定好停靠的月台後,就會更新Platfrom。) - Platform string `json:"Platform,omitempty"` + Platform string `json:"Platform,omitempty" xml:"String,omitempty"` // integer // // 列車狀態 : [0:'準點',1:'誤點',2:'取消'] - RunningStatus int32 `json:"RunningStatus,omitempty"` + RunningStatus string `json:"RunningStatus,omitempty"` // String // // 表訂到站時刻 - ScheduleArrivalTime string `json:"ScheduleArrivalTime,omitempty"` + ScheduleArrivalTime string `json:"ScheduleArrivalTime,omitempty" xml:"String,omitempty"` // String // // 表定離站時刻 - ScheduleDepartureTime string `json:"ScheduleDepartureTime,omitempty"` + ScheduleDepartureTime string `json:"ScheduleDepartureTime,omitempty" xml:"String,omitempty"` // String // // 車站代號 // Required: true - StationID *string `json:"StationID"` + StationID *string `json:"StationID" xml:"String"` // NameType // @@ -75,23 +75,23 @@ type PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 車次代碼 // Required: true - TrainNo *string `json:"TrainNo"` + TrainNo *string `json:"TrainNo" xml:"String"` // String // // 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快'] - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 車種代嗎 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // @@ -99,12 +99,12 @@ type PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard // Required: true TrainTypeName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TrainTypeName"` + } `json:"TrainTypeName" xml:"NameType"` // integer // // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線'] - TripLine int32 `json:"TripLine,omitempty"` + TripLine string `json:"TripLine,omitempty"` // DateTime // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go index 947eac61..8640f0c0 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go @@ -28,7 +28,7 @@ type PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard stru // String // // 車站代號 - StationID string `json:"StationID,omitempty"` + StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // NameType // @@ -36,27 +36,27 @@ type PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard stru // Required: true StationName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"StationName"` + } `json:"StationName" xml:"NameType"` // String // // 車次代碼 - TrainNo string `json:"TrainNo,omitempty"` + TrainNo string `json:"TrainNo,omitempty" xml:"String,omitempty"` // integer // // 列車目前所在之車站狀態 : [0:'進站中',1:'在站上',2:'已離站'] - TrainStationStatus int32 `json:"TrainStationStatus,omitempty"` + TrainStationStatus string `json:"TrainStationStatus,omitempty"` // String // // 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快'] - TrainTypeCode string `json:"TrainTypeCode,omitempty"` + TrainTypeCode string `json:"TrainTypeCode,omitempty" xml:"String,omitempty"` // String // // 車種代嗎 - TrainTypeID string `json:"TrainTypeID,omitempty"` + TrainTypeID string `json:"TrainTypeID,omitempty" xml:"String,omitempty"` // NameType // @@ -64,7 +64,7 @@ type PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard stru // Required: true TrainTypeName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TrainTypeName"` + } `json:"TrainTypeName" xml:"NameType"` // DateTime // diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go index 24035af1..61165168 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go +++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go @@ -25,13 +25,13 @@ type PTXServiceDTORailSpecificationV3TRATrainType struct { // // 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快'] // Required: true - TrainTypeCode *string `json:"TrainTypeCode"` + TrainTypeCode *string `json:"TrainTypeCode" xml:"String"` // String // // 列車車種代碼 // Required: true - TrainTypeID *string `json:"TrainTypeID"` + TrainTypeID *string `json:"TrainTypeID" xml:"String"` // NameType // @@ -39,7 +39,7 @@ type PTXServiceDTORailSpecificationV3TRATrainType struct { // Required: true TrainTypeName struct { PTXServiceDTOSharedSpecificationV3BaseNameType - } `json:"TrainTypeName"` + } `json:"TrainTypeName" xml:"NameType"` } // Validate validates this p t x service d t o rail specification v3 t r a train type diff --git a/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go b/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go index b449af50..df559375 100644 --- a/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go +++ b/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go @@ -20,12 +20,12 @@ type PTXServiceDTOSharedSpecificationV3BaseNameType struct { // String // // 英文名稱 - En string `json:"En,omitempty"` + En string `json:"En,omitempty" xml:"String,omitempty"` // String // // 中文繁體名稱 - ZhTw string `json:"Zh_tw,omitempty"` + ZhTw string `json:"Zh_tw,omitempty" xml:"String,omitempty"` } // Validate validates this p t x service d t o shared specification v3 base name type diff --git a/spec/main.go b/spec/main.go index ce4435de..51cccdf1 100644 --- a/spec/main.go +++ b/spec/main.go @@ -21,6 +21,15 @@ func main() { { Filename: "oas.bus.v2.json", URL: "https://ptx.transportdata.tw/MOTC/v2/Bus/api-docs/oas", + Pipeline: []Step{ + fixBusV2BusA1DataDirectionProperty, + fixBusV2BusRouteBusRouteTypeProperty, + fixBusV2BusVehicleInfoVehicleTypeProperty, + fixBusV2DirectionProperty, + fixBusV2SectionFareBufferZoneDirectionProperty, + fixBusV2BusN1EstimateTimeDirectionProperty, + fixBusV2BusShapeDirectionProperty, + }, }, { Filename: "oas.bus.v3.json", @@ -88,3 +97,80 @@ func writeFile(filename string, data []byte) { _ = enc.Encode(v) _ = ioutil.WriteFile(filename, bf.Bytes(), 0644) } + +func fixBusV2BusA1DataDirectionProperty(data []byte) []byte { + return bytes.Replace( + data, + []byte(`"description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string"`), + []byte(`"description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer"`), + -1, + ) +} + +func fixBusV2BusRouteBusRouteTypeProperty(data []byte) []byte { + return bytes.Replace( + data, + []byte(`"description": "公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運',14:'接駁車']", + "type": "string"`), + []byte(`"description": "公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運',14:'接駁車']", + "type": "integer"`), + -1, + ) +} + +func fixBusV2BusVehicleInfoVehicleTypeProperty(data []byte) []byte { + return bytes.Replace( + data, + []byte(`"description": "車輛種類 : [0:'一般',1:'無障礙公車',2:'復康巴士',3:'小型巴士']", + "type": "string"`), + []byte(`"description": "車輛種類 : [0:'一般',1:'無障礙公車',2:'復康巴士',3:'小型巴士']", + "type": "integer"`), + -1, + ) +} + +func fixBusV2DirectionProperty(data []byte) []byte { + return bytes.Replace( + data, + []byte(`"description": "影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string"`), + []byte(`"description": "影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer"`), + -1, + ) +} + +func fixBusV2SectionFareBufferZoneDirectionProperty(data []byte) []byte { + return bytes.Replace( + data, + []byte(`"description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string"`), + []byte(`"description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer"`), + -1, + ) +} + +func fixBusV2BusN1EstimateTimeDirectionProperty(data []byte) []byte { + return bytes.Replace( + data, + []byte(`"description": "去返程(該方向指的是此車牌車輛目前所在路線的去返程方向,非指站站牌所在路線的去返程方向,使用時請加值業者多加注意) : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string"`), + []byte(`"description": "去返程(該方向指的是此車牌車輛目前所在路線的去返程方向,非指站站牌所在路線的去返程方向,使用時請加值業者多加注意) : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer"`), + -1, + ) +} + +func fixBusV2BusShapeDirectionProperty(data []byte) []byte { + return bytes.Replace( + data, + []byte(`"description": "去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "string"`), + []byte(`"description": "去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']", + "type": "integer"`), + -1, + ) +} diff --git a/test/integration/bus_v3_test.go b/test/integration/bus_v3_test.go index 55745b55..32a0df4e 100644 --- a/test/integration/bus_v3_test.go +++ b/test/integration/bus_v3_test.go @@ -18,10 +18,10 @@ func init() { } func TestBusV3_RouteNetwork(t *testing.T) { - params := city_bus.NewCityBusAPIRouteNetworkParams(). + params := city_bus.NewCityBusAPIRouteNetwork2Params(). WithDollarFormat("JSON"). WithCity("Tainan") - result, _, err := busV23lient.CityBus.CityBusAPIRouteNetwork(params) + result, _, err := busV23lient.CityBus.CityBusAPIRouteNetwork2(params) require.NoError(t, err) if len(result.Payload.RouteNetworks) == 0 { t.Fatal("CityBus.CityBusAPIRouteNetwork return no data")