CN115017242A - Geo-fence generation method and device, storage medium and processor - Google Patents

Geo-fence generation method and device, storage medium and processor Download PDF

Info

Publication number
CN115017242A
CN115017242A CN202210429371.6A CN202210429371A CN115017242A CN 115017242 A CN115017242 A CN 115017242A CN 202210429371 A CN202210429371 A CN 202210429371A CN 115017242 A CN115017242 A CN 115017242A
Authority
CN
China
Prior art keywords
geographic entity
target
information
longitude
target geographic
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
CN202210429371.6A
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210429371.6A priority Critical patent/CN115017242A/en
Publication of CN115017242A publication Critical patent/CN115017242A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Remote Sensing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for generating a geo-fence, a storage medium and a processor. Wherein, the method comprises the following steps: acquiring target text information, wherein the target text information is used for describing the boundary of a target area; processing the target text information, and determining the name of the target geographic entity on the boundary and the azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; and determining a geo-fence corresponding to the target text information according to the latitude and longitude information of the target geographic entity and the direction information. The invention solves the technical problem that the efficiency of acquiring the geo-fence is low because the range of the geo-fence can be determined manually according to the text description and the map tool in the related technology.

Description

Geo-fence generation method and device, storage medium and processor
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for generating a geo-fence, a storage medium and a processor.
Background
Geofences refer to a virtual boundary of an actual geographic area, and are commonly used to send message alerts when entering, leaving, or otherwise being active in a particular area. In the information dissemination process, the geo-fence is usually described by text, and it is inconvenient for a receiver to determine the range of an area on the basis of the text by combining a map tool and geographic common knowledge and determine that the receiver is not in the area. The range of the geofence can only be determined manually from the textual description and the mapping tool, which presents the problem of lower efficiency in acquiring the geofence.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a generation method and device of a geo-fence, a storage medium and a processor, which are used for solving the technical problem that the efficiency of acquiring the geo-fence is low due to the fact that the range of the geo-fence can be determined only by people according to text description and a map tool in the related art.
According to an aspect of an embodiment of the present invention, there is provided a geo-fence generation method, including: acquiring target text information, wherein the target text information is used for describing the boundary of a target area; processing the target text information, and determining the name of the target geographic entity on the boundary and the azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; and determining a geo-fence corresponding to the target text information according to the latitude and longitude information of the target geographic entity and the direction information.
Further, processing the target text information to determine the name of the target geographic entity on the boundary and the azimuth information corresponding to the target geographic entity includes: extracting information of the target text information through a preset algorithm to obtain the name of the target geographic entity; and obtaining the azimuth information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression of the azimuth information.
Further, determining the latitude and longitude information of the target geographic entity according to the name of the target geographic entity comprises: obtaining a POI database, wherein the POI database comprises: the name of the entity point, the address information of the entity point and the longitude and latitude information of the entity point; obtaining a road network library, wherein the road network library comprises: the method comprises the following steps of (1) carrying out road name, address information of a road, longitude and latitude of a road starting point and longitude and latitude of a road finishing point; and determining the longitude and latitude information of the target geographic entity according to the POI database, the road network database and the name of the target geographic entity.
Further, determining the longitude and latitude information of the target geographic entity according to the POI database, the road network database and the name of the target geographic entity comprises: determining a type of the target geographic entity, wherein the type is one of: solid points and roads; if the type of the target geographic entity is an entity point, obtaining longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm; and if the type of the target geographic entity is a road, acquiring the longitude and latitude information of the target geographic entity in the road network library through a preset algorithm IV.
Further, if the type of the target geographic entity is an entity point, obtaining longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm includes: acquiring a geographic entity list from the POI database based on a fuzzy search algorithm according to the name of the target geographic entity, wherein the geographic entity list is composed of the name of an initial geographic entity and longitude and latitude information corresponding to the initial geographic entity; and obtaining the longitude and latitude information of the target geographic entity through the third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity.
Further, obtaining the longitude and latitude information of the target geographic entity through the third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity comprises: acquiring context information of the target text information; according to the context information, performing cross calculation on the name of the target geographic entity and the name of the initial geographic entity through a third preset algorithm to obtain a plurality of similarity values, wherein the similarity values represent the similarity between the name of the target geographic entity and the name of the initial geographic entity; and taking the longitude and latitude value of the initial geographic entity with the highest similarity as the longitude and latitude information of the target geographic entity.
Further, determining the geo-fence corresponding to the target text information according to the latitude and longitude information of the target geographic entity and the azimuth information comprises: obtaining a target connection strategy through a fifth preset algorithm according to the longitude and latitude information and the azimuth information of the target geographic entity; connecting the longitude and latitude information of the target geographic entity according to the target connection strategy to obtain a longitude and latitude polygon; and taking the longitude and latitude polygon as a geo-fence corresponding to the target text information.
According to another aspect of the embodiments of the present invention, there is also provided a geo-fence generating method, including: acquiring target text information sent by a client, wherein the target text information is used for describing the boundary of a target area; processing the target text information in a server, and determining the name of the target geographic entity on the boundary and azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; determining a geo-fence corresponding to the target text information according to the longitude and latitude information and the direction information of the target geographic entity; returning the geofence to the client.
According to another aspect of the embodiments of the present invention, there is also provided a geo-fence generating apparatus, including: the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring target text information, and the target text information is used for describing the boundary of a target area; the processing unit is used for processing the target text information and determining the name of the target geographic entity on the boundary and the azimuth information corresponding to the target geographic entity; the first determining unit is used for determining the longitude and latitude information of the target geographic entity according to the name of the target geographic entity; and the second determining unit is used for determining the geo-fence corresponding to the target text information according to the latitude and longitude information of the target geographic entity and the direction information.
Further, the processing unit includes: the extraction subunit is used for extracting information of the target text information through a preset algorithm to obtain the name of the target geographic entity; and the first processing subunit is used for obtaining the azimuth information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression of the azimuth information.
Further, the first determination unit includes: a first obtaining subunit, configured to obtain a POI database, where the POI database includes: the name of the entity point, the address information of the entity point and the longitude and latitude information of the entity point; a second obtaining subunit, configured to obtain a road network library, where the road network library includes: the method comprises the following steps of (1) obtaining a road name, address information of a road, longitude and latitude of a road starting point and longitude and latitude of a road finishing point; and the first determining subunit is used for determining the latitude and longitude information of the target geographic entity according to the POI database, the road network database and the name of the target geographic entity.
Further, the determining subunit includes: a determining module for determining a type of the target geographic entity, wherein the type is one of: solid points and roads; the first processing module is used for obtaining longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm if the type of the target geographic entity is an entity point; and the second processing module is used for obtaining the longitude and latitude information of the target geographic entity in the road network library through a preset algorithm IV if the type of the target geographic entity is a road.
Further, the first processing module comprises: the first obtaining sub-module is used for obtaining a geographic entity list from the POI database based on a fuzzy search algorithm according to the name of the target geographic entity, wherein the geographic entity list is composed of the name of an initial geographic entity and longitude and latitude information corresponding to the initial geographic entity; and the processing sub-module is used for obtaining the longitude and latitude information of the target geographic entity through the third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity.
Further, the first processing module comprises: the second obtaining submodule is used for obtaining the context information of the target text information; the calculation submodule is used for performing cross calculation on the name of the target geographic entity and the name of the initial geographic entity through the preset algorithm III according to the context information to obtain a plurality of similarity values, wherein the similarity values represent the similarity between the name of the target geographic entity and the name of the initial geographic entity; and the determining submodule is used for taking the longitude and latitude value of the initial geographic entity with the highest similarity as the longitude and latitude information of the target geographic entity.
Further, the second determination unit includes: the second processing subunit is used for obtaining a target connection strategy through a fifth preset algorithm according to the longitude and latitude information and the azimuth information of the target geographic entity; the connection subunit is used for connecting the longitude and latitude information of the target geographic entity according to the target connection strategy to obtain a longitude and latitude polygon; and the second determining subunit is used for taking the latitude and longitude polygon as the geo-fence corresponding to the target text information.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a program, wherein when the program runs, the apparatus on which the storage medium is located is controlled to execute the method for generating a geo-fence according to any one of the above.
According to another aspect of the embodiments of the present invention, there is further provided a processor, configured to execute the program, where the program executes the method for generating a geo-fence according to any one of the above-mentioned embodiments.
In the embodiment of the invention, target text information is obtained, wherein the target text information is used for describing the boundary of a target area; processing the target text information, and determining the name of the target geographic entity on the boundary and azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; the geo-fence corresponding to the target text information is determined according to the longitude and latitude information and the azimuth information of the target geographic entity, and the technical problem that the geo-fence acquisition efficiency is low due to the fact that the range of the geo-fence can be determined manually according to text description and a map tool in the related technology is solved. The name of the target geographic entity and the azimuth information corresponding to the target geographic entity are obtained through the target text information, then the longitude and latitude information of the target geographic entity is obtained according to the name of the target geographic entity, and finally the geographic fence corresponding to the target text information can be accurately obtained according to the longitude and latitude information and the azimuth information of the target geographic entity, so that the geographic fence is prevented from being determined in a manual mode, and the effect of improving the efficiency of obtaining the geographic fence is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for generating a geo-fence according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a name of a target geographic entity and azimuth information corresponding to the target geographic entity, provided according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a geo-fence corresponding to a target text message according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a list of geographic entities provided according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of obtaining longitude and latitude polygons by the Jarvis algorithm according to an embodiment of the present invention;
fig. 7 is a flowchart of an alternative geo-fence generation method provided in accordance with an embodiment of the present invention;
fig. 8 is a flowchart of a method for generating a geo-fence according to a second embodiment of the present invention;
fig. 9 is a schematic diagram of a geo-fence generation apparatus provided in accordance with an embodiment of the present invention;
FIG. 10 is a block diagram of an alternative computer terminal according to an embodiment of the present invention;
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
There is also provided, in accordance with an embodiment of the present invention, an embodiment of a method for geo-fence generation, including the steps illustrated in the flowchart of the figure as being executable on a computer system, such as a set of computer-executable instructions, and although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be executed in an order different than that presented herein.
The method provided by the first embodiment of the present invention may be executed in a mobile terminal, a computer terminal, or a similar computing device. Fig. 1 shows a hardware configuration block diagram of a computer terminal (or mobile device) for implementing the geofence generation method. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more processors (shown as 102a, 102b, … …, 102n in the figure) which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the invention, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 can be used for storing software programs and modules of application software, such as program instructions/data storage devices corresponding to the geo-fence generating method in the embodiment of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the above-mentioned geo-fence generating method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with the user interface of the computer terminal 10 (or mobile device).
In the above operating environment, the present application provides a method of generating a geofence as shown in fig. 2. Fig. 2 is a flowchart of a method for generating a geo-fence according to a first embodiment of the present invention.
Step S201, target text information is obtained, where the target text information is used to describe a boundary of a target area.
Specifically, target text information describing the boundary of the target area is obtained, for example, xx adjusts the following areas into a sealed control area: the Dong Feng is in the area of the two routes of the fluid preparation from the north and the east of the fluid preparation from the south and the east of the New Tian and the West and the Keyuan.
Step S202, the target text information is processed, and the name of the target geographic entity on the boundary and the azimuth information corresponding to the target geographic entity are determined.
Specifically, information extraction work is carried out on the target text information, and the name of the target geographic entity and the azimuth information corresponding to the target geographic entity are obtained. For example, the name of the target geographic entity and the azimuth information corresponding to the target geographic entity shown in fig. 3, the east Feng great road-the north, the east Feng two roads-the south, the east Feng new heaven and earth-the west, and the science source four roads-the east.
Step S203, determining the latitude and longitude information of the target geographic entity according to the name of the target geographic entity.
Specifically, the latitude and longitude information of the target geographic entity is found according to the name of the target geographic entity.
And step S204, determining the geo-fence corresponding to the target text information according to the latitude and longitude information and the azimuth information of the target geographic entity.
Specifically, the geo-fence corresponding to the target text information is obtained according to the latitude and longitude information and the azimuth information. For example, fig. 4 is a schematic diagram of a geo-fence corresponding to the target text information.
Through the steps S201 to S204, the name of the target geographic entity and the azimuth information corresponding to the target geographic entity are obtained by using the target text information, then the longitude and latitude information of the target geographic entity is obtained according to the name of the target geographic entity, and finally the geo-fence corresponding to the target text information can be accurately obtained according to the longitude and latitude information and the azimuth information of the target geographic entity, so that the geo-fence is prevented from being determined in a manual mode, and the efficiency of obtaining the geo-fence is improved.
Optionally, in the method for generating a geo-fence provided in the first embodiment of the present invention, the processing the target text information, and determining the name of the target geographic entity and the azimuth information corresponding to the target geographic entity on the boundary includes: extracting information of the target text information through a preset algorithm to obtain the name of the target geographic entity; and obtaining the azimuth information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression of the azimuth information.
Specifically, information extraction is performed on the target text information through a preset algorithm to obtain the name of the target geographic entity. And then, acquiring a regular expression of the orientation information, and obtaining the orientation information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression. It should be noted that the first preset algorithm and the second preset algorithm may be the same algorithm or different algorithms. The first preset algorithm may be the BilSTM-CRF algorithm. The BilSTM-CRF algorithm: a Bidirectional Long-Short-Term Network with a Conditional Random Field Layer, a Bidirectional Long-Short-Term Memory Network with a CRF Layer, and one of deep learning models is labeled with a sequence. Through the steps, the name of the target geographic entity and the azimuth information corresponding to the name of the target geographic entity can be accurately obtained from the target text information, and therefore the accuracy of obtaining the geo-fence is improved.
Optionally, in the method for generating a geo-fence provided in an embodiment of the present invention, determining latitude and longitude information of the target geo-entity according to the name of the target geo-entity includes: obtaining a POI database, wherein the POI database comprises: the name of the entity point, the address information of the entity point and the longitude and latitude information of the entity point; obtaining a road network library, wherein the road network library comprises: the method comprises the following steps of (1) obtaining a road name, address information of a road, longitude and latitude of a road starting point and longitude and latitude of a road finishing point; and determining the longitude and latitude information of the target geographic entity according to the POI database, the road network database and the name of the target geographic entity.
Specifically, a POI database and a road network database are obtained. The POI database contains longitude and latitude information of geographic entity points, and the road network database contains longitude and latitude information of roads, namely the longitude and latitude of a road starting point and the longitude and latitude of a road finishing point. And then, acquiring the longitude and latitude information of the target geographic entity through the POI database, the road network database and the name of the target geographic entity. The longitude and latitude information of the target geographic entity can be accurately obtained through the POI database and the road network database, and the geographic fence corresponding to the target text information can be accurately obtained through the longitude and latitude information.
Optionally, in the method for generating a geo-fence according to the first embodiment of the present invention, determining longitude and latitude information of the target geographic entity according to the POI database, the road network database, and the name of the target geographic entity includes: determining a type of the target geographic entity, wherein the type is one of: solid points and roads; if the type of the target geographic entity is an entity point, acquiring longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm; and if the type of the target geographic entity is a road, acquiring the longitude and latitude information of the target geographic entity in a road network library through a preset algorithm IV.
Specifically, when determining longitude and latitude information of a target geographic entity, first, a type of the target geographic entity is determined, where the type of the target geographic entity is an entity point and a road. For example, the new Fengdong is the point of the entity and the branch of the country is the road. The longitude and latitude information contained in the POI database and the road network database is specific to different types of target geographic entities, so that the target geographic entities are classified, and when the types are entity points, the longitude and latitude information of the target geographic entities is obtained from the POI database; and when the type is a road, acquiring the longitude and latitude information of the target geographic entity from the road network library. Through classifying the target geographic entities, the efficiency of acquiring longitude and latitude information is improved, and the efficiency of acquiring the geographic fence is further improved.
Optionally, in the method for generating a geo-fence provided in the first embodiment of the present invention, if the type of the target geographic entity is an entity point, obtaining latitude and longitude information of the target geographic entity in the POI database through a third preset algorithm includes: acquiring a geographic entity list from a POI database based on a fuzzy search algorithm according to the name of a target geographic entity, wherein the geographic entity list is composed of the name of an initial geographic entity and longitude and latitude information corresponding to the initial geographic entity; and obtaining the longitude and latitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity.
Specifically, obtaining longitude and latitude information of the target geographic entity from the POI database includes first obtaining a geographic entity list from the POI database through a fuzzy algorithm, for example, as shown in fig. 5, a schematic diagram of the geographic entity list. And then, obtaining the longitude and latitude information of the target geographic entity from the geographic entity list through a third preset algorithm. The matching accuracy of the longitude and latitude information of the target geographic entity is ensured through the steps. It should be noted that the preset algorithm three may be an ESIM algorithm, which is: an Enhanced Sequential Inference Model, a commonly used short text matching deep learning Model algorithm.
Optionally, in the method for generating a geo-fence provided in the first embodiment of the present invention, obtaining latitude and longitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity includes: acquiring context information of target text information; according to the context information, performing cross calculation on the name of the target geographic entity and the name of the initial geographic entity through a third preset algorithm to obtain a plurality of similarity values, wherein the similarity values represent the similarity between the name of the target geographic entity and the name of the initial geographic entity; and taking the longitude and latitude value of the initial geographic entity with the highest similarity as the longitude and latitude information of the target geographic entity.
Specifically, when longitude and latitude information of a target geographic entity is obtained through a third preset algorithm, context information of target text information is obtained first, where the context information is context information of the target text information, and for example, xx city adjusts the following areas to be sealed and controlled areas: the east Feng Dazhu is in the north, the east of the Feng is in the south, the east of the Feng is in the west, and the east of the Feng is in the four ways of the West and the Keyuan. Through the context information, when the longitude and latitude information of the target geographic entity is determined, only the target geographic entity in xx city needs to be considered, so that some invalid longitude and latitude information can be avoided. Then, the names of the target geographic entities and the name of the initial geographic entity are cross-calculated by a third preset algorithm, so as to obtain similarity values of the names of the target geographic entities and the name of the initial theoretic entity, for example, the data of 0.99, 0.90, 0.42, etc. in fig. 5 are the similarity values. And finally, selecting the longitude and latitude value of the initial geographic entity with the highest similarity value as the longitude and latitude information of the target geographic entity. The specific steps for obtaining the longitude and latitude information of the target geographic entity from the road network library are consistent with the above steps, and are not repeated here.
Through the steps, the longitude and latitude information of the target geographic entity can be quickly and accurately obtained, and the efficiency of obtaining the geographic fence is improved.
Optionally, in the method for generating a geo-fence provided in the first embodiment of the present invention, determining, according to the latitude and longitude information and the azimuth information of the target geographic entity, the geo-fence corresponding to the target text information includes: obtaining a target connection strategy through a fifth preset algorithm according to the longitude and latitude information and the azimuth information of the target geographic entity; connecting the longitude and latitude information of the target geographic entity according to a target connection strategy to obtain a longitude and latitude polygon; and taking the longitude and latitude polygon as the geo-fence corresponding to the target text information.
Specifically, the obtained longitude and latitude information and the azimuth information are input into a fifth preset algorithm, the fifth preset algorithm obtains a connection strategy (namely the target connection strategy) according to the information, and then the longitude and latitude information is connected according to the connection strategy to obtain a longitude and latitude polygon, wherein the longitude and latitude polygon is the geo-fence corresponding to the target text information. By means of this geo-fence it is possible to quickly and accurately determine whether a point (person/POI) is within the area. It should be noted that the preset algorithm v may be a Jarvis algorithm (also called a volume wrapping algorithm), as shown in fig. 6, which is a schematic diagram of obtaining a longitude and latitude polygon through the Jarvis algorithm. In fig. 6, P is the starting point of the longitude and latitude polygon, l represents the next point to be connected, and the longitude and latitude polygons can be obtained by connecting in sequence according to the sequence shown in fig. 6.
In the method for generating a geo-fence provided in the first embodiment of the present invention, target text information is obtained, where the target text information is used to describe a boundary of a target area; processing the target text information, and determining the name of the target geographic entity on the boundary and azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; the geo-fence corresponding to the target text information is determined according to the longitude and latitude information and the azimuth information of the target geographic entity, and the technical problem that the efficiency of acquiring the geo-fence is low due to the fact that the range of the geo-fence can be determined manually according to text description and a map tool in the related technology is solved. The name of the target geographic entity and the azimuth information corresponding to the target geographic entity are obtained through the target text information, then the longitude and latitude information of the target geographic entity is obtained according to the name of the target geographic entity, and finally the geographic fence corresponding to the target text information can be accurately obtained according to the longitude and latitude information and the azimuth information of the target geographic entity, so that the geographic fence is prevented from being determined in a manual mode, and the effect of improving the efficiency of obtaining the geographic fence is achieved.
Fig. 7 is a flowchart illustrating an alternative geo-fence generation method according to an embodiment of the present disclosure. The description text information of the geo-fence is subjected to three steps of slot filling, entity linking and convex hull calculation to obtain the geo-fence. The slot filling refers to obtaining the name of the target geographic entity and the azimuth information corresponding to the target geographic entity through the description text information. Entity linking refers to obtaining latitude and longitude information of a target geographic entity. And the convex hull calculation means that a longitude and latitude polygon is obtained through the longitude and latitude information and the azimuth information, namely, the geo-fence corresponding to the description text information is described.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In the above operating environment, the present application provides a method of generating a geofence as shown in fig. 8. Fig. 8 is a flowchart of a geo-fence generation method according to a second embodiment of the present invention.
Step S801, acquiring target text information sent by the client, where the target text information is used to describe a boundary of a target area.
Specifically, the target text information is sent to the server through the client.
Step S802, processing the target text information in the server, and determining the name of the target geographic entity on the boundary and the azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; and determining the geo-fence corresponding to the target text information according to the longitude and latitude information and the direction information of the target geographic entity.
Specifically, in the server, the target text information is processed to obtain the name of the target geographic entity and the azimuth information corresponding to the target geographic entity, then the latitude and longitude information of the target geographic entity is determined according to the name of the target geographic entity, and finally the geo-fence corresponding to the target text information is obtained according to the latitude and longitude information and the azimuth information of the target geographic entity.
Step S803, return the geo-fence to the client.
In the server, the specific method for processing the target text information to obtain the geo-fence corresponding to the target text information is the same as that in embodiment 1, and is not described herein again.
The geo-fence is generated through the server, so that the efficiency of the generation work of the geo-fence is improved, and the storage pressure of a local client is reduced.
It should be noted that for simplicity of description, the above-mentioned method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
There is also provided, in accordance with an embodiment of the present invention, apparatus for generating a geofence as described above, as shown in fig. 9, the apparatus including: an acquisition unit 901, a processing unit 902, a first determination unit 903 and a second determination unit 904.
Specifically, the acquiring unit 901 is configured to acquire target text information, where the target text information is used to describe a boundary of a target area.
The processing unit 902 is configured to process the target text information, and determine a name of the target geographic entity and azimuth information corresponding to the target geographic entity on the boundary.
The first determining unit 903 is configured to determine latitude and longitude information of the target geographic entity according to the name of the target geographic entity.
And a second determining unit 904, configured to determine, according to the latitude and longitude information and the azimuth information of the target geographic entity, a geo-fence corresponding to the target text information.
In the device for generating a geo-fence provided in the third embodiment of the present invention, target text information is obtained by the obtaining unit 901, where the target text information is used to describe a boundary of a target area; the processing unit 902 processes the target text information, and determines the name of the target geographic entity and the azimuth information corresponding to the target geographic entity on the boundary; the first determining unit 903 determines latitude and longitude information of the target geographic entity according to the name of the target geographic entity; the second determining unit 904 determines the geo-fence corresponding to the target text information according to the latitude and longitude information and the azimuth information of the target geo-entity, and solves the technical problem that the efficiency of acquiring the geo-fence is low because the range of the geo-fence can be determined manually according to text description and a map tool in the related art. The name of the target geographic entity and the azimuth information corresponding to the target geographic entity are obtained through the target text information, then the longitude and latitude information of the target geographic entity is obtained according to the name of the target geographic entity, and finally the geographic fence corresponding to the target text information can be accurately obtained according to the longitude and latitude information and the azimuth information of the target geographic entity, so that the geographic fence is prevented from being determined in a manual mode, and the effect of improving the efficiency of obtaining the geographic fence is achieved.
Optionally, in the device for generating a geo-fence provided in the third embodiment of the present invention, the processing unit 902 includes: the extraction subunit is used for extracting information of the target text information through a preset algorithm to obtain the name of the target geographic entity; and the first processing subunit is used for obtaining the azimuth information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression of the azimuth information.
Optionally, in the apparatus for generating a geofence provided in the third embodiment of the present invention, the first determining unit 903 includes: a first obtaining subunit, configured to obtain a POI database, where the POI database includes: the name of the entity point, the address information of the entity point and the longitude and latitude information of the entity point; a second obtaining subunit, configured to obtain a router library, where the router library includes: the method comprises the following steps of (1) carrying out road name, address information of a road, longitude and latitude of a road starting point and longitude and latitude of a road finishing point; and the first determining subunit is used for determining the latitude and longitude information of the target geographic entity according to the POI database, the road network database and the name of the target geographic entity.
Optionally, in the device for generating a geo-fence provided in the third embodiment of the present invention, the determining a subunit includes: a determining module for determining a type of the target geographic entity, wherein the type is one of: solid points and roads; the first processing module is used for obtaining longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm if the type of the target geographic entity is an entity point; and the second processing module is used for obtaining the longitude and latitude information of the target geographic entity in the road network library through a preset algorithm IV if the type of the target geographic entity is a road.
Optionally, in the device for generating a geo-fence provided in the third embodiment of the present invention, the first processing module includes: the first acquisition sub-module is used for acquiring a geographic entity list from the POI database based on a fuzzy search algorithm according to the name of a target geographic entity, wherein the geographic entity list is composed of the name of an initial geographic entity and longitude and latitude information corresponding to the initial geographic entity; and the processing sub-module is used for obtaining the longitude and latitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity.
Optionally, in the device for generating a geo-fence provided in the third embodiment of the present invention, the first processing module includes: the second obtaining submodule is used for obtaining the context information of the target text information; the calculation submodule is used for performing cross calculation on the name of the target geographic entity and the name of the initial geographic entity through a third preset algorithm according to the context information to obtain a plurality of similarity values, wherein the similarity values represent the similarity between the name of the target geographic entity and the name of the initial geographic entity; and the determining submodule is used for taking the longitude and latitude value of the initial geographic entity with the highest similarity as the longitude and latitude information of the target geographic entity.
Optionally, in the device for generating a geo-fence provided in the third embodiment of the present invention, the second determining unit 904 includes: the second processing subunit is used for obtaining a target connection strategy through a fifth preset algorithm according to the longitude and latitude information and the azimuth information of the target geographic entity; the connection subunit is used for connecting the longitude and latitude information of the target geographic entity according to the target connection strategy to obtain a longitude and latitude polygon; and the second determining subunit is used for taking the latitude and longitude polygon as the geo-fence corresponding to the target text information.
It should be noted here that the acquiring unit 901, the processing unit 902, the first determining unit 903 and the second determining unit 904 correspond to steps S201 to S204 in embodiment 1, and the two modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in the first embodiment. It should be noted that the above modules may be operated in the computer terminal 10 provided in embodiment 1 as a part of the apparatus.
Example 4
The embodiment of the invention can provide a computer terminal which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute the program code of the following steps in the method for generating a geo-fence: acquiring target text information, wherein the target text information is used for describing the boundary of a target area; processing the target text information, and determining the name of the target geographic entity on the boundary and azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; and determining the geo-fence corresponding to the target text information according to the longitude and latitude information and the direction information of the target geographic entity.
The computer terminal may further execute the program code of the following steps in the method for generating a geo-fence: processing the target text information, and determining the name of the target geographic entity and the azimuth information corresponding to the target geographic entity on the boundary, wherein the steps comprise: extracting information of the target text information through a preset algorithm to obtain the name of the target geographic entity; and obtaining the azimuth information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression of the azimuth information.
The computer terminal may further execute the program code of the following steps in the method for generating a geo-fence: determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity comprises the following steps: obtaining a POI database, wherein the POI database comprises: the name of the entity point, the address information of the entity point and the longitude and latitude information of the entity point; obtaining a road network library, wherein the road network library comprises: the method comprises the following steps of (1) carrying out road name, address information of a road, longitude and latitude of a road starting point and longitude and latitude of a road finishing point; and determining the longitude and latitude information of the target geographic entity according to the POI database, the road network database and the name of the target geographic entity.
The computer terminal may further execute the program code of the following steps in the method for generating a geo-fence: determining longitude and latitude information of the target geographic entity according to the names of the POI database, the road network database and the target geographic entity comprises the following steps: determining a type of the target geographic entity, wherein the type is one of: solid points and roads; if the type of the target geographic entity is an entity point, acquiring longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm; and if the type of the target geographic entity is a road, acquiring the longitude and latitude information of the target geographic entity in a road network library through a preset algorithm IV.
The computer terminal may further execute the program code of the following steps in the method for generating a geo-fence: if the type of the target geographic entity is an entity point, obtaining longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm comprises the following steps: acquiring a geographic entity list from a POI database based on a fuzzy search algorithm according to the name of a target geographic entity, wherein the geographic entity list is composed of the name of an initial geographic entity and longitude and latitude information corresponding to the initial geographic entity; and obtaining the longitude and latitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity.
The computer terminal may further execute the program code of the following steps in the method for generating a geo-fence: obtaining the longitude and latitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity comprises the following steps: acquiring context information of target text information; according to the context information, performing cross calculation on the name of the target geographic entity and the name of the initial geographic entity through a third preset algorithm to obtain a plurality of similarity values, wherein the similarity values represent the similarity between the name of the target geographic entity and the name of the initial geographic entity; and taking the longitude and latitude value of the initial geographic entity with the highest similarity as the longitude and latitude information of the target geographic entity.
The computer terminal may further execute the program code of the following steps in the method for generating a geo-fence: determining the geo-fence corresponding to the target text information according to the latitude and longitude information and the azimuth information of the target geographic entity comprises the following steps: obtaining a target connection strategy through a fifth preset algorithm according to the longitude and latitude information and the azimuth information of the target geographic entity; connecting the longitude and latitude information of the target geographic entity according to a target connection strategy to obtain a longitude and latitude polygon; and taking the longitude and latitude polygon as the geo-fence corresponding to the target text information.
Fig. 10 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in fig. 10, the computer terminal 10 may include: one or more processors (only one shown in fig. 10), memory.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the geo-fence generation method and apparatus in the embodiments of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the geo-fence generation method described above. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memories may further include a memory located remotely from the processor, which may be connected to the terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: acquiring target text information, wherein the target text information is used for describing the boundary of a target area; processing the target text information, and determining the name of the target geographic entity on the boundary and azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; and determining a geo-fence corresponding to the target text information according to the longitude and latitude information and the azimuth information of the target geographic entity.
Optionally, the processor may further execute the program code of the following steps: processing the target text information, and determining the name of the target geographic entity and the azimuth information corresponding to the target geographic entity on the boundary, wherein the processing comprises the following steps: extracting information of the target text information through a preset algorithm to obtain the name of the target geographic entity; and obtaining the azimuth information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression of the azimuth information.
Optionally, the processor may further execute the program code of the following steps: determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity comprises the following steps: obtaining a POI database, wherein the POI database comprises: the name of the entity point, the address information of the entity point and the longitude and latitude information of the entity point; obtaining a network library, wherein the network library comprises: the method comprises the following steps of (1) carrying out road name, address information of a road, longitude and latitude of a road starting point and longitude and latitude of a road finishing point; and determining the longitude and latitude information of the target geographic entity according to the POI database, the road network database and the name of the target geographic entity.
Optionally, the processor may further execute the program code of the following steps: determining longitude and latitude information of the target geographic entity according to the names of the POI database, the road network library and the target geographic entity comprises the following steps: determining a type of the target geographic entity, wherein the type is one of: solid points and roads; if the type of the target geographic entity is an entity point, acquiring longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm; and if the type of the target geographic entity is a road, acquiring the longitude and latitude information of the target geographic entity in a road network library through a preset algorithm IV.
Optionally, the processor may further execute the program code of the following steps: if the type of the target geographic entity is an entity point, obtaining longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm comprises the following steps: acquiring a geographical entity list from a POI database based on a fuzzy search algorithm according to the name of a target geographical entity, wherein the geographical entity list consists of the name of an initial geographical entity and longitude and latitude information corresponding to the initial geographical entity; and obtaining the longitude and latitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity.
Optionally, the processor may further execute the program code of the following steps: obtaining the longitude and latitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity comprises the following steps: acquiring context information of target text information; according to the context information, performing cross calculation on the name of the target geographic entity and the name of the initial geographic entity through a third preset algorithm to obtain a plurality of similarity values, wherein the similarity values represent the similarity between the name of the target geographic entity and the name of the initial geographic entity; and taking the longitude and latitude value of the initial geographic entity with the highest similarity as the longitude and latitude information of the target geographic entity.
Optionally, the processor may further execute the program code of the following steps: determining the geo-fence corresponding to the target text information according to the latitude and longitude information and the azimuth information of the target geographic entity comprises the following steps: obtaining a target connection strategy through a fifth preset algorithm according to the longitude and latitude information and the azimuth information of the target geographic entity; connecting the longitude and latitude information of the target geographic entity according to a target connection strategy to obtain a longitude and latitude polygon; and taking the longitude and latitude polygon as the geo-fence corresponding to the target text information.
The embodiment of the invention provides a generation scheme of a geo-fence. The method comprises the steps of obtaining the name of a target geographic entity and azimuth information corresponding to the target geographic entity through target text information, obtaining longitude and latitude information of the target geographic entity according to the name of the target geographic entity, and finally accurately obtaining a geographic fence corresponding to the target text information according to the longitude and latitude information and the azimuth information of the target geographic entity, thereby solving the technical problem that in the related technology, the range of the geographic fence can be determined manually according to text description and a map tool, so that the efficiency of obtaining the geographic fence is low.
It should be understood by those skilled in the art that the structure shown in fig. 10 is only an example, and the computer terminal may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 10 is a diagram illustrating a structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present invention also provide a computer-readable storage medium. Optionally, in this embodiment, the storage medium may be configured to store program codes executed by the geo-fence generating method provided in the first embodiment.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring target text information, wherein the target text information is used for describing the boundary of a target area; processing the target text information, and determining the name of the target geographic entity on the boundary and azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; and determining the geo-fence corresponding to the target text information according to the longitude and latitude information and the direction information of the target geographic entity.
The storage medium is further configured to store program code for performing the steps of: processing the target text information, and determining the name of the target geographic entity and the azimuth information corresponding to the target geographic entity on the boundary, wherein the processing comprises the following steps: extracting information of the target text information through a preset algorithm to obtain the name of the target geographic entity; and obtaining the azimuth information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression of the azimuth information.
The storage medium is further configured to store program code for performing the steps of: determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity comprises the following steps: obtaining a POI database, wherein the POI database comprises: the name of the entity point, the address information of the entity point and the longitude and latitude information of the entity point; obtaining a road network library, wherein the road network library comprises: the method comprises the following steps of (1) carrying out road name, address information of a road, longitude and latitude of a road starting point and longitude and latitude of a road finishing point; and determining the latitude and longitude information of the target geographic entity according to the names of the POI database, the road network library and the target geographic entity.
The storage medium is further configured to store program code for performing the steps of: determining longitude and latitude information of the target geographic entity according to the names of the POI database, the road network database and the target geographic entity comprises the following steps: determining a type of the target geographic entity, wherein the type is one of: solid points and roads; if the type of the target geographic entity is an entity point, acquiring longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm; and if the type of the target geographic entity is a road, acquiring the longitude and latitude information of the target geographic entity in a road network library through a preset algorithm IV.
The storage medium described above is further configured to store program code for performing the steps of: if the type of the target geographic entity is an entity point, obtaining longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm comprises the following steps: acquiring a geographical entity list from a POI database based on a fuzzy search algorithm according to the name of a target geographical entity, wherein the geographical entity list consists of the name of an initial geographical entity and longitude and latitude information corresponding to the initial geographical entity; and obtaining the longitude and latitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity.
The storage medium is further configured to store program code for performing the steps of: obtaining the longitude and latitude information of the target geographic entity through a third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity comprises the following steps: acquiring context information of target text information; according to the context information, performing cross calculation on the name of the target geographic entity and the name of the initial geographic entity through a third preset algorithm to obtain a plurality of similarity values, wherein the similarity values represent the similarity between the name of the target geographic entity and the name of the initial geographic entity; and taking the longitude and latitude value of the initial geographic entity with the highest similarity as the longitude and latitude information of the target geographic entity.
The storage medium is further configured to store program code for performing the steps of: determining the geo-fence corresponding to the target text information according to the latitude and longitude information and the azimuth information of the target geographic entity comprises the following steps: obtaining a target connection strategy through a fifth preset algorithm according to the longitude and latitude information and the azimuth information of the target geographic entity; connecting the longitude and latitude information of the target geographic entity according to a target connection strategy to obtain a longitude and latitude polygon; and taking the longitude and latitude polygon as the geo-fence corresponding to the target text information.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is substantially or partly contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A geo-fencing generation method, comprising:
acquiring target text information, wherein the target text information is used for describing the boundary of a target area;
processing the target text information, and determining the name of the target geographic entity on the boundary and the azimuth information corresponding to the target geographic entity;
determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity;
and determining the geo-fence corresponding to the target text information according to the latitude and longitude information and the azimuth information of the target geographic entity.
2. The method of claim 1, wherein processing the target text information to determine the name of the target geographic entity on the boundary and the orientation information corresponding to the target geographic entity comprises:
extracting information of the target text information through a preset algorithm to obtain the name of the target geographic entity;
and obtaining the azimuth information corresponding to the name of the target geographic entity from the target text information through a second preset algorithm according to the regular expression of the azimuth information.
3. The method of claim 2, wherein determining the latitude and longitude information of the target geographic entity based on the name of the target geographic entity comprises:
obtaining a POI database, wherein the POI database comprises: the name of the entity point, the address information of the entity point and the longitude and latitude information of the entity point;
obtaining a road network library, wherein the road network library comprises: the method comprises the following steps of (1) carrying out road name, address information of a road, longitude and latitude of a road starting point and longitude and latitude of a road finishing point;
and determining the longitude and latitude information of the target geographic entity according to the POI database, the road network database and the name of the target geographic entity.
4. The method of claim 3, wherein determining the latitude and longitude information of the target geographic entity based on the POI database, the routing library and the name of the target geographic entity comprises:
determining a type of the target geographic entity, wherein the type is one of: solid points and roads;
if the type of the target geographic entity is an entity point, obtaining longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm;
and if the type of the target geographic entity is a road, acquiring the longitude and latitude information of the target geographic entity in the road network library through a preset algorithm IV.
5. The method of claim 4, wherein if the type of the target geographic entity is an entity point, obtaining the longitude and latitude information of the target geographic entity in the POI database through a third preset algorithm comprises:
acquiring a geographic entity list from the POI database based on a fuzzy search algorithm according to the name of the target geographic entity, wherein the geographic entity list is composed of the name of an initial geographic entity and longitude and latitude information corresponding to the initial geographic entity;
and obtaining the longitude and latitude information of the target geographic entity through the third preset algorithm according to the name of the target geographic entity and the name of the initial geographic entity.
6. The method of claim 5, wherein obtaining the latitude and longitude information of the target geographic entity according to the name of the target geographic entity and the name of the initial geographic entity through the third preset algorithm comprises:
acquiring context information of the target text information;
according to the context information, performing cross calculation on the name of the target geographic entity and the name of the initial geographic entity through a third preset algorithm to obtain a plurality of similarity values, wherein the similarity values represent the similarity between the name of the target geographic entity and the name of the initial geographic entity;
and taking the longitude and latitude value of the initial geographic entity with the highest similarity as the longitude and latitude information of the target geographic entity.
7. The method of claim 1, wherein determining the geo-fence corresponding to the target text information according to the latitude and longitude information and the orientation information of the target geographic entity comprises:
obtaining a target connection strategy through a fifth preset algorithm according to the longitude and latitude information and the azimuth information of the target geographic entity;
connecting the longitude and latitude information of the target geographic entity according to the target connection strategy to obtain a longitude and latitude polygon;
and taking the longitude and latitude polygon as a geo-fence corresponding to the target text information.
8. A method for generating a geo-fence, comprising:
acquiring target text information sent by a client, wherein the target text information is used for describing the boundary of a target area;
processing the target text information in a server, and determining the name of the target geographic entity on the boundary and azimuth information corresponding to the target geographic entity; determining longitude and latitude information of the target geographic entity according to the name of the target geographic entity; determining a geo-fence corresponding to the target text information according to the longitude and latitude information and the direction information of the target geographic entity;
returning the geofence to the client.
9. A geo-fencing generation apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring target text information, and the target text information is used for describing the boundary of a target area;
the processing unit is used for processing the target text information and determining the name of the target geographic entity on the boundary and the azimuth information corresponding to the target geographic entity;
the first determining unit is used for determining the longitude and latitude information of the target geographic entity according to the name of the target geographic entity;
and the second determining unit is used for determining the geo-fence corresponding to the target text information according to the latitude and longitude information of the target geographic entity and the direction information.
10. A computer-readable storage medium, characterized in that the storage medium stores a program, wherein when the program runs, the apparatus on which the storage medium is located is controlled to execute the method for generating a geo-fence according to any one of claims 1 to 7.
11. A processor configured to execute a program, wherein the program when executed performs the method for geo-fence generation as claimed in any one of claims 1 to 7.
CN202210429371.6A 2022-04-22 2022-04-22 Geo-fence generation method and device, storage medium and processor Pending CN115017242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210429371.6A CN115017242A (en) 2022-04-22 2022-04-22 Geo-fence generation method and device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210429371.6A CN115017242A (en) 2022-04-22 2022-04-22 Geo-fence generation method and device, storage medium and processor

