Abstract: As an interface for querying the remaining ticket for a train ticket, the data comes from 12306. The map uses Baidu map (unfinished)
Today, I wanted to query my home ticket. As a result, I found that 12306 of my website could not be opened, but Nima was a real fool. How was it difficult to query the remaining ticket?
So I decided to create an interface for querying the train ticket remaining,
Function:
- The query of train remaining tickets is very important. The data comes from 12306 in real time, and no verification code is required.
- Vehicle count Query
- Plane ticket query. This interface is used by the way. If you want to buy a plane ticket, try it.
Interface Usage:
- The smarty template can use ajax, but the php loop array is used to directly use the smarty loop.
- The query results show that only simple table tables are used, and the style is ugly. You may not be good at your art.
- When you attach a query, you will feel faster than the query speed of 12306.
- The train map was originally intended to be a map of the train route. It was originally intended to use Google Map, and gave up considering the speed and instability factors. It was a bit difficult to use Baidu map, but Baidu's anti-geographic analysis was a bit pitfall, the result can only be displayed in a map, and the latitude and longitude values cannot be returned. Remember that Google can. Here we despise Baidu map. Considering the time issue, we first made the ticket query interface, train map, etc.
- Interface demo address: Train ticket remaining query interface
Chat QQ group: 153856687 (full), 198110186 (New Group)
Demo:
Train map effect:
This effect has not been completed yet. Wait for the next step to complete.
Interface demo address: Train ticket remaining query interface
Chat QQ group: 153856687 (full), 198110186 (New Group)
Technorati label:
Query by remaining votes, real-time query by more than 12306 votes, Baidu Map
Tags:
Query by remaining votes, real-time query by more than 12306 votes, Baidu Map
Link to this article:
When the Spring Festival is approaching, I made an interface for querying the train ticket remaining. The source of the ticket remaining is 12306. The figure is Baidu map.
Contact Author:PHP Huaibei, communication QQ group: 153856687
Copyright:Non-Special statements are original articles on this site. for reprinting, please indicate the source: PHP10086 blog
About this site:It is said that every programmer should dig his own well: http://www.php10086.com.
Subscribe to updates:Welcome to subscribe to our content update through RSS
This article is based on the signature-non-commercial use
3.0 License Agreement published, welcome to reprint, deduction, but must retain the signature of this article: PHP10086 blog network (PHP Huaibei): http://www.php10086.com, you can also contact me by mail. It is said that every programmer should dig his own well. I hope you can support my "well". QQ chat: 153856687