CN110415038A - It hires a car the screening technique and system of shops - Google Patents

It hires a car the screening technique and system of shops Download PDF

Info

Publication number
CN110415038A
CN110415038A CN201910700682.XA CN201910700682A CN110415038A CN 110415038 A CN110415038 A CN 110415038A CN 201910700682 A CN201910700682 A CN 201910700682A CN 110415038 A CN110415038 A CN 110415038A
Authority
CN
China
Prior art keywords
car
shops
address
hires
user
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.)
Pending
Application number
CN201910700682.XA
Other languages
Chinese (zh)
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.)
Ctrip Travel Network Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Network Technology Shanghai Co Ltd
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 Ctrip Travel Network Technology Shanghai Co Ltd filed Critical Ctrip Travel Network Technology Shanghai Co Ltd
Priority to CN201910700682.XA priority Critical patent/CN110415038A/en
Publication of CN110415038A publication Critical patent/CN110415038A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0204Market segmentation
    • G06Q30/0205Location or geographical consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions

Abstract

The invention discloses the screening technique and system of a kind of shops that hires a car, the request this method comprises: reception user hires a car;Obtain station address;Process is judged using first and/or second judges that process searches the shops that hires a car to match with station address.First judges that process includes: that acquisition is hired a car shops address;The shops that hires a car is generated based on the address, and the first square region of service covering is provided;Judge whether station address falls into the first square region, if then the shops is selected.Second judges that process includes: to generate the second square region that user needs to service covering based on station address;Acquisition is hired a car shops address;Whether judgement shops address of hiring a car falls into the second square region, if then the shops is selected.The present invention only uses station address, the shops's list to match with station address is quickly screened using the simple algorithm whether longitude and latitude of address falls into square region, inquiry shops's amount of redundancy is reduced, the complicated calculations amount whether station address falls into shops's service range of hiring a car is reduced.

Description

