CN103578268B - Location recommendation method based on public transport lines - Google Patents

Location recommendation method based on public transport lines Download PDF

Info

Publication number
CN103578268B
CN103578268B CN201210272706.4A CN201210272706A CN103578268B CN 103578268 B CN103578268 B CN 103578268B CN 201210272706 A CN201210272706 A CN 201210272706A CN 103578268 B CN103578268 B CN 103578268B
Authority
CN
China
Prior art keywords
public transport
place
user
association
transport line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210272706.4A
Other languages
Chinese (zh)
Other versions
CN103578268A (en
Inventor
汪晓诗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201210272706.4A priority Critical patent/CN103578268B/en
Publication of CN103578268A publication Critical patent/CN103578268A/en
Application granted granted Critical
Publication of CN103578268B publication Critical patent/CN103578268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Navigation (AREA)
  • Traffic Control Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a location recommendation method based on public transport lines. The method comprises the following steps: (1) under the off-line state, for each public transport station, a system looks for all the public transport lines passing through the station, then finds out all interest points along each public transport line in a geographical database, and conducts classification on the interest points, and all the interest points are also named as associated locations of the public transport stations; (2) also under the off-line state, the system caches each public transport station or each public transport line or the various associated locations of each geographical region in a server internal storage of the system; (3) the system screens the associated locations according to departure points assigned by a user, conducts traversal on the nearby public transport stations, and for each public transport station, the system directly retrieves the associated locations from a cache of the internal storage and takes out the classifications conforming to the user requirement; finally, all the associated locations which conform to the user requirement are given, and the system sends the associated locations which best conform to the user requirement to the user.

Description

Based on the location recommendation method of public transport line
Technical field
The present invention relates to a kind of location recommendation method based on public transport line.
Background technology
Along with going from bad to worse of the day by day in short supply of fossil energy and physical environment, greatly develop public transportation system, advocate the important policies that Green Travel mode has become a lot of countries and regions comprising China.On the basis of traditional Public Transport Service, how in conjunction with Internet technology for public transport user provides more intelligent, new services also becomes an important technical matters easily, such as based on the place recommendation service of public transport line.
The place recommendation service based on public transport line is provided to there are some technological difficulties.A wherein main difficult point is exactly that user is to the requirement of service real-time and the contradiction of background process comparatively between complexity.Obviously, user is in the recommendation results proposing to recommend always to wish to obtain as early as possible system when requiring, consider the delay of network, the reaction time leaving system for is very of short duration.But the computation process needing some complexity is recommended in the place on the other hand, based on public transport line.Suppose around user, have some public transport or subway station, some circuits can be taken again in each site users, system needs along these circuits, the place meeting user's requirement that the distance between all and origin site is less than N station to be found in geographical data bank, then according to certain rule compositor, finally the highest for rank is recommended user.If user does not limit number of transfer, this is a np hard problem in theory.Even if limit maximum number of transfer (such as changing to once at most) in reality, still need regular hour expense.So, the public transport line how finding a user likely to take within as far as possible short time solution space along the line has just become a key issue of improving service quality.
Summary of the invention
The object of this invention is to provide the location recommendation method based on public transport line that a kind of corresponding speed is fast, save system resources in computation.
For achieving the above object, the present invention is by the following technical solutions:
Based on a location recommendation method for public transport line, it comprises the steps:
1., under off-line state, system, for each public traffic station, looks for all public transport lines through this website, in geographical data bank, then finds all points of interest along every bar public transport line, and sort out point of interest; Described point of interest is also referred to as the association place of this public traffic station; Or under off-line state, system, for each public transport line, finds all points of interest that this public transport line is along the line, and sorts out point of interest in geographical data bank; Described point of interest is also referred to as the association place of this public transport line; Or under off-line state, system, for each geographic area, first finds all public traffic stations in this region, then find the point of interest associated by these public traffic stations in the ground in database, and point of interest is sorted out; Described point of interest is also referred to as the association place of this geographic area;
2., same under off-line state, system by each public traffic station or every bar public transport line or each geographic area all kinds of associatedly point caches in the server memory of system;
3. the departure place screening that, system is specified according to user associates place, if system cache is the association place of public traffic station, so system is by the public traffic station near traversal, for each traffic website, system is directly retrieved its association place and is taken out the classification wherein meeting user and require from the buffer memory of internal memory; If system cache is the association place of public transport line, so near system goes, there is the public transport line of website, from the buffer memory of internal memory, then retrieve its association place and take out the classification wherein meeting user and require; If buffer memory is the association place of geographic area, the geographic area belonging to it is searched in the departure place that so system is directly specified according to user, and from the buffer memory of internal memory, retrieves its association place and take out the classification wherein meeting user and require; Finally, given all association places meeting user and require, system sends to user the association place meeting most user's requirement.
Described step 2. in, by public traffic station, or public transport line, or the title of geographic area or No. ID key as buffer memory, its associated stations point set cooperation is the value of buffer memory.
Described step 3. in, utilize bayesian algorithm in the association place of the user appointed place periphery public traffic station that all users of meeting require or meet in the public transport line association place of the geographic area, user place that user requires in the association of the public transport line through the user appointed place place that all users of meeting require or all, calculating the association place meeting user most and require.
Adopt the present invention of technique scheme, do not need too complicated computation process, thus reaction velocity is fast, can find a most suitable public transport line of user, improve service quality within the as far as possible short time.
Accompanying drawing explanation
Fig. 1 is the associatedly point diagram calculating " station, five buildings " when not considering to change to.
Fig. 2 is the data structure form that association place adopts list object.
Fig. 3 is the associatedly point diagram calculating " station, five buildings " when considering once to change to.
Embodiment
Embodiment 1
Based on a location recommendation method for public transport line, it comprises the steps:
1., under off-line state, system is for each public traffic station, look for all public transport lines through this website, then in geographical data bank, find all points of interest (Point Of Interest) along every bar public transport line, and system is sorted out to point of interest according to predefined classification, such as dining room, supermarket, arenas, night shop, bar etc.For convenience of description, in description below, we claim these points of interest to be the association place of this public traffic station.This step is more consuming time, but because be off-line operation, completes before online implementing, can not response time of requiring user of influential system.
2., equally under off-line state, all kinds of association places of each public traffic station by data buffering systems such as Redis or MemoryCatche, are cached in the server memory of system by system; And in the process, can using the title of public traffic station or No. ID key as buffer memory (Key), its association Website Hosting can using certain data structure or character string forms as the value (Value) of buffer memory.Above-mentioned data structure can be site object list (List) as Hash table (Hash Table), also may be the data structure that other is difficult to enumerate.
3., the system departure place of specifying according to user, the public traffic station near traversal; For each traffic website, system is directly retrieved its association place and is taken out the classification wherein meeting user and require from the buffer memory of internal memory; Finally, given all association places meeting the user appointed place periphery public traffic station that user requires, system utilizes certain existing recommendation sort algorithm, as bayesian algorithm meets in the association place of the user appointed place periphery public traffic station that user requires all, calculate the association place meeting user's requirement most and issue user.In bayesian algorithm, favorable comment degree, discount/preferential dynamics, bid ranking etc. are comprehensively analyzed, a part the highest for rank is recommended user.
As shown in Figure 1, show when not considering transfer for a specific public traffic station " station, five buildings ", how system calculates its association website and recommends.
First, the calculating of system needs a Bus information database for inquiring about website, line information.In addition, system also needs a geographic information database to be used for inquiring about the point of interest near certain specified sites.
Assuming that system recommended distance user can only be specified the place in station, departure place three and requires that the place of recommendation is no more than 200 meters from the distance of get-off stop at most, for station, five buildings, system is first by the public transport line of Bus information data base querying through this website.Tentation data storehouse have recorded 723 roads and No. 12 buses pass through this station, so station, building between all distances five of traversal 723 road and No. 12 bus processes is no more than the website (solid black circle) at three stations by system, and in geographic information database, find all points of interest (in website peripheral annular region) near it in 200 meters.These points of interest are exactly the association place at station, five buildings.Other website for each, system is found its association place by similar computation process and is buffered in internal memory by caching system.The data structure storage of list object can be used in association place.The structure of the list object in an association place as shown in Figure 2.This example illustrates two associations place (KFC dining room and the Starbucks coffee Room) in list.
Assuming that user Xiao Wang requires system recommendation, some convenient do from family the restaurant that bus goes to have dinner, system first by Bus information data base querying from the public traffic station of Xiao Wang family's distance in 200.Suppose that between five, station, building is the public traffic station that unique distance Xiao Wang family is no more than 200 meters, system will recall the association place that station, buffer memory Nei Wujian building all categories is restaurant and sort according to the rank rule of specifying.
Assuming that a rank rule of specifying carries out rank according to user's favorable comment degree, system N number ofly recommends user by the highest for user's scoring in these restaurants.
Rank rule can consider multiple factor simultaneously, as user evaluates, and discount dynamics, hygienic conditions, distance etc.Consider that the rank rule of multiple factor can be expressed as a place points-scoring system according to many factors.Last rank depend on consider many factors when place scoring.
Show when considering once to change to for a specific public traffic station " station, five buildings " as shown in Figure 3, how system calculates its association website and recommends.The same with the requirement of embodiment 1, the calculating of system needs a Bus information database for inquiring about website, line information.In addition, system also needs a geographic information database to be used for inquiring about the point of interest near certain specified sites.
Assuming that system recommended distance user can only be specified the place in station, departure place three and requires that the place of recommendation is no more than 200 meters from the distance of get-off stop at most, for station, five buildings, system is first by the public transport line of Bus information data base querying through this website.Tentation data storehouse have recorded 723 roads and No. 12 buses pass through this station, so station, building between all distances five of traversal 723 road and No. 12 bus processes is no more than the website (solid black circle) at three stations by system, and in geographic information database, find all points of interest (in website peripheral annular region) near it in 200 meters.In addition, these are also inquired about other public transport line of all these websites of process by system, such as 973 tunnels (the website Fang Zhuanqiao through 723 tunnels stands) as shown in the figure, and to travel through in these road public transport lines the website (solid black circle) that station, building between all distances five is no more than three stations, in geographic information database, then find all points of interest (in website peripheral annular region) near it in 200 meters.All these points of interest found are exactly the association place considering the station, situation Xia Wujian building of once changing to.Other website for each, system is found its association place by similar computation process and is buffered in internal memory by caching system.
Embodiment 2
Based on a location recommendation method for public transport line, it comprises the steps:
Under off-line state, all points of interest (Point Of Interest) that system finds it along the line for each public transport line in geographical data bank, and system is sorted out point of interest according to predefined classification, such as dining room, supermarket, arenas, night shop, bar etc.For convenience of description, in description below, we claim these points of interest to be the association place of this public transport line.This step is more consuming time, but because be off-line operation, completes before online implementing, can not response time of requiring user of influential system.
Same under off-line state, all kinds of association places of each public traffic station by data buffering systems such as Redis or MemoryCatche, are cached in the server memory of system by system; And in the process, can using the title of public transport line or No. ID key as buffer memory (Key), its association Website Hosting can using the data structures such as site object list (List) Hash table (Hash Table) or character string forms as the value (Value) of buffer memory.
The departure place that system is specified according to user, traversal has the public transport line of website nearby; For every bar public transport line, system is directly retrieved its association place and is taken out the classification wherein meeting user and require from the buffer memory of internal memory; Finally, given all association places meeting the user appointed place periphery public traffic station that user requires, and embodiment 1 is similar, system recommends user by a kind of general recommendation sort algorithm a part the highest for rank.
This method is applicable to the situation not considering public transport interchange, because the buffer memory of the system association place of single line, and does not consider the association place of two or more pieces line combination.
Embodiment 3
Based on a location recommendation method for public transport line, it comprises the steps:
Under off-line state, first system is divided into some geographic areas each city, and then each geographic area is to finding the association place of all public traffic stations and sorting out point of interest according to predefined classification, such as dining room, supermarket, arenas, night shop, bar etc.For convenience of description, in description below, we claim the association place of these public traffic stations to be the association place of this geographic area.This step is more consuming time, but because be off-line operation, completes before online implementing, can not response time of requiring user of influential system.
Same under off-line state, all kinds of association places of each geographic area by data buffering systems such as Redis or MemoryCatche, are cached in the server memory of system by system; And in the process, can using the title of geographic area or No. ID key as buffer memory (Key), its association Website Hosting can using the data structures such as site object list (List) Hash table (Hash Table) or character string forms as the value (Value) of buffer memory.
The departure place that system is specified according to user, determines the geographic area belonging to it, and then the classification wherein meeting user and require also is taken out in direct its association place of retrieving from the buffer memory of internal memory; Finally, the association place in given all this geographic areas meeting user's requirement, and embodiment 1 is similar, system recommends user by a kind of existing recommendation sort algorithm a part the highest for rank.
The same with embodiment 1, namely this method is applicable to the situation not considering public transport interchange, is also applicable to the situation considering public transport interchange.But the selection of geographic area affects to some extent on the performance of recommending.Geographic area divides can not be too large, if geographic area division is too large, such as a city is as a geographic area, and wherein most of public traffic station user is difficult to arrive, and recommends just to lose meaning.

Claims (3)

1. based on a location recommendation method for public transport line, it is characterized in that, it comprises the steps:
1., under off-line state, system, for each public traffic station, looks for all public transport lines through this website, in geographical data bank, then finds all points of interest along every bar public transport line, and sort out point of interest; Described point of interest is also referred to as the association place of this public traffic station;
Or under off-line state, system, for each public transport line, finds all points of interest that this public transport line is along the line, and sorts out point of interest in geographical data bank; Described point of interest is also referred to as the association place of this public transport line;
Or under off-line state, system, for each geographic area, first finds all public traffic stations in this region, then find the point of interest associated by these public traffic stations in the ground in database, and point of interest is sorted out; Described point of interest is also referred to as the association place of this geographic area;
2., same under off-line state, system by each public traffic station or every bar public transport line or each geographic area all kinds of associatedly point caches in the server memory of system;
3. the departure place screening that, system is specified according to user associates place, if system cache is the association place of public traffic station, so system is by the public traffic station near traversal, for each traffic website, system is directly retrieved its association place and is taken out the classification wherein meeting user and require from the buffer memory of internal memory; If system cache is the association place of public transport line, so near system goes, there is the public transport line of website, from the buffer memory of internal memory, then retrieve its association place and take out the classification wherein meeting user and require; If buffer memory is the association place of geographic area, the geographic area belonging to it is searched in the departure place that so system is directly specified according to user, and from the buffer memory of internal memory, retrieves its association place and take out the classification wherein meeting user and require; Finally, given all association places meeting user and require, system sends to user the association place meeting most user's requirement.
2. the location recommendation method based on public transport line according to claim 1, it is characterized in that: described step 2. in, by public traffic station, or public transport line, or the title of geographic area or No. ID key as buffer memory, its associated stations point set cooperation is the value of buffer memory.
3. the location recommendation method based on public transport line according to claim 1, it is characterized in that: described step 3. in, utilize bayesian algorithm in the association place of the user appointed place periphery public traffic station that all users of meeting require or meet in the public transport line association place of the geographic area, user place that user requires in the association of the public transport line through the user appointed place place that all users of meeting require or all, calculating the association place meeting user most and require.
CN201210272706.4A 2012-08-02 2012-08-02 Location recommendation method based on public transport lines Active CN103578268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210272706.4A CN103578268B (en) 2012-08-02 2012-08-02 Location recommendation method based on public transport lines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210272706.4A CN103578268B (en) 2012-08-02 2012-08-02 Location recommendation method based on public transport lines

Publications (2)

Publication Number Publication Date
CN103578268A CN103578268A (en) 2014-02-12
CN103578268B true CN103578268B (en) 2015-07-15

Family

ID=50049971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210272706.4A Active CN103578268B (en) 2012-08-02 2012-08-02 Location recommendation method based on public transport lines

Country Status (1)

Country Link
CN (1) CN103578268B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150345973A1 (en) * 2014-05-30 2015-12-03 Google Inc. Detecting Important Transit Stops for Transit Trip Grouping
CN104615788A (en) * 2015-03-09 2015-05-13 徐婷 Information notifying method, equipment and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090036109A (en) * 2009-03-31 2009-04-13 팅크웨어(주) Apparatus and method for displaying geographic information of navigation system
CN101603834A (en) * 2009-07-10 2009-12-16 深圳市凯立德计算机系统技术有限公司 Method for information display and information display system based on walking navigation
US7835859B2 (en) * 2004-10-29 2010-11-16 Aol Inc. Determining a route to a destination based on partially completed route
CN102426797A (en) * 2011-11-16 2012-04-25 东南大学 Vehicle-mounted information interaction method and system of passenger vehicles

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7835859B2 (en) * 2004-10-29 2010-11-16 Aol Inc. Determining a route to a destination based on partially completed route
KR20090036109A (en) * 2009-03-31 2009-04-13 팅크웨어(주) Apparatus and method for displaying geographic information of navigation system
CN101603834A (en) * 2009-07-10 2009-12-16 深圳市凯立德计算机系统技术有限公司 Method for information display and information display system based on walking navigation
CN102426797A (en) * 2011-11-16 2012-04-25 东南大学 Vehicle-mounted information interaction method and system of passenger vehicles

Also Published As

Publication number Publication date
CN103578268A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
US9390103B2 (en) Information searching method and system based on geographic location
US9100795B2 (en) Method, system and apparatus for determining geofence data based on estimated time of arrival
JP5560367B2 (en) Method, system and server for managing dynamic information of friends in a network
CN103944932B (en) Search for, determine the method and server of active regions
US11699172B2 (en) System and method for data enrichment for requests for advertising on mobile devices
US8538973B1 (en) Directions-based ranking of places returned by local search queries
US20080097966A1 (en) Apparatus and Method for Providing Regional Information Based on Location
WO2015065980A2 (en) Methods and systems for delivering electronic content to users in population based geographic zones
TWI703862B (en) Content recommendation method and device
CN104063383A (en) Information recommendation method and device
CN103473230A (en) Service range determining method, logistics service provider recommending method and corresponding device
CN103927369B (en) bus information displaying method and device
WO2015013760A1 (en) Free time activity scheduler
CN107395680B (en) Shop group's information push and output method and device, equipment
US20160034480A1 (en) Determining Labels from Similar Geographic Features
CN104462263A (en) Method for searching for stores by means of database indexes
CN103186666A (en) Method, device and equipment for searching based on favorites
CN113360792A (en) Information recommendation method and device, electronic equipment and storage medium
CN104636457A (en) Method and device for location search cognition
JP2018517218A (en) Location information providing method and apparatus
CN103578268B (en) Location recommendation method based on public transport lines
Jiang et al. Characteristics and reliability analysis of the complex network in Guangzhou rail transit
US20110218986A1 (en) Search engine optimization economic purchasing method
CN102929914A (en) Mobile map service searching method based on P2P (point to point) node scheduling
US10510095B2 (en) Searching based on a local density of entities

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180905

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: 450001 44, 36 building, No. 4 Dongfeng Road, Jinshui District, Zhengzhou, Henan.

Patentee before: Wang Xiaoshi

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.