bahnzumberg / zuugle-suchseite

Public repository for www.zuugle.at
https://www.zuugle.at
GNU General Public License v3.0
6 stars 11 forks source link

connection_departure_stop and connection_arrival_stop used in Frontend #324

Closed martinheppner closed 5 months ago

martinheppner commented 5 months ago

Is there a possibility to avoid the use of connection_departure_stop and connection_arrival_stop in the Frontend?

martinheppner commented 5 months ago

Upate: Both stops are in connection_description_json: First at the beginning, the second at the end.

martinheppner commented 5 months ago

Established a temporary fix in tours.js on line 687 and 688. Please fill these field out of connection_description_json

connection.connection_departure_stop = 'XX departure_stop XX'
connection.connection_arrival_stop = 'YY arrival_stop YY'

image

Falsal commented 5 months ago

completed replacing the following columns :

  1. connection_departure_stop
  2. connection_arrival_stop
  3. connection_returns_departure_stop
  4. return_arrival_stop

With data from connection_description_json

These were used inside 2 components :

  1. TourConnectionReturnCardNew
  2. TourConnectionCardNew
martinheppner commented 5 months ago
ALTER TABLE fahrplan DROP COLUMN connection_lastregular_arrival_stop;
ALTER TABLE fahrplan DROP COLUMN connection_lastregular_arrival_stop_lon;
ALTER TABLE fahrplan DROP COLUMN connection_lastregular_arrival_stop_lat;

ALTER TABLE fahrplan DROP COLUMN connection_departure_stop;
ALTER TABLE fahrplan DROP COLUMN connection_departure_stop_lon;
ALTER TABLE fahrplan DROP COLUMN connection_departure_stop_lat;

ALTER TABLE fahrplan DROP COLUMN connection_arrival_stop;
ALTER TABLE fahrplan DROP COLUMN connection_arrival_stop_lon;
ALTER TABLE fahrplan DROP COLUMN connection_arrival_stop_lat;

ALTER TABLE fahrplan DROP COLUMN connection_returns_departure_stop;
ALTER TABLE fahrplan DROP COLUMN return_departure_stop_lon;
ALTER TABLE fahrplan DROP COLUMN return_departure_stop_lat;

ALTER TABLE fahrplan DROP COLUMN return_firstregular_departure_stop;
ALTER TABLE fahrplan DROP COLUMN return_firstregular_departure_stop_lon;
ALTER TABLE fahrplan DROP COLUMN return_firstregular_departure_stop_lat;

ALTER TABLE fahrplan DROP COLUMN return_arrival_stop;
ALTER TABLE fahrplan DROP COLUMN return_arrival_stop_lon;
ALTER TABLE fahrplan DROP COLUMN return_arrival_stop_lat;