It hires a car the screening technique and system of shops
Technical field
The present invention relates to the computational screening field for the shops that hires a car, in particular to the screening technique of a kind of shops that hires a car and it is System.
Background technique
User APP (mobile phone application software) search current address it is available hire a car shops when, pass through city and current position The longitude and latitude of location screens the shops that hires a car that can be shown.Hire a car shops service range due to the limitations such as road, landform may It is irregular polygon, and there are multiple service areas such as 2 kilometers of service areas, 3 kilometers of service areas, chargeable service area in a shops Domain, so it is a more complicated algorithm that whether the longitude and latitude for calculating an address, which falls into the service range for the shops that hires a car, meter Calculation amount is bigger.City is as screening conditions, and preliminary screening goes out to belong to the shops in the city from database, then calculates separately Whether the longitude and latitude of address falls into the service range of these shops that hire a car, and the shops that hires a car that can be shown, system are just selected in if being The shops that hires a car that these can show can be pushed in APP to user.
There are many shops that hires a car in one city, and spread over each position in city, by city orientation to hire a car Shops can be more, causes the calculation amount in later period larger;The shops that hires a car near the longitude and latitude of current address is likely to appear in Another city, this shops that hires a car can be filtered because the city is not belonging to.Hiring a car, there may be multiple services for shops Range, needs whether the current address for judging user respectively is included in service range, and data calculation amount is more.Therefore, this The strategy for screening the shops that hires a car might have redundancy, may omit the shops that hires a car again sometimes, and computationally intensive, search for user Used time is longer, and Experience Degree is poor.
Summary of the invention
The technical problem to be solved by the present invention is in order to overcome, screened in the prior art using city and longitude and latitude can be with The shops that hires a car shown have the defects that it is computationally intensive, may have redundancy that may omit again to hire a car shops, one kind is provided and is hired a car door The screening technique and system in shop.
The present invention is to solve above-mentioned technical problem by following technical proposals:
The present invention provides a kind of screening technique of shops that hires a car, the screening technique the following steps are included:
Receive the request of hiring a car of user;
Obtain the address of the user;
Process is judged using first and/or second judges that process finds out the door of hiring a car to match with the address of the user Shop;
Wherein, described first judges that process includes:
The address of multiple shops that hire a car in database is successively obtained, the address based on the shops that hires a car generates the shops that hires a car First square region of service covering is provided;
Judge whether the address of the user falls into first square region, if then determining first square region It is corresponding described to hire a car shops and the address of the user matches;
Described second judges that process includes:
Address based on the user generates the second square region that user needs to service covering;
Successively obtain the address of multiple shops that hire a car in database;
Whether hire a car described in the judgement address of shops falls into second square region, if hiring a car shops described in then determining Match with the address of the user.
Preferably, the address based on the shops that hires a car generate first square region the following steps are included:
It hires a car described in acquisition multiple coverages of shops;
Hire a car described in acquisition shops each coverage longitude and latitude range, the longitude and latitude from all coverages It spends in range and obtains maximum longitude, minimum longitude, maximum latitude value and minimum latitude value, by the maximum longitude, institute State the maximum longitude, most of minimum longitude, the maximum latitude value and the minimum latitude value as first square region Small longitude, maximum latitude and minimum latitude, so that it is determined that first square region.
Preferably, the address based on the user generate second square region the following steps are included:
Choose a length;
Second square region is the point centered on the address of the user, is the one of side length with twice of the length Square area.
Preferably, the address for judging the user includes: the step of whether falling into first square region
Obtain the longitude coordinate and latitude coordinate of the address of the user;
Judge whether the longitude coordinate of the address of the user falls into the minimum longitude and maximum of first square region Between longitude, and judge whether the latitude coordinate of the station address falls into the minimum latitude and most of first square region Between big latitude, the address of the determining user falls into first square region if being to be if judgement.
Preferably, the address for the shops that hires a car described in the judgement includes: the step of whether falling into second square region
Hire a car described in acquisition shops address longitude coordinate and latitude coordinate;
Hire a car described in judgement shops address longitude coordinate whether fall into second square region minimum longitude and Whether the latitude coordinate of shops address of hiring a car between maximum longitude, and described in judgement falls into the minimum of second square region Between latitude and maximum latitude, the address of the determining shops that hires a car falls into second square region if being to be if judgement.
Preferably, the screening technique further include:
Successively obtain multiple coverages of the shops that hires a car to match with the address of the user;
Whether the address for calculating the user falls into any one of the shops that hires a car to match with the address of the user In coverage, if the shops that then hires a car described in push is to the user.
The present invention also provides a kind of screening systems of shops that hires a car, real using the screening technique of the shops that hires a car Existing, the screening system of the shops that hires a car includes request receiving module, station address obtains module, shops address of hiring a car obtains mould Block, judgment module;
The request receiving module is used to receive the request of hiring a car of user;
The station address obtains the address that module is used to obtain the user;
Shops's address acquisition module of hiring a car is for obtaining the address for the shops that hires a car;
The judgment module judges process using first and/or second judges that process finds out the address phase with the user The matched shops that hires a car;
Wherein, using described first judge process search with the address of the user match hire a car shops when, it is described Judgment module includes the first rectangular Area generation submodule and station address judging submodule;First rectangular Area generation Module generates the shops that hires a car for the address based on the shops that hires a car and provides the first square region of service covering;The user Address judging submodule is for judging whether the address of the user falls into first square region, if the then first party Shape region is corresponding described to hire a car shops and the address of the user matches;
Wherein, using described second judge process search with the address of the user match hire a car shops when, it is described Judgment module includes the second rectangular Area generation submodule and shops's address judging submodule of hiring a car;Second square region is raw The second square region that user needs to service covering is generated for the address based on the user at submodule;The shops that hires a car Address judging submodule is used to judge whether the address of the shops that hires a car to fall into second square region, if the then rent Car door shop and the address of the user match.
Preferably, the first rectangular Area generation submodule includes hire a car shops's coverage acquisition submodule and first Square region determines submodule;
Shops's coverage acquisition submodule of hiring a car is used to obtain the multiple coverages for the shops that hires a car;
First square region determines the longitude and latitude range of each coverage of the submodule for obtaining the shops that hires a car, Maximum longitude, minimum longitude, maximum latitude value and minimum are obtained from the longitude and latitude range of all coverages Latitude value, using the maximum longitude, the minimum longitude, the maximum latitude value and the minimum latitude value as described in The maximum longitude of first square region, minimum longitude, maximum latitude and minimum latitude, so that it is determined that first square region.
Preferably, the second rectangular Area generation submodule includes that length selection submodule and the second square region determine Submodule;
The length chooses submodule for choosing a length;
Second square region determines submodule point centered on the address of the user, is for twice with the length Side length determines a square area as the second square region.
Preferably, the station address judging submodule includes station address longitude and latitude acquisition submodule and user's longitude and latitude Judging submodule;
The station address longitude and latitude acquisition submodule is used to obtain the longitude coordinate and latitude coordinate of the address of user;
User's longitude and latitude judging submodule is for judging it is described whether the longitude coordinate of the address of the user falls into Between the minimum longitude of first square region and maximum longitude, and judge whether the latitude coordinate of the station address falls into institute Between the maximum latitude for stating the minimum latitude of the first square region, the address of the user falls into described the if being to be if judgement One square region.
Preferably, shops's address judging submodule of hiring a car includes hire a car shops's address longitude and latitude acquisition submodule and rent Car door shop longitude and latitude judging submodule;
The longitude coordinate and latitude of address of the shops's address longitude and latitude acquisition submodule of hiring a car for obtaining the shops that hires a car Spend coordinate;
Whether the longitude coordinate of address of the shops's longitude and latitude judging submodule of hiring a car for judging the shops that hires a car It falls between the minimum longitude of second square region and maximum longitude, and the latitude for shops address of hiring a car described in judgement is sat Whether mark falls between the minimum latitude of second square region and maximum latitude, the shops that hires a car if being to be if judgement Address fall into second square region.
Preferably, the screening system of the shops that hires a car further includes computing module;The computing module includes the shops that hires a car Coverage acquisition submodule, coverage computational submodule and push submodule;
Shops's coverage acquisition submodule of hiring a car is for successively obtaining the rent to match with the address of the user Multiple coverages in car door shop;
Whether the address that the coverage computational submodule is used to calculate the user falls into the address with the user In any one coverage of the shops that hires a car to match, if then hiring a car shops to institute described in the push submodule push State user.
The positive effect of the present invention is that: the address of user is only used, whether falls into one using the longitude and latitude of address The simple algorithm of a square region quickly filters out the shops's list to match with station address, reduces the shops's redundancy inquired Amount, reduces whether calculative station address falls into complicated calculations amount as the service range of shops of hiring a car, improves and look into Ask efficiency;And due to not using city as screening conditions, so the present invention can support across city inquiry, support domestic and international Or even the range query of Global Regional.
Detailed description of the invention
Fig. 1 is the flow chart of the screening technique of the shops that hires a car of the embodiment of the present invention 1.
Fig. 2 is the first rectangular area schematic of the screening technique of the shops that hires a car of the embodiment of the present invention 1.
Fig. 3 is the sub-process figure of the step S32 of the screening technique of the shops that hires a car of the embodiment of the present invention 1.
Fig. 4 is the sub-process figure of the step S33 of the screening technique of the shops that hires a car of the embodiment of the present invention 1.
Fig. 5 is the flow chart of the screening technique of the shops that hires a car of the embodiment of the present invention 2.
Fig. 6 is the sub-process figure of the step S35 of the screening technique of the shops that hires a car of the embodiment of the present invention 2.
Fig. 7 is the sub-process figure of the step S37 of the screening technique of the shops that hires a car of the embodiment of the present invention 2.
Fig. 8 is the second rectangular area schematic of the screening technique of the shops that hires a car of the embodiment of the present invention 2.
Fig. 9 is the flow chart of the screening technique of the shops that hires a car of the embodiment of the present invention 3.
Figure 10 is the system structure diagram of the screening system of the shops that hires a car of the embodiment of the present invention 4.
Figure 11 is the module of the first rectangular Area generation submodule of the screening system of the shops that hires a car of the embodiment of the present invention 4 Structural schematic diagram.
Figure 12 is the modular structure of the station address judging submodule of the screening system of the shops that hires a car of the embodiment of the present invention 4 Schematic diagram.
Figure 13 is the system structure diagram of the screening system of the shops that hires a car of the embodiment of the present invention 5.
Figure 14 is the module of the second rectangular Area generation submodule of the screening system of the shops that hires a car of the embodiment of the present invention 5 Structural schematic diagram.
Figure 15 is the module of shops's address judging submodule of hiring a car of the screening system of the shops that hires a car of the embodiment of the present invention 5 Structural schematic diagram.
Figure 16 is the system structure diagram of the screening system of the shops that hires a car of the embodiment of the present invention 6.
Specific embodiment
The present invention is further illustrated below by the mode of embodiment, but does not therefore limit the present invention to the reality It applies among a range.
Embodiment 1
A kind of screening technique of shops that hires a car is present embodiments provided, as shown in Figure 1, the screening technique for the shops that hires a car includes Following steps:
S1, the request of hiring a car for receiving user.
When user needs to rent vehicle, the available shops that hires a car of current address is searched in APP, system receives the rent of user Vehicle request, and carry out subsequent processing.
S2, the address for obtaining user.
Hiring a car when requesting for user is received, the current address for receiving user is synchronized.
S3, judge that process finds out the shops that hires a car to match with the address of user using first.
It includes following step that wherein step S3, which judges that process searches the shops that hires a car to match with the address of user using first, It is rapid:
S31, the address for obtaining the shops that hires a car in database.
First judges all shops that hire a car in requirements of process ergodic data library, hires a car in database so circulation successively obtains The address of shops.
S32, the address based on the shops that hires a car generate the shops that hires a car and provide the first square region of service covering.
There are multiple coverages such as 2 kilometers of service areas, 3 kilometers of service areas, chargeable service area in the shops that hires a car in APP, and And these coverages are since the limitations such as road, landform may be irregular polygon, 1 He of coverage as shown in Figure 2 Coverage 2, X-axis represents longitude in figure, and Y-axis represents latitude.It is irregular more whether the address of directly calculating user falls into these The service range of side shape composition, algorithm is complicated and calculation amount is huge, thus the shops that hires a car address surrounding mark one it is rectangular Region takes the extreme value of the longitude and latitude of each coverage for the shops that hires a car, such as the minimum longitude of the midpoint Fig. 2 A, the minimum latitude of point B First square region of the maximum latitude composition of degree, the maximum longitude of point C and point D, so that it may rapidly filter out the ground of user Location is located at the shops that hires a car in the first square region of the shops that hires a car.
As shown in figure 3, the step S32 for generating the first square region includes the following steps:
S321, the multiple coverages for obtaining the shops that hires a car;
The hire a car coverage of shops is stored in database, needs the used time that can directly read from database.
S322, acquisition hire a car shops each coverage longitude and latitude range, the longitude and latitude from all coverages Maximum longitude, minimum longitude, maximum latitude value and minimum latitude value are obtained in range, by the maximum longitude, described Minimum longitude, the maximum latitude value and the minimum latitude value as the maximum longitude of the first square region, minimum longitude, Maximum latitude and minimum latitude, so that it is determined that the first square region.
In practical operation, in order to reduce the user query time, step S32 generates the shops that hires a car based on the address for the shops that hires a car The first square region for providing service covering can be fulfiled ahead of schedule by system.One timed task of default, timing acquisition data The address of all shops that hire a car in library generates corresponding first square region in address for the shops that hires a car, and database is stored in, in user The inquiry used time can be greatly reduced when inquiry.
S33, judge whether the address of user falls into the first square region, if the then corresponding door of hiring a car of the first square region Shop and the address of user match;
The algorithm comparison for judging whether an address falls into a square region is simple, for example determines the warp of lower square region Maximum value and minimum value, latitude maximum value and minimum value are spent, as long as comparing then carrying out two simple numberical ranges, i.e. address Longitude whether fall between the longitude maximum value of square region and minimum value and whether the latitude of address falls into square region Between latitude maximum value and minimum value, when determining all to be it is determined that the address falls into the square region.Numeric ratio Fast compared with arithmetic speed in a computer, shops's progress of hiring a car in ergodic data library is such shorter than relatively time-consuming, can filter out Closest to shops's list of hiring a car of service can be provided for station address, greatly reduces to accurately calculate station address and whether fall into and hire a car The calculation amount of shops's service range improves arithmetic speed.
As shown in figure 4, judging whether station address falls into the step 33 of the first square region and include the following steps:
S331, the longitude coordinate and latitude coordinate for obtaining station address;
Receive user hire a car request when in the station address received obtain station address longitude coordinate and latitude Spend coordinate.Then it respectively enters step S3321 and step S3322 is judged.
S3321, judge whether the longitude coordinate of station address falls into the minimum longitude and maximum longitude of the first square region Between, the longitude coordinate of station address meets the requirements when the judgment is yes.
S3322, judge whether the latitude coordinate of station address falls into the minimum latitude and maximum latitude of the first square region Between, the latitude coordinate of station address meets the requirements when the judgment is yes.
S333, when step S3321 and step S3322 is judged as YES, i.e., when the longitude coordinate of station address and latitude When coordinate meets the requirements, it is determined that the address of the user falls into the first square region, i.e., the first square region is corresponding hires a car Shops and the address of the user match, which is added in the shops's list of hiring a car to match with the address of user.
First judges process S3 by abovementioned steps, has judged whether the shops that hires a car matches with the address of user, Enter step S34:
Whether S34, the shops that judges to hire a car in database have arrived last one, if otherwise return step S31 continues to execute step Rapid S31~S34, until hiring a car in database, the last one shops, shops is finished, if then continuing to execute step S4.
After the shops's list of hiring a car to match with the address of user has been determined, the present embodiment, which continues to execute, calculates step S4, Wherein S4 the following steps are included:
The multiple coverages for the shops that hires a car that S41, acquisition and the address of user match;
It hires a car in shops's list basis what step S1~S3 was obtained with what station address matched, needs successively to judge to use Whether the address at family falls into list any one coverage for the shops that each hires a car, so needing to be traversed for and station address phase Matched shops's list of hiring a car.Here hire a car multiple coverages of shops are exactly foregoing multiple irregular polygon Shape.
S42, calculate user address whether fall into and hire a car shops any one coverage in, if so then execute step Rapid S43, thens follow the steps S44 if not.
Calculating address and whether falling into an irregular polygon is a mature algorithm, can be called directly, still This calculating process is more complicated, takes a long time, so needing to be screened by step S3, reduces need using this as far as possible The calculating process of algorithm improves search efficiency.
If S43, then push hires a car shops to user.
Station address falls into any one coverage for the shops that hires a car, then this is hired a car, shops can be pushed to use Family, with for reference.
Whether the shops that hires a car in shops's list that S44, judgement and station address matched hire a car has arrived last one, if not Then return step S41 continues to execute step S41~S44, until last in the shops's list of hiring a car to match with station address A shops is finished, if then terminating process.
The present embodiment sends the address that request of hiring a car only uses user in user, whether falls into one using the longitude and latitude of address The simple algorithm of a square region quickly filters out the shops's list of hiring a car to match with the address of user, reduces the door inquired Shop amount of redundancy, reduces whether calculative station address falls into complicated calculations amount as the service range of shops of hiring a car, and mentions High search efficiency.And due to the address for only using user, city is not used as screening conditions, so the present embodiment can To support across city inquiry, domestic and international or even Global Regional range query is supported.
Embodiment 2
The present embodiment provides a kind of screening techniques of shops that hires a car, as shown in figure 5, step S1, S2 and S4 of the present embodiment Identical as the corresponding steps of embodiment 1, difference is to judge that process searches the address phase with user using second in step s3 The matched shops that hires a car.
In step S3 using second judge process search with the address of user match hire a car shops the following steps are included:
S35, the address based on user generate the second square region that user needs to service covering;
As shown in fig. 6, the step S35 for generating the second square region includes the following steps:
S351, a length is chosen;
A suitable length, such as 5 kilometers are chosen, which defines the size that user needs to service the region of covering.
S352, the second square region are the points centered on station address, with twice of the length of selection for side length one just Square region, as shown in figure 8, X-axis represents longitude, Y-axis represents latitude, the point centered on station address, with the length of selection Twice is the second square region for the square area of side length.
S36, the address for successively obtaining multiple shops that hire a car in database;
Second judges all shops that hire a car in requirements of process ergodic data library, hires a car in database so circulation successively obtains The address of shops.
Whether the hire a car address of shops S37, judgement falls into the second square region, if then hire a car shops and the ground of user Location matches.
As previously mentioned, the algorithm comparison for judging whether an address falls into a square region is simple.As shown in fig. 7, sentencing The step the S37 whether address of the disconnected shops that hires a car falls into the second square region includes the following steps:
S371, acquisition hire a car shops address longitude coordinate and latitude coordinate;
The shops address of hiring a car stored in the database includes the hire a car longitude coordinate and latitude coordinate of shops address, directly Acquisition.Then it respectively enters step S3721 and step S3722 is judged.
Whether the hire a car longitude coordinate of shops address of S3721, judgement falls into the minimum longitude and maximum of the second square region Between longitude, the longitude coordinate of the address for the shops that hires a car when the judgment is yes meets the requirements.
Whether the hire a car latitude coordinate of shops address of S3722, judgement falls into the minimum latitude and maximum of the second square region Between latitude, the latitude coordinate of the address for the shops that hires a car when the judgment is yes meets the requirements.
S373, when step S3721 and step S3722 is judged as YES, i.e., the longitude coordinate of the address for the shops that ought hire a car When meeting the requirements with latitude coordinate, determine that the address of the shops that hires a car falls into the second square region, i.e. hire a car shops and this The address of user matches, which is added in the shops's list of hiring a car to match with the address of user.As shown in Figure 8 Shops 1 and shops 2 match with the address of the user, and shops 3 does not fall within the second square region then, not with the user's Address matches, then shops 1 and shops 2 is added in the shops's list of hiring a car to match with the address of user.
Second judges process S3 by abovementioned steps, has judged whether the shops that hires a car matches with the address of user, Enter step S38:
Whether S38, the shops that judges to hire a car in database have arrived last one, if otherwise return step S35 continues to execute step Rapid S35~S38, until hiring a car in database, the last one shops, shops is finished.
After step S3 second judges that process finds out the shops's list of hiring a car to match with the address of user, using Whether the address that step S4 as described in Example 1 calculates user falls into list the service range for the shops that each hires a car, such as It is to be pushed to user, as otherwise continued next shops that hires a car in calculations list, matches until the address with user Shops's list of hiring a car reaches the last one, terminates process.
The present embodiment sends the address that request of hiring a car only uses user in user, whether falls into one using the longitude and latitude of address The simple algorithm of a square region quickly filters out the shops's list of hiring a car to match with station address, reduces the shops inquired Amount of redundancy, reduces whether calculative station address falls into complicated calculations amount as the service range of shops of hiring a car, and improves Search efficiency.And due to the address for only using user, city is not used as screening conditions, so the present embodiment can be with It supports across city inquiry, supports domestic and international or even Global Regional range query.
Embodiment 3
The present embodiment is that embodiment 1 and embodiment 2 merge, as shown in figure 9, the screening of the shops that hires a car of the present embodiment Step S1, S2 and S4 that method includes are shown in the description of embodiment 1, use first to judge process and/or the second judgement in step S3 Process searches the shops that hires a car to match with the address of user, and wherein step S3 judges that process searches the ground with user using first The specific steps of what location matched hire a car shops are shown in embodiment 1, and step S3 judge that process is searched and the address of user using second The specific steps of the shops that hires a car to match are shown in embodiment 2.Judging to have in process a judgement result when two is yes, the then rent Car door shop just matches with the address of user.
The present embodiment sends the address that request of hiring a car only uses user in user, whether falls into a squared region using address The simple algorithm in domain quickly filters out the shops's list of hiring a car to match with station address, reduces the shops's amount of redundancy inquired, It reduces whether calculative station address falls into complicated calculations amount as the service range of shops of hiring a car, improves inquiry effect Rate.And due to the address for only using user, city is not used as screening conditions, so the present embodiment can be supported across city Domestic and international or even Global Regional range query is supported in inquiry.
Embodiment 4
The present embodiment provides a kind of screening systems of shops that hires a car, and as shown in Figure 10, the screening system for the shops that hires a car includes Request receiving module 1, station address obtain module 2, shops's address acquisition module 3 of hiring a car, judgment module 4 and computing module 5.
Request receiving module 1 is used to receive the request of hiring a car of user;When user needs to rent vehicle, searches for and work as in APP The available shops that hires a car of preceding address, request receiving module 1 receive the request of hiring a car of user.
Station address obtains the address that module 2 is used to obtain user;Hiring a car when requesting for user is received, station address obtains Modulus block 2 is used to obtain the current address of user.
Shops's address acquisition module 3 of hiring a car is used to obtain the address for the shops that hires a car.
Judgment module 4 judges that process finds out the shops that hires a car to match with the address of user using first.
As shown in Figure 10, judgment module 4 further includes that the first rectangular Area generation submodule 41 and station address judge submodule Block 42.First rectangular Area generation submodule 41 generates the shops that hires a car for the address based on the shops that hires a car and provides service covering First square region;Station address judging submodule 42 for judging whether the address of user falls into the first square region, if Then the address of the first square region corresponding hire a car shops and user matches.
Judgment module 4 needs to be traversed for all shops that hire a car in database, so circulation successively calls shops address of hiring a car to obtain Modulus block 3 obtains the address of the shops that hires a car currently compared.
Address based on the shops that hires a car generates the shops that hires a car with can be convenient using the first rectangular Area generation submodule 41 First square region of service covering is provided.As shown in figure 11, the first rectangular Area generation submodule 41 includes shops's clothes of hiring a car Business region acquisition submodule 411 and the first square region determine submodule 412.It hires a car shops's coverage acquisition submodule 411 The coverage for the shops that hires a car is obtained from database, the first square region determines that submodule 412 obtains each of the shops that hires a car The longitude and latitude range of coverage, obtained from the longitude and latitude range of all coverages maximum longitude, minimum longitude, Maximum latitude value and minimum latitude value, by the maximum longitude, the minimum longitude, the maximum latitude value and it is described most Small latitude value is as the maximum longitude of the first square region, minimum longitude, maximum latitude and minimum latitude, so that it is determined that first party Shape region.
In practical operation, in order to reduce the user query time, system can set a timed task, and timing calling first is rectangular Area generation submodule 41 obtains the address of all shops that hire a car in database, generates the address corresponding first for the shops that hires a car Square region is stored in database, can greatly reduce the inquiry used time in user query.
As shown in figure 12, station address judging submodule 42 includes station address longitude and latitude acquisition submodule 421 and user Longitude and latitude judging submodule 422.Receive user hire a car request when station address longitude and latitude acquisition submodule 421 obtain user The longitude coordinate and latitude coordinate of address.User's longitude and latitude judging submodule 422 judge the address of user longitude coordinate whether It falls between the minimum longitude of the first square region and maximum longitude, and judges whether the latitude coordinate of the address of user falls into Between the minimum latitude of first square region and maximum latitude, when two judgements are to be, determine that the address of the user is fallen into First square region, i.e. the first square region be corresponding to hire a car shops and the address of the user matches, which is added Enter in the shops's list of hiring a car to match with the address of user.
Computing module 5 includes hire a car shops's coverage acquisition submodule 51, coverage computational submodule 52 and push Submodule 53.
Shops's coverage acquisition submodule 51 of hiring a car is for successively obtaining the shops that hires a car to match with the address of user Multiple coverages;It hires a car in shops's list basis obtain matching with station address, needs successively to judge user's Whether address falls into list any one coverage for the shops that each hires a car, and matches so needing to be traversed for station address Shops's list of hiring a car.Here hire a car multiple coverages of shops are exactly foregoing multiple irregular polygons.
Whether the address that coverage computational submodule 52 is used to calculate user falls into the rent to match with the address of user In any one coverage in car door shop, if then the shops that hires a car is exactly the shops that hires a car that can be shown.Calculating address is No to fall into an irregular polygon be a mature algorithm, can be called directly, but this calculating process is more multiple It is miscellaneous, it takes a long time, so needing to reduce the calculating process needed using this algorithm as far as possible by screening, to improve inquiry effect Rate.
Push submodule 53 pushes the shops that hires a car that can be shown to user.Station address falls into any one of the shops that hires a car A coverage, then this is hired a car, shops is exactly the shops that hires a car that can be shown, which is pushed to by push submodule 53 User, with for reference.
The present embodiment sends the address that request of hiring a car only uses user in user, whether falls into one using the longitude and latitude of address The simple algorithm of a square region quickly filters out the shops's list of hiring a car to match with station address, reduces the shops inquired Amount of redundancy, reduces whether calculative station address falls into complicated calculations amount as the service range of shops of hiring a car, and improves Search efficiency.And due to the address for only using user, city is not used as screening conditions, so the present embodiment can be with It supports across city inquiry, supports domestic and international or even Global Regional range query.
Embodiment 5
The present embodiment provides a kind of screening systems of shops that hires a car, and as shown in figure 13, the screening system of the present embodiment includes Request receiving module 1, station address obtain module 2, shops's address acquisition module 3 of hiring a car, judgment module 4 and computing module 5.Its Middle request receiving module 1, station address obtain module 2, shops's address acquisition module 3 of hiring a car and computing module 5 with embodiment 4 Description.
Judgment module 4 judges that process finds out the shops that hires a car to match with the address of the user using second.Such as figure Shown in 13, judgment module 4 further includes the second rectangular Area generation submodule 43 and shops's address judging submodule 44 of hiring a car.Second Square region generates submodule 43 and generates the second square region that user needs to service covering for the address based on user;It hires a car Whether be used to judge the to hire a car address of shops of shops's address judging submodule 44 falls into the second square region, if the then door of hiring a car Shop and the address of user match.
Can be convenient generation user using the second rectangular Area generation submodule 43 based on the address of user needs service to cover Second square region of lid.As shown in figure 14, the second rectangular Area generation submodule 43 includes that length chooses submodule 431 and the Two square regions determine submodule 432.Length chooses submodule for choosing a suitable length, such as 5 kilometers, and the length is fixed Justice user needs to service the size in the region of covering.Second square region determines submodule 432 centered on the address of user Point determines a square area as the second square region using twice of the length of selection for side length.
Judgment module 4 needs to be traversed for all shops that hire a car in database, so circulation successively calls shops address of hiring a car to obtain Modulus block 3 obtains the address of the shops that hires a car currently compared.
As shown in figure 15, shops's address judging submodule 44 of hiring a car includes shops's address longitude and latitude acquisition submodule of hiring a car It 441 and hires a car shops's longitude and latitude judging submodule 442.Shops's address longitude and latitude of hiring a car when obtaining the address for the shops that hires a car obtains Submodule 441 obtains the longitude coordinate and latitude coordinate of the address for the shops that hires a car.Shops's longitude and latitude judging submodule 442 of hiring a car is sentenced Whether the longitude coordinate of the address of the disconnected shops that hires a car falls between the minimum longitude of the second square region and maximum longitude, and sentences Whether the latitude coordinate of disconnected shops address of hiring a car falls between the minimum latitude of the second square region and maximum latitude, if two are sentenced Disconnected is to be, then the address for the shops that determines to hire a car falls into the second square region, i.e. the address phase of the hire a car shops and the user Match, which is added in the shops's list of hiring a car to match with the address of user.
The present embodiment sends the address that request of hiring a car only uses user in user, whether falls into one using the longitude and latitude of address The simple algorithm of a square region quickly filters out the shops's list of hiring a car to match with station address, reduces the shops inquired Amount of redundancy, reduces whether calculative station address falls into complicated calculations amount as the service range of shops of hiring a car, and improves Search efficiency.And due to the address for only using user, city is not used as screening conditions, so the present embodiment can be with It supports across city inquiry, supports domestic and international or even Global Regional range query.
Embodiment 6
The present embodiment is made of embodiment 4 and embodiment 5 merge, as shown in figure 16, the screening system packet of the present embodiment Include request receiving module 1, station address obtains module 2, shops's address acquisition module 3 of hiring a car, judgment module 4 and computing module 5. Wherein request receiving module 1, station address obtain module 2, shops's address acquisition module 3 of hiring a car and computing module 5 with implementation The description of example 4.
Judgment module 4 judges process using first and/or second judges that process searches the rent to match with the address of user Car door shop.As shown in figure 16, judgment module 4 include the first rectangular Area generation submodule 41, station address judging submodule 42, Second rectangular Area generation submodule 43 and shops's address judging submodule 44 of hiring a car.First rectangular 41 He of Area generation submodule Station address judging submodule 42 judges that process searches the specific mistake of the shops that hires a car to match with the address of user using first Journey is shown in the description of embodiment 4.Second rectangular Area generation submodule 43 and shops's address judging submodule 44 of hiring a car utilize second Judge that the detailed process for the shops that hires a car that process is searched and the address of user matches is shown in the description of embodiment 5.
The present embodiment sends the address that request of hiring a car only uses user in user, whether falls into one using the longitude and latitude of address The simple algorithm of a square region quickly filters out the shops's list of hiring a car to match with station address, reduces the shops inquired Amount of redundancy, reduces whether calculative station address falls into complicated calculations amount as the service range of shops of hiring a car, and improves Search efficiency.And due to the address for only using user, city is not used as screening conditions, so the present embodiment can be with It supports across city inquiry, supports domestic and international or even Global Regional range query.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that this is only For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from Under the premise of the principle and substance of the present invention, many changes and modifications may be made, but these change and Modification each falls within protection scope of the present invention.