Publications (1)

Publication Number Publication Date
CN115017242A true CN115017242A (en) 2022-09-06

Family

ID=83066945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210429371.6A Pending CN115017242A (en) 2022-04-22 2022-04-22 Geo-fence generation method and device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN115017242A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115248837A (en) * 2022-09-21 2022-10-28 中科雨辰科技有限公司 Data processing system for obtaining geographic entity of text

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628943A (en) * 2018-03-28 2018-10-09 北京三快在线科技有限公司 A kind of data processing method, device and electronic equipment
CN110765219A (en) * 2019-08-05 2020-02-07 上海晶赞融宣科技有限公司 Geo-fence generation method and device, computer equipment and storage medium
CN112687125A (en) * 2020-12-09 2021-04-20 北京中交兴路车联网科技有限公司 Early warning method and device after illegal parking on road, storage medium and terminal
US20210168556A1 (en) * 2019-11-29 2021-06-03 Samsung Electronics Co., Ltd. Electronic device and method for providing geofencing service
CN114202445A (en) * 2021-12-14 2022-03-18 深圳壹账通智能科技有限公司 Method, device and equipment for processing fence of study area based on artificial intelligence

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628943A (en) * 2018-03-28 2018-10-09 北京三快在线科技有限公司 A kind of data processing method, device and electronic equipment
CN110765219A (en) * 2019-08-05 2020-02-07 上海晶赞融宣科技有限公司 Geo-fence generation method and device, computer equipment and storage medium
US20210168556A1 (en) * 2019-11-29 2021-06-03 Samsung Electronics Co., Ltd. Electronic device and method for providing geofencing service
CN112687125A (en) * 2020-12-09 2021-04-20 北京中交兴路车联网科技有限公司 Early warning method and device after illegal parking on road, storage medium and terminal
CN114202445A (en) * 2021-12-14 2022-03-18 深圳壹账通智能科技有限公司 Method, device and equipment for processing fence of study area based on artificial intelligence

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘金奎: "无人机电子围栏规划中关键技术的研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》, 15 November 2018 (2018-11-15), pages 031 - 111 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115248837A (en) * 2022-09-21 2022-10-28 中科雨辰科技有限公司 Data processing system for obtaining geographic entity of text
CN115248837B (en) * 2022-09-21 2022-12-23 中科雨辰科技有限公司 Data processing system for obtaining geographic entity of text

