More demand libraries navigation system and method based on database
Technical field
The present invention relates to library's navigation field, specifically a kind of more demand libraries navigation system based on database and
Method.
Background technique
Library is to collect, arrange, collecting books and reference materials for the mechanism of people's reading, reference, can be society, be reader
Most complete condition for study is provided, often goes Library Reading books that can not only improve the utilization rate of public resource, Er Qieneng
Enough enrich our the scope of one's knowledge, our structure of knowledge is improved in we the open visual field.With economic fast development and country
Attention to public library, each place establish more and more libraries.Although there are many books inside library,
It is that books inside some libraries are not complete, not all library is owned by the books that reader wants reading,
Want when reader is desired in some library while borrowing more books and urgently to borrow a certain therein, but should
Library but lacks that this book that the reader urgently wants, and is easy to have hit the confidence that reader borrows books, reader is also
It needs to go to other libraries to go to borrow that this book, reduces the efficiency for borrowing books of reader.
Summary of the invention
The purpose of the present invention is to provide a kind of more demand libraries navigation system and method based on database, to solve
The problems of the prior art.
To achieve the above object, the invention provides the following technical scheme:
A kind of more demand libraries navigation system based on database, the navigation system includes library's searching module, books
Module and Route Generation module are chosen in shop, and library's searching module, which is used to search out, meets locality condition and distance condition
All libraries, the library choose module and are used to determine most preferably from all libraries that library's searching module searches out
Library, the Route Generation module are used to be generated to the route in best library on the electronic map.
In the above-mentioned technical solutions, comprehensively consider the traffic that reader needs to borrow the urgency of books, reader's selection
Tool and library and set out the distance between location and library are chosen best library for reader and are generated to most
The route in good library can borrow urgently desired books convenient for reader.
Library's searching module includes position input module, distance input module and library's search module, described
Position input module is used to input the position in the location of setting out for going to best library, and the distance input module is for inputting
The limiting distance in the best library chosen and location of setting out, library's search module were used in the week for setting out location
All libraries in search limiting distance are enclosed, it includes that candidate library chooses module and best figure that the library, which chooses module,
Module is chosen in book shop, and the candidate library chooses module for filtering out in the library that library's search module searches out
Candidate library, the best library choose module for selecting best library from candidate library.
It chooses module and includes library statistics module, check books input module, check that books are searched in the candidate library
Rope module checks that module, the library statistics are assert by books statistical module, the first sorting module of library and candidate library
The number in all libraries that module is searched out for Statistical Library's search module, it is described to check books input module for defeated
Enter reader the books in need borrowed title, it is described check book search module for library's search module search for
Search needs the books borrowed in all libraries out, described to check books statistical module for Statistical Library's search module
This number of the books that some need is borrowed is gathered around in each library searched out, first sorting module of library is used for basis
All libraries for checking that the statistical result of books statistical module searches out library's search module are ranked up, the candidate
Assert that module is used to filter out candidate library according to library statistics module or library's sorting module in library.
It includes books judgment module, vehicles input module, books urgency power that the best library, which chooses module,
It is worth input module, collected books assessed value computing module, the second sorting module of library, distance and obtains module, the calculating of comprehensive assessment value
Module is assert in module, library's third sorting module and best library, and the books judgment module is for judging candidate books
Whether shop possesses all books for needing to check, the vehicles input module is for inputting where the estimated follow of reader
The traffic in ground to best library is total to group, and the books urgency weight input module is used to input the weight for needing the books borrowed
The property wanted degree, the collected books assessed value computing module are used to be calculated according to the input results of books urgency weight input module and wait
The collected books assessed value in library is selected, second sorting module of library is used for the calculating knot according to collected books assessed value computing module
Fruit is ranked up candidate library, and the distance obtains module and is used to obtain candidate library at a distance from location of setting out,
The comprehensive assessment value computing module obtains calculating for the distance that module obtains and the assessed value computing module that collects books according to distance
Collected books assessed value calculates the comprehensive assessment value in candidate library, and library's third sorting module is used for according to comprehensive assessment
The calculated result of value computing module is ranked up candidate library, and the best library assert module for being sentenced according to books
The result of disconnected module or the second sorting module of library or third library sorting module chooses best library.
A kind of more demand libraries air navigation aid based on database, library's air navigation aid the following steps are included:
S1: library is searched;
S2: candidate library is filtered out;
S3: best library is determined;
S4: on the electronic map generate set out location to best library itinerary map.
Library's air navigation aid further includes steps of
S1: it searches library: inputting location of setting out on the electronic map, electronic map is searched for centered on location of setting out,
It is less than or equal to all libraries of definite value R (0 < R≤30, unit are km) with location distance of setting out, remembers and search out
The number in all libraries is M, and M is natural number;
S2: candidate library is filtered out:
If number M=0 in all libraries searched out, return step S11;
If M≤3, all libraries that default search goes out are candidate library;
If M > 3, input the books A1, A2 for needing to borrow ..., Am, m is this number of books that reader needs to borrow, and is being searched
Search needs the books borrowed in all libraries that rope goes out, and counts the sheet that the books that some need is borrowed are gathered around in each library
Number n needs this number for the books borrowed to sort according to sequence from big to small for possessing in each library, and taking sequence, first three is a
Library be candidate library,
S3: best library is determined;
S4: on the electronic map generate set out location to best library itinerary map.
The best library of determination in the step S3 further comprises:
Search needs the books borrowed in all libraries searched out, possesses needs in each candidate library of acquisition and borrows
Books this number n, if the candidate library is best library, more if it exists there is only the n=m in a candidate library
N=the m in a candidate library, then distance sets out the nearest library in location as best library
N=the m in candidate library if it does not exist, then reader selects type of vehicle and input to need to borrow books A1,
A2 ..., urgency weight B1, B2 of Am ..., Bm ,+Bm=1 B1+B2+ ..., the vehicles include quickly the trip vehicles and
It goes on a journey at a slow speed the vehicles, the urgency for the books that reader is needed to borrow assigns weight, and reader is preferentially borrowed
The urgent books for wanting reading are read, the borrowing efficiency of reader is improved.
If urgency weight corresponding to the books that each candidate's library gathered around some need is borrowed respectively [D11,
D12 ..., D1i], [D21, D22 ..., D2g], [D21, D22 ..., D2h], i, g, h are respectively each candidate library collection
This number,
If the vehicles that reader selects are the quickly trip vehicles, the collected books for calculating separately each candidate library are commented
Valuation E1=D11+D12+ ...+D1i, E2=D21+D22+ ...+D2g, E3=D31+D32+ ...+D3h,
By collect books assessed value E1, E2, E3 by from big to small sequence sequence, take sequence first corresponding to candidate library be
Best library;When reader selects the quickly trip vehicles, the traffic of reader is more convenient, therefore without the concern for
Candidate library where departure place at a distance from, the books urgency directly borrowed according to reader chooses best library.
If the vehicles that reader selects are the vehicles of going on a journey at a slow speed, each candidate library is obtained respectively and is gone out
Distance L1, L2, the L3 for sending out location, calculate separately each candidate library comprehensive assessment value F1=a*L 1=/ 100+b* (
D11+D12+…+D1i),F2=a*L2/100+b*( D21+D22+…+D2g),F3=a*L1/100+b*( D31+D32+…+
D3i), a+b=1, when the vehicles are gone on a journey at a slow speed in reader's selection, the traffic of reader is in contrast more inconvenient, answers at this time
When by candidate library where departure place at a distance from as choose best library the considerations of factor, facilitate reader trip borrow
Read books.
Assessed value Fi, Fg, Fh will be collected books by sequence sequence from big to small, take candidate books corresponding to sequence first
Shop is best library.
The quick trip vehicles include car, public transport and motorcycle, and the vehicles of trip at a slow speed include
Electric bicycle, bicycle and walking, when the trip vehicles are electric bicycle at a slow speed, the value that the value of a is 0.08, b is
0.92;When the trip vehicles are bicycle at a slow speed, the value that the value of a is 0.11, b is 0.89;When the vehicles of going on a journey at a slow speed
When for electric bicycle, the value that the value of a is 0.17, b is 0.83.
Compared with prior art, the beneficial effects of the present invention are: the present invention needs to borrow the urgent of books according to reader
Property, the vehicles of reader's selection and library and set out the distance between location and library, be reader's selection
Best library can borrow urgently desired books convenient for reader, improve the efficiency for borrowing books of reader, improve
Reader borrows the confidence of books, promotes whole people's reading.
Detailed description of the invention
Fig. 1 is a kind of module diagram of more demand libraries navigation system based on database of the present invention;
Fig. 2 is a kind of more demand library air navigation aid flow diagrams based on database of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Please refer to Fig. 1~2, in the embodiment of the present invention, a kind of more demand libraries navigation system based on database is described
Navigation system includes that library's searching module, library's selection module and Route Generation module, library's searching module are used
In searching out all libraries for meeting locality condition and distance condition, the library chooses module and is used to search from library
Best library is determined in all libraries that block search goes out, the Route Generation module for being generated on the electronic map
The route in best library.
Library's searching module includes position input module, distance input module and library's search module, described
Position input module is used to input the position in the location of setting out for going to best library, and the distance input module is for inputting
The limiting distance in the best library chosen and location of setting out, library's search module were used in the week for setting out location
All libraries in search limiting distance are enclosed, it includes that candidate library chooses module and best figure that the library, which chooses module,
Module is chosen in book shop, and the candidate library chooses module for filtering out in the library that library's search module searches out
Candidate library, the best library choose module for selecting best library from candidate library.
It chooses module and includes library statistics module, check books input module, check that books are searched in the candidate library
Rope module checks that module, the library statistics are assert by books statistical module, the first sorting module of library and candidate library
The number in all libraries that module is searched out for Statistical Library's search module, it is described to check books input module for defeated
Enter reader the books in need borrowed title, it is described check book search module for library's search module search for
Search needs the books borrowed in all libraries out, described to check books statistical module for Statistical Library's search module
This number of the books that some need is borrowed is gathered around in each library searched out, first sorting module of library is used for basis
All libraries for checking that the statistical result of books statistical module searches out library's search module are ranked up, the candidate
Assert that module is used to filter out candidate library according to library statistics module or library's sorting module in library.
It includes books judgment module, vehicles input module, books urgency power that the best library, which chooses module,
It is worth input module, collected books assessed value computing module, the second sorting module of library, distance and obtains module, the calculating of comprehensive assessment value
Module is assert in module, library's third sorting module and best library, and the books judgment module is for judging candidate books
Whether shop possesses all books for needing to check, the vehicles input module is for inputting where the estimated follow of reader
The traffic in ground to best library is total to group, and the books urgency weight input module is used to input the weight for needing the books borrowed
The property wanted degree, the collected books assessed value computing module are used to be calculated according to the input results of books urgency weight input module and wait
The collected books assessed value in library is selected, second sorting module of library is used for the calculating knot according to collected books assessed value computing module
Fruit is ranked up candidate library, and the distance obtains module and is used to obtain candidate library at a distance from location of setting out,
The comprehensive assessment value computing module obtains calculating for the distance that module obtains and the assessed value computing module that collects books according to distance
Collected books assessed value calculates the comprehensive assessment value in candidate library, and library's third sorting module is used for according to comprehensive assessment
The calculated result of value computing module is ranked up candidate library, and the best library assert module for being sentenced according to books
The result of disconnected module or the second sorting module of library or third library sorting module chooses best library.
A kind of more demand libraries air navigation aid based on database, library's air navigation aid the following steps are included:
S1: it searches library: inputting location of setting out on the electronic map, electronic map is searched for centered on location of setting out,
It is less than or equal to all libraries of definite value R (0 < R≤30, unit are km) with location distance of setting out, remembers and search out
The number in all libraries is M, and M is natural number;
S2: candidate library is filtered out:
If number M=0 in all libraries searched out, return step S11;
If M≤3, all libraries that default search goes out are candidate library;
If M > 3, input the books A1, A2 for needing to borrow ..., Am, m is this number of books that reader needs to borrow,
Search needs the books borrowed in all libraries searched out, counts and gathers around what some need was borrowed in each library
This number n of books needs this number for the books borrowed to sort according to sequence from big to small, the row of taking for possessing in each library
First three a library of sequence is candidate library
S3: best library is determined:
Search needs the books borrowed in all libraries searched out, possesses needs in each candidate library of acquisition and borrows
Books this number n, if the candidate library is best library, more if it exists there is only the n=m in a candidate library
It is a candidate library n=m, then distance set out the nearest library in location be best library,
N=the m in candidate library if it does not exist, then reader selects type of vehicle and input to need to borrow books A1,
A2 ..., urgency weight B1, B2 of Am ..., Bm ,+Bm=1 B1+B2+ ..., the vehicles include quickly the trip vehicles and
It goes on a journey at a slow speed the vehicles, the vehicles of quickly going on a journey include car, public transport and motorcycle, and the vehicles of going on a journey at a slow speed include
Electric bicycle, bicycle and walking,
If urgency weight corresponding to the books that each candidate's library gathered around some need is borrowed respectively [D11,
D12 ..., D1i], [D21, D22 ..., D2g], [D21, D22 ..., D2h], i, g, h are respectively each candidate library collection
This number,
If the vehicles that reader selects are the quickly trip vehicles, the collected books for calculating separately each candidate library are commented
Valuation E1=D11+D12+ ...+D1i, E2=D21+D22+ ...+D2g, E3=D31+D32+ ...+D3h,
By collect books assessed value E1, E2, E3 by from big to small sequence sequence, take sequence first corresponding to candidate library be
Best library;
If the vehicles that reader selects are the vehicles of going on a journey at a slow speed, each candidate library and institute of setting out are obtained respectively
Distance L1, L2, L3 on ground calculate separately the comprehensive assessment value F1=a*L 1=/ 100+b* (D11+ in each candidate library
D12+ ...+D1i), F2=a*L2/100+b* (D21+D22+ ...+D2g), F3=a*L1/100+b* (D31+D32+ ...+D3i), a
+ b=1, when the trip vehicles are electric bicycle at a slow speed, the value that the value of a is 0.08, b is 0.92;When traffic of going on a journey at a slow speed
When tool is bicycle, the value that the value of a is 0.11, b is 0.89;When the trip vehicles are electric bicycle at a slow speed, the value of a
Value for 0.17, b is 0.83,
By collect books assessed value Fi, Fg, Fh by from big to small sequence sequence, take sequence first corresponding to candidate library be
Best library
S4: on the electronic map generate set out location to best library itinerary map.
Embodiment:
S1: search library: input is set out location on the electronic map: Nanjing Chang Fujie subway station, electronic map search with
Centered on the Chang Fujie subway station of Nanjing, all libraries of definite value 2km: Nanjing figure are less than or equal to location distance of setting out
Book shop (apart from Nanjing Chang Fujie subway station 1km), Qinhuai District library (apart from Nanjing Chang Fujie subway station 1.8km), Nanjing doctor
College library, university library, academic library, section (apart from Nanjing Chang Fujie subway station 2km), it is natural number that the number in all libraries searched out, which is 3, M,;
S2: candidate library is filtered out:
The number in all libraries searched out is 3, so all libraries that default search goes out are candidate library;
S3: best library is determined:
The books title for needing to borrow is respectively " Wuthering Heights ", " Oliver Twist " " David's Copperfield ", Nanjing Library, the Qin
The books that the species number for searching out to include above-mentioned books in Huaihe River district library, library, Nanjing Medical University is borrowed with needs
Species number is equal, and because Nanjing Library is nearest at a distance from the subway station of the street Chang Fu, and Nanjing Library figure is best figure
Book shop,
S4: the itinerary map of the generation street Chang Fu subway station to Nanjing Library on the electronic map.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.