Claims (12)

1. a kind of screening technique for the shops that hires a car, which is characterized in that the screening technique of the shops that hires a car the following steps are included:
Receive the request of hiring a car of user;
Obtain the address of the user;
Process is judged using first and/or second judges that process finds out the shops that hires a car to match with the address of the user;
Wherein, described first judges that process includes:
The address of multiple shops that hire a car in database is successively obtained, the address based on the shops that hires a car generates shops's offer of hiring a car Service the first square region of covering;
Judge whether the address of the user falls into first square region, if then determining that first square region is corresponding Described hire a car shops and the address of the user matches;
Described second judges that process includes:
Address based on the user generates the second square region that user needs to service covering;
Successively obtain the address of multiple shops that hire a car in database;
Whether hire a car described in the judgement address of shops falls into second square region, if hiring a car shops and institute described in then determining The address for stating user matches.
2. the screening technique for the shops that hires a car as described in claim 1, which is characterized in that the ground based on the shops that hires a car Location generate first square region the following steps are included:
It hires a car described in acquisition multiple coverages of shops;
Hire a car described in acquisition shops each coverage longitude and latitude range, the longitude and latitude model from all coverages Enclose the maximum longitude of middle acquisition, minimum longitude, maximum latitude value and minimum latitude value, by the maximum longitude, it is described most Maximum longitude, the minimum warp of small longitude, the maximum latitude value and the minimum latitude value as first square region Degree, maximum latitude and minimum latitude, so that it is determined that first square region.
3. the screening technique for the shops that hires a car as described in claim 1, which is characterized in that the address based on the user is raw At second square region the following steps are included:
Choose a length;
Second square region is the point centered on the address of the user, is a pros of side length with twice of the length Shape region.
4. the screening technique for the shops that hires a car as claimed in claim 2, which is characterized in that the address of the judgement user is No the step of falling into first square region includes:
Obtain the longitude coordinate and latitude coordinate of the address of the user;
Judge whether the longitude coordinate of the address of the user falls into the minimum longitude and maximum longitude of first square region Between, and judge whether the latitude coordinate of the station address falls into the minimum latitude and maximum latitude of first square region Between degree, the address of the determining user falls into first square region if being to be if judgement.
5. the screening technique for the shops that hires a car as claimed in claim 3, which is characterized in that the ground for the shops that hires a car described in the judgement The step of whether location falls into second square region include:
Hire a car described in acquisition shops address longitude coordinate and latitude coordinate;
Whether the longitude coordinate of address of shops of hiring a car described in judgement falls into the minimum longitude and maximum of second square region Whether the latitude coordinate of shops address of hiring a car between longitude, and described in judgement falls into the minimum latitude of second square region Between maximum latitude, the address of the determining shops that hires a car falls into second square region if being to be if judgement.
6. the screening technique for the shops that hires a car as described in claim 4 or 5, which is characterized in that the screening technique further include:
Successively obtain multiple coverages of the shops that hires a car to match with the address of the user;
Whether the address for calculating the user falls into any one service of the shops that hires a car to match with the address of the user In region, if the shops that then hires a car described in push is to the user.
7. a kind of screening system for the shops that hires a car, which is characterized in that the screening system of the shops that hires a car includes that request receives mould Block, station address obtain module, hire a car shops's address acquisition module and judgment module;
The request receiving module is used to receive the request of hiring a car of user;
The station address obtains the address that module is used to obtain the user;
Shops's address acquisition module of hiring a car is for obtaining the address for the shops that hires a car;
The judgment module judges process using first and/or second judges that process is found out and match with the address of the user The shops that hires a car;
Wherein, using described first judge process search with the address of the user match hire a car shops when, the judgement Module includes the first rectangular Area generation submodule and station address judging submodule;The first rectangular Area generation submodule The shops that hires a car is generated for the address based on the shops that hires a car, and the first square region of service covering is provided;The station address Judging submodule is for judging whether the address of the user falls into first square region, if then first squared region Domain is corresponding described to hire a car shops and the address of the user matches;
Using described second judge process search with the address of the user match hire a car shops when, the judgment module packet Include the second rectangular Area generation submodule and shops's address judging submodule of hiring a car;The second rectangular Area generation submodule is used The second square region that user needs to service covering is generated in the address based on the user;Shops address judgement of hiring a car Module is used to judge whether the address of the shops that hires a car to fall into second square region, if then hire a car shops and the institute The address for stating user matches.
8. the screening system for the shops that hires a car as claimed in claim 7, which is characterized in that the first rectangular Area generation submodule Block includes hiring a car shops's coverage acquisition submodule and the first square region determines submodule;
Shops's coverage acquisition submodule of hiring a car is used to obtain the multiple coverages for the shops that hires a car;
First square region determines the longitude and latitude range of each coverage of the submodule for obtaining the shops that hires a car, from institute Maximum longitude, minimum longitude, maximum latitude value and minimum latitude are obtained in the longitude and latitude range for the coverage having Value, using the maximum longitude, the minimum longitude, the maximum latitude value and the minimum latitude value as described first The maximum longitude of square region, minimum longitude, maximum latitude and minimum latitude, so that it is determined that first square region.
9. the screening system for the shops that hires a car as claimed in claim 7, which is characterized in that the second rectangular Area generation submodule Block includes that length selection submodule and the second square region determine submodule;
The length chooses submodule for choosing a length;
Second square region determines submodule point centered on the address of the user, and twice with the length is side length Determine a square area as the second square region.
10. the screening system for the shops that hires a car as claimed in claim 8, which is characterized in that the station address judging submodule Including station address longitude and latitude acquisition submodule and user's longitude and latitude judging submodule;
The station address longitude and latitude acquisition submodule is used to obtain the longitude coordinate and latitude coordinate of the address of user;
User's longitude and latitude judging submodule is for judging whether the longitude coordinate of the address of the user falls into described first Between the minimum longitude of square region and maximum longitude, and judge whether the latitude coordinate of the station address falls into described the Between the minimum latitude of one square region and maximum latitude, the address of the user falls into the first party if being to be if judgement Shape region.
11. the screening system for the shops that hires a car as claimed in claim 9, which is characterized in that shops address judgement of hiring a car Module includes hire a car shops's address longitude and latitude acquisition submodule and shops's longitude and latitude judging submodule of hiring a car;
The longitude coordinate and latitude of address of the shops's address longitude and latitude acquisition submodule of hiring a car for obtaining the shops that hires a car are sat Mark;
Whether the longitude coordinate of address of the shops's longitude and latitude judging submodule of hiring a car for judging the shops that hires a car falls into The latitude coordinate of shops address of hiring a car between the minimum longitude of second square region and maximum longitude, and described in judgement is Between the no minimum latitude for falling into second square region and maximum latitude, the ground of the shops that hires a car if being to be if judgement Location falls into second square region.
12. the screening system of the shops as described in claim 10 or 11 that hires a car, which is characterized in that the screening system further includes Computing module;The computing module includes hire a car shops's coverage acquisition submodule, coverage computational submodule and push Submodule;
Shops's coverage acquisition submodule of hiring a car is for successively obtaining the door of hiring a car to match with the address of the user Multiple coverages in shop;
Whether the address that the coverage computational submodule is also used to calculate the user falls into the address phase with the user In any one coverage of the matched shops that hires a car, if the shops that then hires a car described in push submodule push is to described User.
CN201910700682.XA 2019-07-31 2019-07-31 It hires a car the screening technique and system of shops Pending CN110415038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910700682.XA CN110415038A (en) 2019-07-31 2019-07-31 It hires a car the screening technique and system of shops

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910700682.XA CN110415038A (en) 2019-07-31 2019-07-31 It hires a car the screening technique and system of shops