Similar Documents

Publication Publication Date Title
EP2975555A1 (en) Method and apparatus for displaying point of interest
US20160119748A1 (en) Pushing information
EP3197213A1 (en) Network access method and mobile communication terminal
CN104202396A (en) Information sharing method, device, server, terminal device and system
CN105373559A (en) Geographic information acquisition method and geographic information acquisition system
CN109800360B (en) Cell query method, cell query device, electronic equipment and storage medium
CN115017242A (en) Geo-fence generation method and device, storage medium and processor
CN111368860B (en) Repositioning method and terminal equipment
CN110020150B (en) Information recommendation method and device
CN114398973A (en) Media content label identification method, device, equipment and storage medium
WO2014036879A1 (en) Method, device, and terminal for sns system application prompt
CN110266834B (en) Area searching method and device based on internet protocol address
CN105466415B (en) A kind of shop localization method and mobile terminal
CN115661852B (en) Map segmentation method, map segmentation device, computer readable storage medium and processor
CN114299073A (en) Image segmentation method, image segmentation device, storage medium, and computer program
CN105025436A (en) Information acquiring method and mobile terminal
EP2884438A9 (en) Method and device for grouping contacts in social network
CN112860828B (en) Positioning method and device, electronic equipment and storage medium
CN109379704B (en) Method, device and equipment for correcting regional information of short message and storage medium
CN111611338A (en) Dynamic map clipping method and device and storage medium
CN109583453B (en) Image identification method and device, data identification method and terminal
CN112747733A (en) Navigation method, navigation device, storage medium and electronic device
CN111678519A (en) Intelligent navigation method, device and storage medium
CN111339394A (en) Method and device for acquiring information
CN104280027A (en) Multi-user map display method, device and system

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