xl9211 / flightdaemon Goto Github PK
View Code? Open in Web Editor NEW航班信息查询后台
航班信息查询后台
表示航班的总里程数,方便我再详情页显示已走多少公里,还剩多少公里
第一,搜索速度比其他两种搜索方式平均慢3-5倍;
第二,参考flighttrack,期望后台返回的航班是已经起飞还为降落的航班(这样更有利于用户体验航班跟踪的亮点所在)。
x = datetime.datetime.now()
x
datetime.datetime(2011, 11, 14, 23, 39, 29, 262700)
s1 = "2011-11-13" + " " + "23:35"
s1
'2011-11-13 23:35'
datetime.datetime.strptime(s1, "%Y-%m-%d %H:%M")
datetime.datetime(2011, 11, 13, 23, 35)
y = datetime.datetime.strptime(s1, "%Y-%m-%d %H:%M")
x - y
datetime.timedelta(1, 269, 262700)
只需要实时部分即可:flight_state、flight_location、schedule_takeoff_time、estimate_takeoff_time、actual_takeoff_time、 schedule_arrival_time、estimate_arrival_time、actual_arrival_time
@specialbrian 需要客户端配合
影响实际起飞的推送
python函数默认返回值为None,误处理为错误数据,没有进行入库操作。
"on_time": "65.38 ,
"half_hour_late": "23.08 ,
"one_hour_late": "3.85 ,
"more_than_one_hour_late": "7.69 ,
"cancel": "0.00 ,
我的设备
7b8010ddc90ec116b75cc500abf4fe36bb05bdce42ed31aa09873b2a87cc35ed
方便大家跟踪发现推送问题,不好改就不用急了
是不是查成今天的航班了?
早晨还10几架,可是现在只有四架飞机了
@specialbrian,还有别的什么信息需要增加吗?
准点率
天气
如下网址对应非常准的查询结果,即可看出问题:
http://118.194.161.243:28888/queryFlightInfoByRoute?takeoff_airport=PEK&arrival_airport=SHA&schedule_takeoff_date=2011-10-25&company=MU
http://118.194.161.243:28888/queryFlightInfoByRoute?takeoff_airport=PEK&arrival_airport=SHA&schedule_takeoff_date=2011-10-25
http://118.194.161.243:28888/queryFlightInfoByRoute?takeoff_airport=PEK&arrival_airport=SHA&schedule_takeoff_date=2011-10-25&company=all
导致客户端中 计划航班中显示的“预计离开登机口 提前0分”
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.