Publications (1)

Publication Number Publication Date
CN110415038A true CN110415038A (en) 2019-11-05

Family

ID=68364550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910700682.XA Pending CN110415038A (en) 2019-07-31 2019-07-31 It hires a car the screening technique and system of shops

Country Status (1)

Country Link
CN (1) CN110415038A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508649A (en) * 2020-12-11 2021-03-16 北京首汽智行科技有限公司 Recommendation method for vehicle rental commercial tenants

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393293B1 (en) * 2000-01-21 2002-05-21 Motorola, Inc. Method for rectangular parameterization of a geographic area using a geolocation algorithm
CN103279877A (en) * 2013-05-06 2013-09-04 曾锃 Commercial tenant information searching and ranking method
CN104462263A (en) * 2014-11-21 2015-03-25 厦门雅迅网络股份有限公司 Method for searching for stores by means of database indexes
CN104462155A (en) * 2013-09-25 2015-03-25 高德软件有限公司 Point-of-interest set membership establishing method and device
CN107330761A (en) * 2017-06-29 2017-11-07 北京三快在线科技有限公司 Method for providing service information and device and computing device based on geographical position

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393293B1 (en) * 2000-01-21 2002-05-21 Motorola, Inc. Method for rectangular parameterization of a geographic area using a geolocation algorithm
CN103279877A (en) * 2013-05-06 2013-09-04 曾锃 Commercial tenant information searching and ranking method
CN104462155A (en) * 2013-09-25 2015-03-25 高德软件有限公司 Point-of-interest set membership establishing method and device
CN104462263A (en) * 2014-11-21 2015-03-25 厦门雅迅网络股份有限公司 Method for searching for stores by means of database indexes
CN107330761A (en) * 2017-06-29 2017-11-07 北京三快在线科技有限公司 Method for providing service information and device and computing device based on geographical position

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508649A (en) * 2020-12-11 2021-03-16 北京首汽智行科技有限公司 Recommendation method for vehicle rental commercial tenants
CN112508649B (en) * 2020-12-11 2024-03-15 北京首汽智行科技有限公司 Recommendation method for vehicle leasing merchant

