Create an interface for querying train ticket availability. The source of ticket availability is 12306. The figure is Baidu map.

Source: Internet
Author: User
Tags smarty template

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:

  1. The query of train remaining tickets is very important. The data comes from 12306 in real time, and no verification code is required.
  2. Vehicle count Query
  3. Plane ticket query. This interface is used by the way. If you want to buy a plane ticket, try it.

Interface Usage:

  1. The smarty template can use ajax, but the php loop array is used to directly use the smarty loop.
  2. The query results show that only simple table tables are used, and the style is ugly. You may not be good at your art.
  3. When you attach a query, you will feel faster than the query speed of 12306.
  4. 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.
  5. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.