机场参考点改为青岛胶州国际机场
This commit is contained in:
parent
a4f947a45c
commit
898d62ecb1
Binary file not shown.
Binary file not shown.
@ -81,7 +81,7 @@ graph TD
|
||||
### 3.2 坐标转换
|
||||
|
||||
- 使用等角投影方法
|
||||
- 基于机场参考点(通常为跑道中心点)
|
||||
- 基于机场参考点(青岛胶州国际机场:北纬36°21'43.2",东经120°05'16.8")
|
||||
- 考虑地球曲率影响
|
||||
- WGS84椭球体参数
|
||||
|
||||
@ -202,7 +202,7 @@ private:
|
||||
|
||||
## 7. 部署方案
|
||||
|
||||
### 7.1 <EFBFBD><EFBFBD>境要求
|
||||
### 7.1 环境要求
|
||||
|
||||
- Linux服务器
|
||||
- 多核CPU
|
||||
|
||||
@ -8,8 +8,8 @@ using json = nlohmann::json;
|
||||
HTTPDataSource::HTTPDataSource(const ConnectionConfig& config)
|
||||
: host_(config.host)
|
||||
, port_(std::to_string(config.port)) {
|
||||
// 设置坐标转换器的参考点(浦东机场坐标)
|
||||
coordinateConverter_.setReferencePoint(31.143494, 121.805214);
|
||||
// 设置坐标转换器的参考点(青岛胶州国际机场坐标)
|
||||
coordinateConverter_.setReferencePoint(36.361999, 120.088003);
|
||||
}
|
||||
|
||||
HTTPDataSource::~HTTPDataSource() {
|
||||
@ -85,7 +85,7 @@ bool HTTPDataSource::fetchData() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// <EFBFBD><EFBFBD>取响应
|
||||
// 取响应
|
||||
std::string response;
|
||||
if (!readResponse(response)) {
|
||||
disconnect();
|
||||
|
||||
@ -29,9 +29,9 @@ class CustomRequestHandler(WSGIRequestHandler):
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
# 机场参考点(浦东机场坐标)
|
||||
AIRPORT_LAT = 31.143494
|
||||
AIRPORT_LON = 121.805214
|
||||
# 机场参考点(青岛胶州国际机场坐标)
|
||||
AIRPORT_LAT = 36.361999 # 北纬36°21'43.2"
|
||||
AIRPORT_LON = 120.088003 # 东经120°05'16.8"
|
||||
|
||||
def generate_mock_data():
|
||||
"""生成模拟数据"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user