Similar Documents

Publication Publication Date Title
CN105677793B (en) The recommended method and device of the foundation of locality database and candidate pick-up point
US6208935B1 (en) Map application system
US6741987B2 (en) Preference learning apparatus, preference learning system, preference learning method, and recording medium
CN107864007A (en) The Duo Xingduo earth stations resources co-allocation management method of facing area target
US20020055926A1 (en) Open platform information on universal maps
CN104199891B (en) Data processing method and device for thermodynamic chart
US20050071568A1 (en) Information terminals, information sharing method and P2P system and point system using the same
CN106506451B (en) The processing method and processing device of malicious access
CN103826299B (en) The indoor augmented reality implementation method perceived based on wireless signal
CN103631888B (en) Multi-data source data searching method and device based on positions
CN105893565A (en) Method and device for establishing a three-dimensional map database and transmitting three-dimensional map data
CN109934892A (en) Inertial navigation motion profile method for drafting, device and computer equipment
CN110461037B (en) Dynamic gridding network RTK positioning method and system
CN105975627A (en) Room choosing method and device
CN104636457B (en) A kind of method and device of location finding cognition
CN106131931A (en) A kind of network selecting method, Apparatus and system
CN108399460A (en) Network about vehicle Order splitting processing method and server
CN113347275A (en) Edge node scheduling method and system based on geographic coordinates of user terminal
CN110415038A (en) It hires a car the screening technique and system of shops
CN110263022A (en) Hotel's data matching method and device
CN106886592A (en) A kind of city space-time data collecting system and method based on data source service
CN106972959A (en) A kind of online service method and system of sensing algorithm
CN109102093A (en) The determination method, apparatus and electronic equipment of single hot spot region under a kind of net about vehicle
CN107809451A (en) A kind of capacity information processing method and processing device
CN101469986B (en) Automatic point search system and method for fuzzy boundary

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191105