摘要:
The current map information query and weather real time forecast are generally achieved by .NET development platform. Basically, .NET support Microsoft windows system excellently. However, it cannot give other systems the same good support. To try another way, tool command language (TCL) tools can be used in many common platforms and it is easily to be expanded. With the usage of the two above characteristics, the TCL uses network interface package, networking protocol package and socket to realize effective and rapid development of network service platform instead of .NET. Meanwhile, the Web Service Platform designed by TCL can also work in different systems such as Linux, Unix and Windows. To help customers acquire geography's and weather's information all over the world, Baidu Map application program interface (API) and Weather Web Service interfaces are adopted. Moreover, TCL common gateway interface (CGI) is used to reorganize Baidu Map API and Weather Web Service API. According to different requirements, the customers can obtain the corresponding information service. In addition, the TCL and CGI scripts designed for weather forecasting service platform can be transplanted from Windows into other systems, and then the operation of cross platform can be achieved.%目前地图信息的查询与天气预报的实现大多采用.NET开发平台,虽然.NET对微软Windows有出色的支持,但对其他系统下的开发支持还不够.因此,根据工具命令语言(TCL)多平台通用和易于扩展的特点,采用其网络接口开发包、网络协议传输包及套接字替代.NET实现网络服务平台的高效、快速开发,同时使得开发的网络平台可以在Linux、Unix、Windows等系统上运行.为便于用户获取各地的地理和天气信息,采用百度地图应用程序接口(API)和天气信息服务(Weather Web Service)接口,并利用TCL编写的公共网关接口(CGI)对上述两种Web接口的服务进行整理,用户可根据不同的需求,获取相应的信息服务.此外,在Windows下设计开发的TCL及CGI脚本可移植于其他系统,实现跨平台操作.