Skip to content

Commit

Permalink
fix: stations
Browse files Browse the repository at this point in the history
  • Loading branch information
yayacat committed May 3, 2024
1 parent 2e4b723 commit f2cdcc5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/core/index/rts.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ function station_exec(station_data) {
}
}
station_new_id = `${station_net}-${station_code}-${station_id}`;

if (station_code === "000") {
Lat = latest.lat;
Long = latest.lon;

if (station_id === "13379360") {
Loc = "重庆市 北碚区";
area = "重庆市中部";
} else if (station_id === "7735548") {
Loc = "南楊州市 和道邑";
area = "南楊州市中部";
}
}

stations[station_id] = { uuid: station_new_id, Lat, Long, Loc, area };
}
return stations;
Expand Down

0 comments on commit f2cdcc5

Please sign in to comment.