CN110379340B - Outdoor positioning tour guide system based on iBeacon and GPS - Google Patents
Outdoor positioning tour guide system based on iBeacon and GPS Download PDFInfo
- Publication number
- CN110379340B CN110379340B CN201910529114.8A CN201910529114A CN110379340B CN 110379340 B CN110379340 B CN 110379340B CN 201910529114 A CN201910529114 A CN 201910529114A CN 110379340 B CN110379340 B CN 110379340B
- Authority
- CN
- China
- Prior art keywords
- scenic spot
- scenic
- ibeacon
- tourist
- spot
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q50/00—Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/14—Travel agencies
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09F—DISPLAYING; ADVERTISING; SIGNS; LABELS OR NAME-PLATES; SEALS
- G09F27/00—Combined visual and audible advertising or displaying, e.g. for public address
Abstract
The invention belongs to the technical field of scenic spot navigation, and relates to an outdoor positioning tour guide system based on iBeacon and GPS, which comprises: the system comprises a scenic spot management subsystem and a scenic spot display subsystem; the scenic spot display subsystem comprises: a GPS positioning algorithm and an iBeacon positioning algorithm; according to the method, the accuracy of tourist positioning is improved by adopting the integration of iBeacon and GPS to perform accurate positioning, and the tourist can be automatically switched to the current scenic spot; the system also provides omnibearing and multi-angle display information such as characters, pictures, audio and the like for tourists, modifies, adds and deletes data at any time to adapt to scenic spot changes in real time, and particularly uploads the narrative characters to automatically generate the narrative audio by applying a character-to-speech technology. The tour guide system reduces the burden of tour guide and saves labor cost; bring comprehensive detailed scenic spot introduction for the visitor, promote the tourism and experience, create the income for the scenic spot.
Description
Technical Field
The invention belongs to the technical field of scenic spot navigation, and relates to an outdoor positioning tour guide system based on iBeacon and GPS.
Background
In the patent with publication number CN 109064951 a, relating to the technical field of scenic spot navigation systems, specifically a scenic spot explanation system based on WeChat small program, comprising a scenic spot control system, which comprises five groups of systems, wherein the five groups of systems are set as a scenic spot map system, a scenic spot road condition system, a scenic spot wireless control system, a voice control system and a scenic spot alarm system, the scenic spot map control system is used for displaying, positioning, navigating and broadcasting the map information of scenic spots, the scenic spot road condition system is used for real-time monitoring and broadcasting the direction road section leading to scenic spots in scenic spots, the invention can make visitors know map scenic spots more comprehensively, can also perform time position positioning function on visitors and display the road condition information of scenic spots constantly, and can select scenic spots to play according to the provided road conditions, thereby effectively avoiding the normal state of sightseeing that visitors do not view, and the scenic spot security can be timely informed in an emergency, and the safety guarantee is provided for the personal safety of the tourists.
The above prior patents have the following disadvantages:
the scenic spot introduction part has the advantages that the content is single and only audio is provided, the content of explanation words is difficult to modify, professional recording equipment is needed for providing high-quality explanation audio, and the scenic spot is difficult to provide.
The positioning is limited by the defects of weak signal intensity, low precision, large map drawing error and the like of a GPS under complex terrain, and can only determine the general position of a tourist on a map, but can not automatically determine which scenic spot the tourist is at, so that the tourist needs to judge by himself or herself, and troubles are brought to the tourist.
Disclosure of Invention
Aiming at the problems existing in scenic spot navigation and the defects of the prior art, the invention provides an outdoor positioning tour guide system based on iBeacon and GPS. The navigation system mainly solves the following 2 problems: 1. in scenic spots with complex environments, tourists are unfamiliar with the scenic spots, and are difficult to know the position information of the scenic spots where the tourists are located and the peripheral scenic spots so as to plan the tourists. Therefore, the invention provides an accurate positioning algorithm integrating the iBeacon and the GPS, improves the positioning accuracy of the tourist in the scenic spot, and can switch to the scenic spot where the tourist is currently located without manual selection of the tourist. The navigation system makes up the defect that the positions of the closer scenic spots are difficult to distinguish by the traditional GPS positioning through the iBeacon positioning. 2. Scenic spot tour guides are insufficient, labor intensity is high, levels are uneven, and it is often difficult to provide high-quality explanation service for each tourist. The tourists are limited by the visiting season, cannot enjoy the beautiful scenery of the scenic spots all the year round, and have comprehensive experience on the scenic spots. Therefore, the invention provides the tourists with omnibearing and multi-angle display information such as characters, pictures, audio and the like, and the scenic spot management personnel can modify, add or delete data at any time to adapt to the change of the scenic spot in real time. Particularly, the invention is difficult to provide high-quality explanation audio aiming at scenic spots, and a text-to-speech technology is applied, so that the scenic spot management personnel can upload the explanation text, and the explanation audio can be automatically generated.
In order to achieve the purpose, the invention provides an outdoor positioning tour guide system based on iBeacon and GPS, which has the following specific technical scheme:
an outdoor positioning tour guide system based on iBeacon and GPS, comprising: the system comprises a scenic spot management subsystem and a scenic spot display subsystem;
the scenic spot management subsystem comprises: the system runs in a cloud server, and the scenic spot management subsystem is used for: providing data for the scenic spot display subsystem;
the data includes: text, pictures, audio, and the like;
the scenic spot management subsystem comprises: the data storage module and the data modification module;
the data storage module is used for: storing landscape photos, introduction contents, explanation audios, polygonal ranges of the scenic spots, central positions of the scenic spots and longitude and latitude of scenic spot positioning points of each scenic spot in a scenic region, storing data in a database of a data storage module, and providing 24-hour data access service for a scenic spot display subsystem in a restful api mode every day for 7 days;
the data modification module is as follows: a website running on a cloud server for: adding, modifying or deleting various data stored in the data storage module;
the sight display subsystem is configured to: the method comprises the steps that data of a scenic spot management subsystem and GPS and Bluetooth information on a mobile phone of a tourist are obtained to display information of the scenic spot;
the scenery spot display subsystem comprises: a positioning algorithm, a scenic spot map interface and a scenic spot detail interface;
the positioning algorithm comprises: a GPS positioning algorithm and an iBeacon positioning algorithm;
when an iBeacon signal exists nearby the tourist, the current position of the tourist is given by an iBeacon positioning algorithm;
when the iBeacon signal does not exist nearby the tourist, the current position of the tourist is given by a GPS positioning algorithm;
the positioning algorithm informs the scenic spot map interface updating in an event mode;
the operating precondition of the iBeacon positioning algorithm is as follows:
deploying a plurality of iBeacon Bluetooth base stations in the scenic spots according to the size, the terrain and the like of each scenic spot, and adjusting the transmitting power of each iBeacon Bluetooth base station;
the plurality of iBeacon Bluetooth base stations adopt the same UUID and MAJOR, and different iBeacon Bluetooth base stations in different scenic spots and the same scenic spot are distinguished through different MINNORs;
the scenic spot map interface is to: displaying the position of the tourist in a graphical mode;
the sight details interface is used for: and requesting landscape photos, introduction contents and explaining audio of the scenic spots from the data storage module, and reasonably composing and displaying the contents to the tourists.
On the basis of the technical scheme, scenic spot management personnel log in the data modification module through the management account, And increase, modification And deletion of scenic spots And scenic spot contents are realized in a form submission mode And an Ajax (Asynchronous JavaScript And XML) request mode.
On the basis of the technical scheme, the scenic spot management personnel upload the explication characters, and the uploaded explication characters are converted into voice by calling a character-to-voice API (voice synthesis API) through the data modification module so as to modify the explication audio.
On the basis of the technical scheme, the scenic spot management subsystem comprises: the WeChat applet running on the mobile phone of the tourist can be directly entered into the WeChat applet by scanning the two-dimensional codes posted at all positions of the scenic spot without installation.
On the basis of the technical scheme, the GPS positioning algorithm comprises the following steps:
s1, acquiring the longitude and latitude coordinates of the current position of the tourist through the getLocation api of the WeChat applet;
s2, converting the longitude and latitude coordinates into Web mercator coordinates;
s3, obtaining the polygonal range (namely the sequence of points under the Web mercator coordinates) of each scenic spot from the data storage module, and judging which scenic spot the tourist is in;
and S4, when determining which sight spot the tourist is in, informing the scenic spot map interface updating in an event mode.
Based on the above technical solution, the step S3 of determining which scenic spot the guest is in is as follows:
s31, assuming that the current position point where the tourist is located is a measured point Q, taking the measured point Q as an end point, and making a ray in a certain direction;
s32, counting the intersection number of the ray and the polygon of the sight spot; if the number of the intersection points is an odd number, the measured point Q is in a polygon of the sight spot intersected with the ray; if the number of the intersection points is even, the measured point Q is outside the polygon of the sight spot intersected with the ray.
On the basis of the above technical solution, in the step S31, taking the measured point Q as an end point, making a ray to the right horizontally; and converting the judgment of whether the intersection point exists between the ray and the polygon of the scenic spot into a sine value for calculating an included angle formed by the ray and the polygon edge of the scenic spot.
On the basis of the technical scheme, the steps of the iBeacon positioning algorithm are as follows:
s5, asynchronously obtaining a data frame sent by the iBeacon Bluetooth base station through the onBeacon update api of the WeChat applet;
s6, because the base station is influenced by the surrounding complex environment, the intensity of the data frame sent by the iBeacon Bluetooth base station is normally distributed in the same place, and the interval between frames has randomness. Therefore, the signal intensity of all data frames sent by the iBeacon Bluetooth base station within m seconds is recorded and stored in a circular queue with the length of n; simultaneously calculating the average intensity value of the same base station within n x m seconds;
s7, calculating the maximum value of the average signal intensity in all base stations of each sight spot (namely, the maximum value is taken for the first time), and taking the maximum value as the signal intensity of the sight spot;
s8, calculating the maximum value of the signal intensity of each sight spot in the step S7 (namely, the maximum value is taken for the second time), and recording the maximum value as the signal intensity a of the current sight spot;
s9, recording the signal intensity of the previous sight spot as b (the signal intensity calculation of the previous sight spot is the same as the method of the steps S5-S8);
and S10, comparing the signal intensity a of the current sight spot with the signal intensity b of the previous sight spot, and informing the update of the map interface of the sight spot in an event mode when the difference value between a and b is greater than a signal intensity threshold k.
On the basis of the technical scheme, because the WeChat small program with the map plug-in can not change the map, the scenic spot map interface is drawn by adopting a Canvas updating mode;
when receiving the information change of the positioning point of the scenic spot where the tourist is positioned and the Canvas updates the Canvas to redraw the scenic spot map interface,
due to the limitation of the shape of the scenic spot map, the situation that the positioned coordinates are outside the screen may occur, and under the situation, the experience of the user is very bad, the coordinates x and y of the upper left corner of the scenic spot map interface picture need to be calculated, and the specific calculation steps are as follows:
s11, receiving the longitude and latitude of a scenic spot locating point where the tourist is located from the data storage module, and calculating the length and width proportion of the scenic spot locating point on a scenic map interface picture through a coordinate conversion function;
s12, in order to enable the positioning point to be positioned in the center of the screen, firstly enabling the coordinate point of the scenic spot positioning point to be positioned at the position (0,0) of a Canvas, and then respectively adding half of the length and the width of the Canvas screen to enable the coordinate point of the scenic spot positioning point to be positioned at the center position of the Canvas screen;
when the map of the map interface of the scenic spot has an unclear display effect, the basic width and the basic height of the map are multiplied by the same coefficient to realize the zooming of the map, so that the map has higher transportability;
when the WeChat small program detects that the user performs single-finger sliding on the screen of the scenic spot map interface, recording the initial position of the single-finger sliding of the user, calculating the moving distance of the finger of the user through the difference value between the final position of the single-finger sliding of the user on the screen of the scenic spot map interface and the initial position, setting a throttling function, changing the position on the screen of the scenic spot map interface when the difference value reaches a set threshold value, redrawing the map of the scenic spot map interface, and updating the current position of the finger to be used as a new initial position of the next single-finger sliding;
when the user performs a two-finger slide zoom on the screen of the scenic map interface,
zooming is similar to the principle of the single-finger sliding, but because the two fingers are changed, the position change of the two fingers is monitored, a large amount of operation is carried out, the system runs unsmooth, the distance is introduced to carry out zooming judgment, and the specific steps of obtaining the zooming multiple are as follows:
s13, when the WeChat small program monitors that two fingers of the user are placed on a screen of a scenic spot map interface, recording the distance between the two fingers;
s14, when the user zooms, the distance between the two fingers changes; and multiplying the difference value of the distances by a scaling coefficient, and adding the basic scaling multiple to obtain a new scaling multiple.
On the basis of the technical scheme, when the map of the scenic spot map interface is drawn, in order to enable a user to have good use experience, the relative positions of the central points of the two fingers on the screen need to be kept unchanged, and the specific steps are as follows:
s15, calculating the center coordinates of the two fingers relative to the screen;
s16, calculating the distance between the center coordinate and the pixel on the left side of the scenic spot map interface picture;
s17, calculating the ratio of the central coordinate to the width and height of the scenic spot map interface picture;
s18, calculating the width and height of the scenic spot map interface picture under the new zoom multiple;
s19, the central points of the two fingers are positioned at the initial positions of the Canvas screen (namely, the upper left corner of the screen, the screen coordinate is (0,0)), and then the pixels of the central coordinate from the left side of the scenic spot map interface picture are respectively added, so as to obtain the positions of the central points of the two fingers under the new zoom multiple.
On the basis of the technical scheme, the data in the scenic spot management subsystem are easily managed by scenic spot workers.
The invention has the following beneficial technical effects:
the work burden of tour guides in scenic spots is reduced, and the labor cost is saved;
and comprehensive and detailed introduction of scenic spots is brought to the scenic spot tourists, the touring experience of the tourists is improved, and benefits are created for the scenic spots.
The invention provides an accurate positioning algorithm of integration of iBeacon and GPS, improves the accuracy of positioning of the tourist in the scenic spot, and can switch to the scenic spot where the tourist is currently located without manual selection of the tourist. The traditional GPS positioning is difficult to distinguish the position of a relatively close scenic spot, and the system accurately makes up the defect through IBeacon positioning.
The invention provides the tourists with omnibearing and multi-angle display information such as characters, pictures, audio and the like, and the scenic spot management personnel can modify, add and delete data at any time and adapt to the change of the scenic spot in real time. Particularly, the invention is difficult to provide high-quality commentary audio aiming at scenic spots, and a text-to-speech technology is applied, so that a scenic spot manager can upload commentary text and automatically generate commentary audio.
Drawings
The invention has the following drawings:
fig. 1 is a schematic block diagram of the composition structure of the outdoor positioning tour guide system based on iBeacon and GPS according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following drawings and examples.
As shown in fig. 1, an outdoor positioning tour guide system based on iBeacon and GPS comprises: the system comprises a scenic spot management subsystem and a scenic spot display subsystem;
the scenic spot management subsystem comprises: the system runs in a cloud server, and the scenic spot management subsystem is used for: providing data for the scenic spot display subsystem;
the data includes: text, pictures, audio, and the like;
the scenic spot management subsystem comprises: data storage module and data modification module
The data storage module is used for: storing landscape photos, introduction contents, explanation audios, polygonal ranges of the scenic spots, central positions of the scenic spots and longitude and latitude of scenic spot positioning points of each scenic spot in a scenic region, storing data in a database of a data storage module, and providing 24-hour data access service for a scenic spot display subsystem in a restful api mode every day for 7 days;
the data modification module is as follows: a website running on a cloud server for: adding, modifying or deleting various data stored in the data storage module;
the sight display subsystem is configured to: the method comprises the steps that data of a scenic spot management subsystem and GPS and Bluetooth information on a mobile phone of a tourist are obtained to display information of the scenic spot;
the scenery spot display subsystem comprises: a positioning algorithm, a scenic spot map interface and a scenic spot detail interface;
the positioning algorithm comprises: a GPS positioning algorithm and an iBeacon positioning algorithm;
when an iBeacon signal exists nearby the tourist, the current position of the tourist is given by an iBeacon positioning algorithm;
when the iBeacon signal does not exist nearby the tourist, the current position of the tourist is given by a GPS positioning algorithm;
the positioning algorithm informs the scenic spot map interface updating in an event mode;
the operating precondition of the iBeacon positioning algorithm is as follows:
deploying a plurality of iBeacon Bluetooth base stations in the scenic spots according to the size, the terrain and the like of each scenic spot, and adjusting the transmitting power of each iBeacon Bluetooth base station;
the plurality of iBeacon Bluetooth base stations adopt the same UUID and MAJOR, and different iBeacon Bluetooth base stations in different scenic spots and the same scenic spot are distinguished through different MINNORs;
the scenic spot map interface is to: displaying the position of the tourist in a graphical mode;
the sight details interface is used for: and requesting landscape photos, introduction contents and explaining audio of the scenic spots from the data storage module, and reasonably composing and displaying the contents to the tourists.
On the basis of the technical scheme, scenic spot management personnel log in the data modification module through the management account, And increase, modification And deletion of scenic spots And scenic spot contents are realized in a form submission mode And an Ajax (Asynchronous JavaScript And XML) request mode.
On the basis of the technical scheme, the scenic spot management personnel upload the commentary characters, and the data modification module calls a character-to-speech API to convert the uploaded commentary characters into speech so as to modify the commentary audio.
On the basis of the technical scheme, the scenic spot management subsystem comprises: the WeChat applet running on the mobile phone of the tourist can be directly entered into the WeChat applet by scanning the two-dimensional codes posted at all positions of the scenic spot without installation.
On the basis of the technical scheme, the GPS positioning algorithm comprises the following steps:
s1, acquiring the longitude and latitude coordinates of the tourist through the WeChat applet or the api;
s2, converting the longitude and latitude coordinates into Web mercator coordinates;
s3, obtaining the polygonal range (namely the sequence of points under the Web mercator coordinates) of each scenic spot from the data storage module, and judging which scenic spot the tourist is in;
and S4, when determining which sight spot the tourist is in, informing the scenic spot map interface updating in an event mode.
Based on the above technical solution, the step S3 of determining which scenic spot the guest is in is as follows:
s31, assuming that the current position point where the tourist is located is a measured point Q, taking the measured point Q as an end point, and making a ray in a certain direction;
s32, counting the intersection number of the ray and the polygon of the sight spot; if the number of the intersection points is an odd number, the measured point Q is in a polygon of the sight spot intersected with the ray; if the number of the intersection points is even, the measured point Q is outside the polygon of the sight spot intersected with the ray.
On the basis of the above technical solution, in the step S31, taking the measured point Q as an end point, making a ray to the right horizontally; and converting the judgment of whether the intersection point exists between the ray and the polygon of the scenic spot into a sine value for calculating an included angle formed by the ray and the polygon edge of the scenic spot.
On the basis of the technical scheme, the steps of the iBeacon positioning algorithm are as follows:
s5, asynchronously obtaining a data frame sent by the iBeacon Bluetooth base station through the onBeacon update api of the applet;
s6, because the base station is influenced by the surrounding complex environment, the intensity of the data frame sent by the iBeacon Bluetooth base station is normally distributed in the same place, and the interval between frames has randomness. Therefore, the signal intensity of all data frames sent by the iBeacon Bluetooth base station within m seconds is recorded and stored in a circular queue with the length of n; simultaneously calculating the average intensity value of the same base station within n x m seconds;
s7, calculating the maximum value of the average signal intensity in all base stations of each sight spot (namely, the maximum value is taken for the first time), and taking the maximum value as the signal intensity of the sight spot;
s8, calculating the maximum value of the signal intensity of each sight spot in the step S7 (namely, the maximum value is taken for the second time), and recording the maximum value as the signal intensity a of the current sight spot;
s9, recording the signal intensity of the previous sight spot as b (the signal intensity calculation of the previous sight spot is the same as the method of the steps S5-S8);
and S10, comparing the signal intensity a of the current sight spot with the signal intensity b of the previous sight spot, and informing the update of the map interface of the sight spot in an event mode when the difference value between a and b is greater than a signal intensity threshold k.
On the basis of the technical scheme, because the WeChat small program with the map plug-in can not change the map, the scenic spot map interface is drawn by adopting a Canvas updating mode;
when receiving the information change of the positioning point of the scenic spot where the tourist is positioned and the Canvas updates the Canvas to redraw the scenic spot map interface,
due to the limitation of the shape of the scenic spot map, the situation that the positioned coordinates are outside the screen may occur, and under the situation, the experience of the user is very bad, the coordinates x and y of the upper left corner of the scenic spot map interface picture need to be calculated, and the specific calculation steps are as follows:
s11, receiving the longitude and latitude of a scenic spot locating point where the tourist is located from the data storage module, and calculating the length and width proportion of the scenic spot locating point on a scenic map interface picture through a coordinate conversion function;
s12, in order to enable the scenic spot positioning point to be located in the center of the screen, firstly enabling the coordinate point of the scenic spot positioning point to be located at the position (0,0) of a Canvas, and then respectively adding half of the length and the width of the Canvas screen to enable the coordinate point of the scenic spot positioning point to be located at the center of the Canvas screen;
when the map of the map interface of the scenic spot has an unclear display effect, the basic width and the basic height of the map are multiplied by the same coefficient to realize the zooming of the map, so that the map has higher transportability;
when the WeChat small program detects that the user performs single-finger sliding on the screen of the scenic spot map interface, recording the initial position of the single-finger sliding of the user, calculating the moving distance of the finger of the user through the difference value between the final position of the single-finger sliding of the user on the screen of the scenic spot map interface and the initial position, setting a throttling function, changing the position on the screen of the scenic spot map interface when the difference value reaches a set threshold value, redrawing the map of the scenic spot map interface, and updating the current position of the finger to be used as a new initial position of the next single-finger sliding;
when the user performs a two-finger slide zoom on the screen of the scenic map interface,
zooming is similar to the principle of the single-finger sliding, but because the two fingers are changed, the position change of the two fingers is monitored, a large amount of operation is carried out, the system runs unsmooth, the distance is introduced to carry out zooming judgment, and the specific steps of obtaining the zooming multiple are as follows:
s13, when the WeChat small program monitors that two fingers of the user are placed on a screen of a scenic spot map interface, recording the distance between the two fingers;
s14, when the user zooms, the distance between the two fingers changes; and multiplying the difference value of the distances by a scaling coefficient, and adding the basic scaling multiple to obtain a new scaling multiple.
On the basis of the technical scheme, when the map of the scenic spot map interface is drawn, in order to enable a user to have good use experience, the relative positions of the central points of the two fingers on the screen need to be kept unchanged, and the specific steps are as follows:
s15, calculating the center coordinates of the two fingers relative to the screen;
s16, calculating the distance between the center coordinate and the pixel on the left side of the scenic spot map interface picture;
s17, calculating the ratio of the central coordinate to the width and height of the scenic spot map interface picture;
s18, calculating the width and height of the scenic spot map interface picture under the new zoom multiple;
s19, the central points of the two fingers are positioned at the initial positions of the Canvas screen (namely, the upper left corner of the screen, the screen coordinate is (0,0)), and then the pixels of the central coordinate from the left side of the scenic spot map interface picture are respectively added, so as to obtain the positions of the central points of the two fingers under the new zoom multiple.
On the basis of the technical scheme, the data in the scenic spot management subsystem are easily managed by scenic spot workers.
The most innovative technical key points or keywords of the patent are as follows:
1. the invention provides an iBeacon and GPS integrated precise positioning algorithm, improves the accuracy of positioning of tourists in scenic spots, and can switch to the scenic spot where the tourists are currently located without manual selection of the tourists. The navigation system makes up for the defects of the GPS positioning through the iBeacon positioning.
2. The invention provides the tourists with omnibearing and multi-angle display information such as characters, pictures, audio and the like, and the scenic spot management personnel can modify, add and delete data at any time to adapt to the change of the scenic spot in real time. Particularly, the invention aims at the problem that the high-quality explication audio is difficult to provide in the scenic spot, and applies a text-to-speech technology, so that the scenic spot management personnel can upload explication characters and can automatically generate the explication audio.
The foregoing is considered to be merely preferred embodiments of this invention, rather than all embodiments thereof. All equivalent structural or process changes made by using the contents of the specification and the drawings of the invention, or directly or indirectly applied to other related technical fields, are included in the scope of the patent protection of the invention.
Those not described in detail in this specification are within the knowledge of those skilled in the art.
Claims (2)
1. The utility model provides an outdoor location tourism guide system based on iBeacon and GPS which characterized in that includes: the system comprises a scenic spot management subsystem and a scenic spot display subsystem;
the scenic spot management subsystem comprises: the system runs in a cloud server, and the scenic spot management subsystem is used for: providing data for the scenic spot display subsystem;
the data includes: text, pictures, and audio;
the scenic spot management subsystem comprises: the data storage module and the data modification module;
the data storage module is used for: storing landscape photos, introduction contents, explanation audios, polygonal ranges of the scenic spots, central positions of the scenic spots and longitude and latitude of scenic spot positioning points of each scenic spot in a scenic region, storing data in a database of a data storage module, and providing 24-hour data access service for a scenic spot display subsystem in a restful api mode every day for 7 days;
the data modification module is as follows: a website running on a cloud server for: adding, modifying or deleting various data stored in the data storage module;
the sight display subsystem is configured to: the method comprises the steps that data of a scenic spot management subsystem and GPS and Bluetooth information on a mobile phone of a tourist are obtained to display information of the scenic spot;
the scenery spot display subsystem comprises: a positioning algorithm, a scenic spot map interface and a scenic spot detail interface;
the positioning algorithm comprises: a GPS positioning algorithm and an iBeacon positioning algorithm;
when an iBeacon signal exists nearby the tourist, the current position of the tourist is given by an iBeacon positioning algorithm;
when the iBeacon signal does not exist nearby the tourist, the current position of the tourist is given by a GPS positioning algorithm;
the positioning algorithm informs the scenic spot map interface updating in an event mode;
the operating precondition of the iBeacon positioning algorithm is as follows:
deploying a plurality of iBeacon Bluetooth base stations in the scenic spots according to the size and the terrain of each scenic spot, and adjusting the transmitting power of each iBeacon Bluetooth base station;
the plurality of iBeacon Bluetooth base stations adopt the same UUID and MAJOR, and different iBeacon Bluetooth base stations in different scenic spots and the same scenic spot are distinguished through different MINNORs;
the scenic spot map interface is to: displaying the position of the tourist in a graphical mode;
the sight details interface is used for: requesting scenic photos, introduction contents and explaining audio of scenic spots from a data storage module, and typesetting and displaying the contents to tourists;
the scene management personnel uploads the explication characters, and the uploaded explication characters are converted into voice by calling a character-to-voice API through the data modification module so as to modify the explication audio;
the scenic spot management subsystem comprises: the method comprises the following steps that a WeChat small program runs on a mobile phone of a tourist, and the tourist directly enters the WeChat small program by scanning two-dimensional codes posted at all positions of a scenic spot;
the steps of the iBeacon positioning algorithm are as follows:
s5, asynchronously obtaining a data frame sent by the iBeacon Bluetooth base station through the onBeacon update api of the WeChat applet;
s6, recording the signal intensity of all data frames sent by the iBeacon Bluetooth base station within m seconds, and storing the signal intensity in a circular queue with the length of n; simultaneously calculating the average intensity value of the same base station within n x m seconds;
s7, calculating the maximum value of the average signal intensity in all base stations of each scenic spot, and taking the maximum value as the signal intensity of the scenic spot;
s8, calculating the maximum value of the signal intensity of the scenic spot for the signal intensity of each scenic spot in the step S7, and recording the maximum value as the signal intensity a of the current scenic spot;
s9, recording the signal intensity of the previous scenic spot as b;
s10, comparing the signal intensity a of the current sight spot with the signal intensity b of the previous sight spot, and informing the update of the map interface of the sight spot in an event mode when the difference value between a and b is greater than a signal intensity threshold k;
the GPS positioning algorithm comprises the following steps:
s1, acquiring the longitude and latitude coordinates of the current position of the tourist through the getLocation api of the WeChat applet;
s2, converting the longitude and latitude coordinates into Web mercator coordinates;
s3, acquiring the polygonal range of each scenic spot from the data storage module, and judging which scenic spot the tourist is in;
s4, when determining which sight spot the tourist is in, informing the scenic spot map interface to update in an event mode;
step S3, the steps of determining which scenic spot the visitor is in are as follows:
s31, assuming that the current position point where the tourist is located is a measured point Q, taking the measured point Q as an end point, and making a ray in a certain direction;
s32, counting the intersection number of the ray and the polygon of the sight spot; if the number of the intersection points is an odd number, the measured point Q is in a polygon of the sight spot intersected with the ray; if the number of the intersection points is an even number, the measured point Q is outside the polygon of the sight spot intersected with the ray;
in step S31, taking the measured point Q as an end point, making a ray to the right horizontally; judging whether the intersection point exists between the ray and the polygon of the scenic spot, and converting the judgment into a sine value for calculating an included angle formed by the ray and the polygon edge of the scenic spot;
the scenic spot map interface is drawn in a Canvas updating mode;
when receiving the information change of the positioning point of the scenic spot where the tourist is positioned and the Canvas updates the Canvas to redraw the scenic spot map interface,
and calculating coordinates x and y of the upper left corner of the scenic spot map interface picture, wherein the specific calculation steps are as follows:
s11, receiving the longitude and latitude of a scenic spot locating point where the tourist is located from the data storage module, and calculating the length and width proportion of the scenic spot locating point on a scenic map interface picture through a coordinate conversion function;
s12, enabling the coordinate point of the scenic spot locating point to be located at the position (0,0) of a Canvas, and respectively adding half of the length and the width of the Canvas screen to enable the coordinate point of the scenic spot locating point to be located at the center position of the Canvas screen;
when the map of the map interface of the scenic spot has an unclear display effect, multiplying the basic width and the basic height of the map by the same coefficient to realize the zooming of the map;
when the WeChat small program detects that the user performs single-finger sliding on the screen of the scenic spot map interface, recording the initial position of the single-finger sliding of the user, calculating the moving distance of the finger of the user through the difference value between the final position of the single-finger sliding of the user on the screen of the scenic spot map interface and the initial position, setting a throttling function, changing the position on the screen of the scenic spot map interface when the difference value reaches a set threshold value, redrawing the map of the scenic spot map interface, and updating the current position of the finger to be used as a new initial position of the next single-finger sliding;
when a user carries out double-finger sliding zooming on a screen of a scenic spot map interface, the specific steps of obtaining the zooming times are as follows:
s13, when the WeChat small program monitors that two fingers of the user are placed on a screen of a scenic spot map interface, recording the distance between the two fingers;
s14, when the user zooms, the distance between the two fingers changes; multiplying the difference value of the distances by a scaling coefficient, and adding a basic scaling multiple to obtain a new scaling multiple;
when a map of a scenic spot map interface is drawn, the relative positions of the central points of the two fingers on the screen are kept unchanged, and the method specifically comprises the following steps:
s15, calculating the center coordinates of the two fingers relative to the screen;
s16, calculating the distance between the center coordinate and the pixel on the left side of the scenic spot map interface picture;
s17, calculating the ratio of the central coordinate to the width and height of the scenic spot map interface picture;
s18, calculating the width and height of the scenic spot map interface picture under the new zoom multiple;
and S19, enabling the central points of the two fingers to be at the initial positions of the Canvas screen, and respectively adding the pixels of the central coordinates from the left side of the scenic spot map interface picture to obtain the positions of the central points of the two fingers under the new zoom multiple.
2. The iBeacon and GPS based outdoor positioning tour guide system of claim 1, wherein: scenic spot management personnel log in the data modification module through the management account, and increase, modification and deletion of scenic spot and scenic spot content are realized in a form submission and Ajax request mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910529114.8A CN110379340B (en) | 2019-06-19 | 2019-06-19 | Outdoor positioning tour guide system based on iBeacon and GPS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910529114.8A CN110379340B (en) | 2019-06-19 | 2019-06-19 | Outdoor positioning tour guide system based on iBeacon and GPS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110379340A CN110379340A (en) | 2019-10-25 |
CN110379340B true CN110379340B (en) | 2020-12-22 |
Family
ID=68249313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910529114.8A Active CN110379340B (en) | 2019-06-19 | 2019-06-19 | Outdoor positioning tour guide system based on iBeacon and GPS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110379340B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110784818A (en) * | 2019-11-06 | 2020-02-11 | 上海音乐学院 | Sound navigation interactive system based on intelligent terminal |
CN111524210A (en) * | 2020-04-10 | 2020-08-11 | 北京百度网讯科技有限公司 | Method and apparatus for generating drawings |
CN113312439A (en) * | 2021-04-27 | 2021-08-27 | 重庆文理学院 | Tourist attraction tourist rescue tourist positioning system, method and storage medium |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013128078A1 (en) * | 2012-02-29 | 2013-09-06 | Nokia Corporation | Method and apparatus for rendering items in a user interface |
CN105025101A (en) * | 2015-07-16 | 2015-11-04 | 山东慧行天下文化传媒有限公司 | Hand-drawn map-based intelligent guide and navigation system of Android system |
CN105142113A (en) * | 2015-09-29 | 2015-12-09 | 邢永 | Automatic interpretation system and tour guiding method for scenic spots |
CN105208652A (en) * | 2015-09-21 | 2015-12-30 | 徐乔治 | Indoor positioning system based on wireless technology |
CN105911578A (en) * | 2016-06-02 | 2016-08-31 | 武汉慧联无限科技有限公司 | Ultra-low power consumption indoor and outdoor hybrid positioning system |
CN106067260A (en) * | 2016-07-22 | 2016-11-02 | 宁波大红鹰学院 | A kind of based in field TWA preengage parking management system online |
CA2749923C (en) * | 2010-08-24 | 2017-01-31 | Research In Motion Limited | Mobile tracking |
CN106803402A (en) * | 2017-04-05 | 2017-06-06 | 山东慧行天下文化传媒有限公司 | Intelligent guide guide system and method based on the classification display of map pantograph ratio |
CN106931985A (en) * | 2017-04-05 | 2017-07-07 | 山东慧行天下文化传媒有限公司 | Scenic spot intelligent planning tourist guide path system and method based on hand-drawing map |
CN107038199A (en) * | 2016-12-13 | 2017-08-11 | 阿里巴巴集团控股有限公司 | A kind of drawing practice and device |
CN206710590U (en) * | 2017-04-25 | 2017-12-05 | 中国计量大学 | A kind of indoor service robot positioning system based on iBeacon |
CN107484120A (en) * | 2017-06-21 | 2017-12-15 | 湖南简成信息技术有限公司 | Intelligent guide method, tour guide device and equipment based on third party application |
US9906914B2 (en) * | 2016-05-11 | 2018-02-27 | Mapsted Corp. | Scalable indoor navigation and positioning systems and methods |
CN107742491A (en) * | 2017-11-01 | 2018-02-27 | 江苏鸿信系统集成有限公司 | A kind of self-service guide method |
CN108135265A (en) * | 2015-09-28 | 2018-06-08 | 尼科创业控股有限公司 | For the heat of vaporization mapped system and method for electrical steam supply system |
CN109657023A (en) * | 2018-12-11 | 2019-04-19 | 山东慧行天下文化传媒有限公司 | Scenic spot dynamic electronic map method for drafting, server and system |
CN109783102A (en) * | 2019-01-18 | 2019-05-21 | 北京城市网邻信息技术有限公司 | Method, apparatus, equipment and the storage medium that Canvas painting canvas generates in a kind of small routine |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100429685C (en) * | 2006-03-15 | 2008-10-29 | 北京聚儒晟科贸有限公司 | Automatic control method of wide area tour information and tour information system |
CN101751838A (en) * | 2008-12-11 | 2010-06-23 | 易游达人科技(北京)有限公司 | Compound positioning self-service tour guide machine |
US20130110633A1 (en) * | 2011-11-02 | 2013-05-02 | Digital Footsteps, Ltd. | Adaptive presentation of guided tour information on mobile client terminal(s) |
CN103995251A (en) * | 2014-06-11 | 2014-08-20 | 中国电信股份有限公司南京分公司 | Positioning system and method of indoor mobile device |
CN104266658B (en) * | 2014-09-15 | 2018-01-02 | 上海酷远物联网科技有限公司 | One kind is based on precise positioning instructor in broadcasting guide system, method and its collecting method |
CN104284419B (en) * | 2014-10-20 | 2018-01-12 | 北京邮电大学 | A kind of indoor positioning and auxiliary navigation method, device and system based on iBeacon |
CN104409031B (en) * | 2014-10-20 | 2016-09-28 | 东北大学 | The intelligent tourism service system of a kind of facing moving terminal and method |
CN106257446B (en) * | 2015-06-19 | 2019-05-31 | 苏州市大创信息运用有限公司 | Geography information Freehandhand-drawing system based on longitude and latitude |
US20170343365A1 (en) * | 2016-05-30 | 2017-11-30 | Maria Mokhnatkina | Method for dynamic creation of customized tour guides |
CN106971683B (en) * | 2017-04-05 | 2019-06-28 | 山东慧行天下文化传媒有限公司 | The intelligent guide guide system and method for inverse are just being calculated based on map reference |
CN107682814A (en) * | 2017-08-16 | 2018-02-09 | 江苏大学 | A kind of editable intelligent guide system design method of user based on geography fence algorithm |
CN107547359B (en) * | 2017-08-16 | 2020-11-24 | 华南理工大学 | Tourist attraction information service system based on LBS and AR technology |
CN107371130A (en) * | 2017-08-31 | 2017-11-21 | 李锴 | A kind of iBeacon Bluetooth base. stations real-time location method and system |
-
2019
- 2019-06-19 CN CN201910529114.8A patent/CN110379340B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2749923C (en) * | 2010-08-24 | 2017-01-31 | Research In Motion Limited | Mobile tracking |
WO2013128078A1 (en) * | 2012-02-29 | 2013-09-06 | Nokia Corporation | Method and apparatus for rendering items in a user interface |
CN105025101A (en) * | 2015-07-16 | 2015-11-04 | 山东慧行天下文化传媒有限公司 | Hand-drawn map-based intelligent guide and navigation system of Android system |
CN105208652A (en) * | 2015-09-21 | 2015-12-30 | 徐乔治 | Indoor positioning system based on wireless technology |
CN108135265A (en) * | 2015-09-28 | 2018-06-08 | 尼科创业控股有限公司 | For the heat of vaporization mapped system and method for electrical steam supply system |
CN105142113A (en) * | 2015-09-29 | 2015-12-09 | 邢永 | Automatic interpretation system and tour guiding method for scenic spots |
US9906914B2 (en) * | 2016-05-11 | 2018-02-27 | Mapsted Corp. | Scalable indoor navigation and positioning systems and methods |
CN105911578A (en) * | 2016-06-02 | 2016-08-31 | 武汉慧联无限科技有限公司 | Ultra-low power consumption indoor and outdoor hybrid positioning system |
CN106067260A (en) * | 2016-07-22 | 2016-11-02 | 宁波大红鹰学院 | A kind of based in field TWA preengage parking management system online |
CN107038199A (en) * | 2016-12-13 | 2017-08-11 | 阿里巴巴集团控股有限公司 | A kind of drawing practice and device |
CN106931985A (en) * | 2017-04-05 | 2017-07-07 | 山东慧行天下文化传媒有限公司 | Scenic spot intelligent planning tourist guide path system and method based on hand-drawing map |
CN106803402A (en) * | 2017-04-05 | 2017-06-06 | 山东慧行天下文化传媒有限公司 | Intelligent guide guide system and method based on the classification display of map pantograph ratio |
CN206710590U (en) * | 2017-04-25 | 2017-12-05 | 中国计量大学 | A kind of indoor service robot positioning system based on iBeacon |
CN107484120A (en) * | 2017-06-21 | 2017-12-15 | 湖南简成信息技术有限公司 | Intelligent guide method, tour guide device and equipment based on third party application |
CN107742491A (en) * | 2017-11-01 | 2018-02-27 | 江苏鸿信系统集成有限公司 | A kind of self-service guide method |
CN109657023A (en) * | 2018-12-11 | 2019-04-19 | 山东慧行天下文化传媒有限公司 | Scenic spot dynamic electronic map method for drafting, server and system |
CN109783102A (en) * | 2019-01-18 | 2019-05-21 | 北京城市网邻信息技术有限公司 | Method, apparatus, equipment and the storage medium that Canvas painting canvas generates in a kind of small routine |
Non-Patent Citations (3)
Title |
---|
"基于iBeacon技术的导览系统在旅游景区的运用";连毅斌;《建筑设备控制与管理》;20160630;第10卷(第3期);第96-99页 * |
"基于iBeacon的智慧旅游移动信息服务系统设计与实现";郭玉宝;《万方数据库》;20161230;第1-63页 * |
"基于微信架构的iBeacon云端定位引擎平台的设计与实现";李鑫斌;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180415(第4期);第I138-1336页 * |
Also Published As
Publication number | Publication date |
---|---|
CN110379340A (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110379340B (en) | Outdoor positioning tour guide system based on iBeacon and GPS | |
JP6495553B2 (en) | System and method for using visual landmarks in initial navigation | |
CN105338492B (en) | A kind of intelligent electronic guide system based on geography fence technology | |
US7881562B2 (en) | Real-time spherical correction of map data | |
CN106257446B (en) | Geography information Freehandhand-drawing system based on longitude and latitude | |
CN102227611B (en) | For providing the method and apparatus of the cursor of context data in instruction drawing application | |
JP2014527188A (en) | System and method for collecting and providing map images | |
CN103971589A (en) | Processing method and device for adding interest point information of map to street scene images | |
CN105653281A (en) | Method and apparatus for capturing screen in mobile device | |
CN111223013B (en) | Intelligent tourist route generation method and system based on position markers | |
JP2016110245A (en) | Display system, display method, computer program, computer readable recording medium | |
CN108337664A (en) | Tourist attraction augmented reality interaction guide system based on geographical location and method | |
WO2015019917A1 (en) | Method for retrieving local tourism information with reference to position of user | |
KR100489890B1 (en) | Apparatus and Method to Provide Stereo Video or/and Detailed Information of Geographic Objects | |
CN113920260A (en) | Three-dimensional road network construction method and device, electronic equipment and storage medium | |
CN107656961A (en) | A kind of method for information display and device | |
KR101045252B1 (en) | Providing method of regional information by information block | |
CN108198099A (en) | The guidance method and system of augmented reality, device, server and computer readable storage medium | |
CN112236764A (en) | Outside-view position indication for digital cartography | |
CN101326559B (en) | Positional information exchange device and positional information exchange method | |
Jana et al. | An event-driven university campus navigation system on android platform | |
CN107478235A (en) | The dynamic map based on template obtains system under network environment | |
CN109857826A (en) | A kind of video camera visible range labeling system and its mask method | |
CN112507058B (en) | Track playback method based on positioning terminal | |
CN113868320A (en) | Video patrol method and system based on GIS space search and linear sequencing |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |