A method for acquiring bus stop and route information based on Web-side JavaScript API

A technology of bus lines and line information, applied in the field of network applications, can solve problems such as low efficiency, missing data, and difficulty in obtaining data in different places, and achieve the effect of improving research and work efficiency

CN109471908AInactive Publication Date: 2019-03-15JIANGSU UNIV
2 Cites 2 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2019-03-15
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for acquiring bus stop and line information based on a JavaScript API of a Web terminal, belonging to the technical field of network application. Bus stop and route information is obtained by determining a range or inputting a name (or geo-code) of the administrative region in the electronic map, The pre-defined functions are redeveloped by using the JavaScript APIinterface on the Web side of the electronic map, to obtain the number of bus stops and the bus lines passing through the bus stops within the selected range, and to obtain the information of the reverse bus lines by exchanging the first and last stop order search of the bus lines, and to generate a bus stop set according to the bus lines after obtaining all bus lines; Finally, the bus stop and route data are exported in Excel format. The invention can realize the acquisition of the bus stop and line data in any known area, and can meet the requirements of the bus stop and line data information of a certain area in the work of urban public transport planning and the like. At the same time, it can greatly improve the research and work efficiency of transportation workers.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of network applications, and in particular relates to a method for acquiring bus station and line information based on a JavaScript API at a Web end. Background technique

[0002] The acquisition of public transportation stations and route information based on the web terminal of the network electronic map is an important network application technology. The calibration of bus stops and the drawing of bus routes are the first link in the planning and research of urban public transport. For urban public transport planners, they often need to obtain relevant information such as bus stops and bus lines in a certain city or a certain area, and carry out the calibration of bus stops and bus lines in traffic planning software (ArcGIS or TransCAD). Drawing, so as to realize the planning or optimal adjustment of urban bus lines or bus networks.

[0003] When there was no network electronic map in the early stage or...

Examples

Embodiment Construction

[0028] The specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0029] Such as figure 1 As shown, a method for obtaining public transportation site and line information based on JavaScript API on the web side, including steps:

[0030] Step (1), according to the size of the research area you need, use the mouse to click on the network electronic map or directly enter the city administrative district name (or geocode, https: / / lbs.amap.com / api / webservice / guide / api / district / ), after determining the research scope, the user clicks to extract bus information; take the mouse to select the research scope as an example, use the mouse to click the upper left corner of the target area, then move the cursor to the lower right, and click the second point , the rectangular frame formed by connecting two points is used as the research range of the click; use the code of the "event binding" scene to bind the click ev...