CN115391648A - Method and device for searching geographic information of interest point and electronic equipment - Google Patents

Method and device for searching geographic information of interest point and electronic equipment Download PDF

Info

Publication number
CN115391648A
CN115391648A CN202210988214.9A CN202210988214A CN115391648A CN 115391648 A CN115391648 A CN 115391648A CN 202210988214 A CN202210988214 A CN 202210988214A CN 115391648 A CN115391648 A CN 115391648A
Authority
CN
China
Prior art keywords
determining
interest
point
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210988214.9A
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.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce 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 Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202210988214.9A priority Critical patent/CN115391648A/en
Publication of CN115391648A publication Critical patent/CN115391648A/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/9535Search customisation based on user profiles and personalisation
    • 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
    • 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

Abstract

The invention discloses a method and a device for searching geographical information of a point of interest and electronic equipment. Wherein, the method comprises the following steps: determining current geographical position information of a user, wherein the geographical position information comprises coordinate points of the user in a target map; acquiring a circular region which takes the coordinate point as a circle center and takes a preset length as a radius, and determining a target rectangular region comprising a preset area of the circular region; acquiring all interest points in the target rectangular area, and respectively determining the distance between each interest point and the coordinate point; and determining a target set according to a comparison result between the distance and a preset search distance. The invention solves the technical problems of large calculation amount of the position information of the determined interest point and long search response time of the interest point in the related technology.

Description

Method and device for searching geographic information of interest point and electronic equipment
Technical Field
The invention relates to the technical field of position processing, in particular to a method and a device for searching geographic information of a point of interest and electronic equipment.
Background
With the development of smart phones and sensor technologies, location Based Service (LBS) applications are increasing. Most application software relates to information or services related to location functions, and most companies more or less use the functions of performing data analysis and recommendation based on the current geographic location coordinates of users and guiding surrounding resources to promote business development in the business development process. The database Of the application software contains a large number Of Points Of Interest (POI), such as basic information data Of hotels, theaters, libraries and gas stations, the basic information data contains longitude and latitude information, the distance, longitude and latitude and other information Of the POI in the peripheral range are obtained based on the current position (longitude and latitude) Of the user, and the POI with the preset distance around the current user is determined by comparing the current position information Of the user with the positions Of the POI in the database one by one in the related art. The method not only increases the calculation amount of the server, but also has longer search response time and poor user experience.
Disclosure of Invention
The embodiment of the invention provides a method, a device and electronic equipment for searching geographical information of interest points, which at least solve the technical problems of large calculation amount of position information of interest points and long search response time of the interest points in the related technology.
According to an aspect of the embodiments of the present invention, there is provided a method for searching geographic information of a point of interest, including: determining current geographical position information of a user, wherein the geographical position information comprises coordinate points of the user in a target map; acquiring a circular region which takes the coordinate point as a circle center and takes a preset length as a radius, and determining a target rectangular region comprising a preset area of the circular region; acquiring all POIs (points of interest) in the target rectangular area, and respectively determining the distance between each POI and the coordinate point; and determining a target POI set according to a comparison result between the distance and a preset search distance.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for searching geographic information of a point of interest, including: the first determining unit is used for determining the current geographic position information of the user, and the geographic position information comprises coordinate points of the user in a target map; the second determining unit is used for acquiring a circular region which takes the coordinate point as a circle center and takes a preset length as a radius, and determining a target rectangular region which comprises a preset area of the circular region; the acquisition unit is used for acquiring all POI (point of interest) in the target rectangular area and respectively determining the distance between each POI and the coordinate point; and the third determining unit is used for determining a target POI set according to a comparison result between the distance and a preset searching distance.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the above-mentioned point of interest geographic information search method through the computer program.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above-mentioned point of interest geographic information search method when running.
In the embodiment of the invention, the current geographic position information of a user is determined, and the geographic position information comprises coordinate points of the user in a target map; acquiring a circular region which takes the coordinate point as a circle center and takes a preset length as a radius, and determining a target rectangular region comprising a preset area of the circular region; acquiring all POIs (points of interest) in the target rectangular area, and respectively determining the distance between each POI and the coordinate point; in the method, because the position of the user is taken as the center of a circle, a circular area with preset length as the radius is used, and a point of interest (POI) in a rectangular area comprising the circular area is searched, the distance between the current position of the user and all POI is not required to be compared; the method and the device greatly reduce the POI searching range, improve the POI searching efficiency and response time, reduce system computing resources, and further solve the technical problems of large calculation amount of the position information of the determined interest point and long response time of the interest point searching in the related technology.
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 diagram illustrating an application environment of an alternative point of interest geographic information search method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application environment of an alternative point of interest geographic information search method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an alternative method for searching geographic information of a point of interest according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a point of interest search according to an alternative point of interest geographic information search method in the related art;
FIG. 5 is a schematic view of a point of interest search according to another alternative point of interest geographic information search method in the related art;
FIG. 6 is a schematic diagram of a point of interest search according to yet another alternative point of interest geographic information search method in the related art;
FIG. 7 is a schematic structural diagram of an alternative apparatus for searching geographic information of a point of interest according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an alternative electronic device 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. Moreover, 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.
According to an aspect of the embodiments of the present invention, a method for searching geographic information of a point of interest is provided, and optionally, as an optional implementation manner, the method for searching geographic information of a point of interest may be, but is not limited to be, applied to an application environment as shown in fig. 1. The application environment comprises: the terminal equipment 102, the network 104 and the server 106 are in man-machine interaction with a user. The user 108 and the terminal device 102 can perform human-computer interaction, and the terminal device 102 runs a point-of-interest geographic information search application program. The terminal device 102 includes a human-machine interaction screen 1022, a processor 1024, and a memory 1026. The man-machine interaction screen 1022 is used for displaying geographic location information of a plurality of POIs; the processor 1024 is configured to obtain current geographical location information of the current user. The memory 1026 is used for storing the current geographical location information of the user and the geographical location information of the POI.
In addition, the server 106 includes a database 1062 and a processing engine 1064, where the database 1062 is used to store the current geographic location information of the user and the geographic location information of the POI. The processing engine 1064 is configured to determine current geographic location information of the user, where the geographic location information includes a coordinate point of the user in the target map; acquiring a circular region which takes the coordinate point as a circle center and takes a preset length as a radius, and determining a target rectangular region comprising a preset area of the circular region; acquiring all POIs (points of interest) in the target rectangular area, and respectively determining the distance between each POI and the coordinate point; determining a target POI set according to a comparison result between the distance and a preset search distance; and displaying the target POI set at the client side of the terminal equipment 102.
In one or more embodiments, the point of interest geographic information search method described above in the present application may be applied to the application environment shown in fig. 2. As shown in fig. 2, a human-computer interaction may be performed between a user 202 and a user device 204. The user equipment 204 includes a memory 206 and a processor 208. The user equipment 204 in this embodiment may refer to, but is not limited to, performing the operation performed by the terminal equipment 102 to obtain the target POI set.
Optionally, the terminal device 102 and the user device 204 include, but are not limited to, a mobile phone, a set-top box, a television, a tablet computer, a notebook computer, a PC, a vehicle-mounted electronic device, a wearable device, and the like, and the network 104 may include, but is not limited to, a wireless network or a wired network. Wherein, this wireless network includes: WIFI and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The server 106 may include, but is not limited to, any hardware device capable of performing calculations. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is only an example, and this is not limited in this embodiment.
In the related art, in the process of obtaining the interest points, the interest points in the preset distance around the current user are determined by comparing the current position information of the user with the positions of the interest points in the database one by one. The method not only increases the calculation amount of the server, but also has longer search response time and poor user experience.
In order to solve the above technical problem, as an optional implementation manner, as shown in fig. 3, an embodiment of the present invention provides a method for searching geographic information of a point of interest, including the following steps:
s302, determining the current geographic position information of the user, wherein the geographic position information comprises coordinate points of the user in a target map.
Here, the geographical location information of the user includes longitude and latitude information where the user is located, and a location where the user of the map software running in the terminal of the user is located.
S304, acquiring a circular region with the coordinate point as a circle center and a preset length as a radius, and determining a target rectangular region with a preset area of the circular region.
As shown in fig. 4, a circular area 404 is determined according to a search radius set by a user or a default search radius of a system with a coordinate point 404a as a center, and in order to improve the accuracy of the search, a plurality of rectangular areas including the circular area are used as target rectangular areas, where a preset area may be set as needed, such as the rectangular area 402 in fig. 4.
S306, acquiring all POIs in the target rectangular area, and respectively determining the distance between each POI and the coordinate point.
As shown in fig. 4, all the points of interest POI obtained in the target rectangular area are represented by a hexagon 402a, and then the distance between each POI and the coordinate point 404a is calculated.
And S308, determining a target POI set according to a comparison result between the distance and a preset search distance.
Specifically, for example, the method includes, but is not limited to, determining POIs corresponding to the distance being smaller than or equal to the preset length as the target POI set.
Here, the set of target POIs is determined, including but not limited to, by the search radius pointed by the user, i.e., all POIs within the search circle area 404 are searched.
In the embodiment of the invention, the current geographic position information of a user is determined, and the geographic position information comprises coordinate points of the user in a target map; acquiring a circular region which takes the coordinate point as a circle center and takes a preset length as a radius, and determining a target rectangular region comprising a preset area of the circular region; acquiring all POIs (points of interest) in the target rectangular area, and respectively determining the distance between each POI and the coordinate point; in the method, because the position of the user is taken as the center of a circle, a circular area with preset length as the radius is used, and a point of interest (POI) in a rectangular area comprising the circular area is searched, the distance between the current position of the user and all POI is not required to be compared; the method and the device greatly reduce the POI searching range, improve the POI searching efficiency and response time, reduce system computing resources, and further solve the technical problems of large calculation amount and long response time of the position information of the determined interest point in the related technology.
In one or more embodiments, the determining the current geographic location information of the user includes:
acquiring current longitude and latitude data of a user; and determining a coordinate point of a target map associated with the application logged in by the user according to the longitude and latitude data.
Here, the current longitude and latitude information of the user is obtained through the LBS service corresponding to the user terminal, but not limited thereto. After longitude and latitude information of a user is acquired, coordinate points corresponding to the longitude and the latitude are determined in a target map associated with an application logged in by the user.
In one or more embodiments, the determining a target rectangular region including a preset area of the circular region includes:
determining a rectangular set in a preset range including the circular area according to the longitude and latitude data of the circular area;
determining a target rectangle set inscribed with the circular area from the rectangle set;
and determining the region where the target rectangle set is located as the target rectangle region.
Specifically, a target rectangle set inscribed in the circular region is determined from the rectangle sets, for example, a rectangular region 502 including a circular region 504 in the target rectangle set is determined. And determining the region where the target rectangle set is located as the target rectangle region, so that the search error is avoided, the search range can be further narrowed, and the calculation amount of a server is reduced.
In one or more embodiments, the determining a target rectangle aggregation from the rectangle set that is inscribed in the circular region comprises:
determining a square inscribed in the circular area from the rectangular set;
determining the region where the target rectangle set is located as the target rectangle region, including:
and determining the area where the square is located as the target rectangular area.
Specifically, by determining a square inscribed in the circular region from the set of rectangles, for example, a square region 602 including a circular region 604 in the target set of rectangles. The area where the square area 602 is located is determined as the target rectangular area, so that the search error is avoided, the search range can be further narrowed, and the calculation amount of a server is reduced.
In one or more embodiments, the determining a target rectangular region including the circular region comprises:
determining the position of the POI outside the circle outside the circular area;
determining a set of rectangular areas including a preset number of the out-of-circle POIs as the target rectangular area.
For example, as shown in fig. 4, a hexagon 402 is an out-of-circle POI outside a circular region 404, and it is assumed that when the preset number is 8, it can be determined that the current rectangular region 402 is the target rectangular region or one of the target rectangular regions.
In one or more embodiments, the obtaining all POI points of interest in the target rectangular region includes:
acquiring a longitude range and a latitude range of a target rectangular area in a target range based on a spatial analysis tool kit; and acquiring all the interest points in the longitude range and the latitude range.
Acquiring a longitude range and a latitude range of a target rectangular area in a target range based on a spatial tool kit; and acquiring all POI (point of interest) in the longitude range and the latitude range.
In one or more embodiments, the determining the distance between each POI and the coordinate point comprises:
respectively determining the position information of each POI;
and respectively determining the distance between each POI and the coordinate point by using a distance algorithm according to the position information of each POI.
Specifically, according to the standard algorithm GEO-HASH for calculating the positions of two points in the geographic position, an arc distance is formed between the two points instead of a straight line, but the distance from the geographic position of the world to a city may be reduced to a point, and the distance between the two points can be regarded as a plane, and then the distance between two coordinate points which become the plane is calculated. In the embodiment of the present invention, according to the position information of each POI, a GEO-HASH distance algorithm may be used to determine a distance between each POI and the coordinate point.
In one or more embodiments, the point of interest geographic information search further comprises: acquiring recommended interest points matched with the user according to a preset interest point screening model; and displaying the recommended interest points in the application logged in by the user.
Specifically, the interest point screening module includes, but is not limited to, analyzing interest and hobbies of the user through big data and historically accessing interest points to obtain recommended interest points matched with the user.
In the related art, with the development of smart phones and sensor technologies, LBS (Location based service) applications are gradually increasing. Most software relates to position information service, and most companies can more or less use the functions of analyzing and recommending data based on the current geographic position coordinates of users and guiding surrounding resources to promote business development in the business development process.
There are many APPs currently on the market that have their own LBS-based services, but there are also many limitations and problems:
(1) And (4) openness. The service algorithm of the LBS generally does not go to the outside, and is only a Demo version in time to the outside, and cannot be directly used in the service of the LBS.
(2) And (4) service aggregation. Pure geographic location services are relatively independent from algorithms, and generally can play a role only by being deeply integrated into business scene aggregation, and the business uniqueness generates a natural service barrier and cannot be directly used.
(3) Performance and accuracy. The performance requirements and accuracy of final recommendation, data analysis and the like are basic requirements of business so as to achieve popularization of commercial functions.
In order to solve the above technical problem, in an application embodiment, the above method for searching geographic information of a point of interest as shown in fig. 5 further includes the following steps:
1. it is assumed that there is a large amount of POI (e.g., gas station) basic information data on the currently applied service, and each gas station information contains longitude and latitude information.
2. Gas stations within a fixed distance range of the perimeter are obtained based on the user's current location (longitude, latitude) and sorted by distance from near to far.
2.1, calculating a rectangular range of a latitude and longitude range by using a general spatial tool kit based on the current coordinate point (user longitude and user latitude) and the radius (such as the distance of 20 km), and obtaining four vertexes (including a max longitude point, a min longitude point, a max latitude point and a min latitude point) of the rectangular range.
(2) Based on the four longitude and latitude range points, the longitude and latitude points of the gas station stored in the data can be directly matched for query and matching, and the range-reduced points are obtained. The hexagon 402a as shown in fig. 4 represents the above-mentioned gasoline station. According to the standard algorithm GEO-HASH calculated by two points of geographic positions, an arc-shaped distance is formed between the two points instead of a straight line, but the distance between the two points can be reduced into one point from the geographic position of the whole world to a city, the distance between the two points can be regarded as a plane, and then the distance between the two coordinate points which become the plane is calculated. In the embodiment of the present invention, according to the position information of each POI, the distance between each POI and the coordinate point may be determined by using a GEO-HASH distance algorithm.
According to the actual calculation result of the standard GEO-HASH algorithm and the simplified algorithm, the error of the same city is between centimeters and decimeters, and the influence on the applied service is not influenced.
According to the embodiment of the invention, through the simplified distance calculation formula, the actual accurate distance can be calculated at a high speed in the memory of the server or the terminal and the CPU, POI exceeding the radius length are excluded, and the accurate POI set is finally screened out.
3. Precision matching
The above steps can obtain the coordinates of the peripheral oil stations in a fuzzy manner, and further accurately calculate whether the distance between each oil station and the user point is within the radius distance.
The embodiment of the invention also has the following beneficial technical effects:
1. the method has the advantages that the accurate complex calculation model of the standard two-point distance is fully simplified, and the POI is accurately positioned by fully using the combination of specific scenes around the current position of the user.
2. The simplification of the calculation model greatly reduces the consumption of the calculation capacity of the server, and greatly improves the POI search service throughput and the response time.
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.
According to another aspect of the embodiment of the present invention, there is also provided a point of interest geographic information search apparatus for implementing the above point of interest geographic information search method. As shown in fig. 7, the apparatus includes:
a first determining unit 702, configured to determine current geographic location information of a user, where the geographic location information includes a coordinate point of the user in a target map;
a second determining unit 704, configured to acquire a circular region with the coordinate point as a center and a preset length as a radius, and determine a target rectangular region including a preset area of the circular region;
an obtaining unit 706, configured to obtain all the POI in the target rectangular region, and respectively determine a distance between each POI and the coordinate point;
a third determining unit 708, configured to determine a target POI set according to a comparison result between the distance and a preset search distance.
In the embodiment of the invention, the current geographic position information of a user is determined, wherein the geographic position information comprises a coordinate point of the user in a target map; acquiring a circular region which takes the coordinate point as a circle center and takes a preset length as a radius, and determining a target rectangular region comprising a preset area of the circular region; acquiring all POIs (points of interest) in the target rectangular area, and respectively determining the distance between each POI and the coordinate point; according to the method for determining the target POI set according to the comparison result between the distance and the preset search distance, in the method, because the position of the user is taken as the circle center, a circular area with the preset length as the radius is used, POI of interest points in a rectangular area comprising the circular area are searched, and the distance between the current position of the user and all POI is not required to be compared; the method and the device greatly reduce the POI searching range, improve the POI searching efficiency and response time, reduce system computing resources, and further solve the technical problems of large calculation amount and long response time of the position information of the determined interest point in the related technology.
In one or more embodiments, the first determining unit 702 includes:
the first acquisition module is used for acquiring the current longitude and latitude data of the user;
and the first determining module is used for determining the coordinate point of the target map associated with the application where the user logs in according to the longitude and latitude data.
In one or more embodiments, the second determining unit 704 includes:
the second determination module is used for determining a rectangular set in a preset range including the circular area according to the longitude and latitude data of the circular area;
a third determining module, configured to determine, from the rectangle set, a target rectangle set inscribed in the circular region;
and the fourth determining module is used for determining the area where the target rectangular set is located as the target rectangular area.
In one or more embodiments, the third determining module includes:
a first determining subunit, configured to determine a square inscribed in the circular region from the rectangle set;
the fourth determining module includes:
and the second determining subunit is used for determining the area where the square is located as the target rectangular area.
In one or more embodiments, the second determining unit 704 includes:
the fifth determining module is used for determining the position of the POI outside the circle area;
a sixth determining module, configured to determine a set of rectangular areas including a preset number of the out-of-circle POIs as the target rectangular area.
In one or more embodiments, the obtaining unit 706 includes:
the second acquisition module is used for acquiring the longitude range and the latitude range of the target rectangular area in the target range based on the spatial toolkit;
and the third acquisition module is used for acquiring all POI (point of interest) in the longitude range and the latitude range.
In one or more embodiments, the obtaining unit 706 further includes:
a seventh determining module, configured to determine location information of each POI respectively;
and the eighth determining module is used for determining the distance between each POI and the coordinate point by utilizing a GEO-HASH distance algorithm according to the position information of each POI.
In one or more embodiments, the point of interest geographic information means further comprises:
the acquisition matching unit is used for acquiring recommended interest points matched with the user according to a preset interest point screening model;
and the display unit is used for displaying the recommended interest points in the application logged in by the user.
According to another aspect of the embodiment of the present application, there is also provided an electronic device for implementing the above point of interest geographic information search method, where the electronic device may be a terminal device or a server shown in fig. 1. The present embodiment takes the electronic device as a server as an example for explanation. As shown in fig. 8, the electronic device comprises a memory 802 and a processor 804, the memory 802 having a computer program stored therein, the processor 804 being arranged to perform the steps of any of the above-described method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
the method includes the steps that S1, current geographical position information of a user is determined, and the geographical position information comprises coordinate points of the user in a target map;
s2, acquiring a circular region with the coordinate point as a circle center and a preset length as a radius, and determining a target rectangular region with a preset area of the circular region;
s3, acquiring all POIs (points of interest) in the target rectangular area, and respectively determining the distance between each POI and the coordinate point;
and S4, determining a target POI set according to a comparison result between the distance and a preset search distance.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration, and the electronic device 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. 8 is a diagram illustrating a structure of the electronic device. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
The memory 802 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for searching geographic information of a point of interest in the embodiments of the present application, and the processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, so as to implement the above-mentioned method for searching geographic information of a point of interest. The memory 802 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 802 can further include memory located remotely from the processor 804, which can be connected to the terminal over 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 memory 802 may be, but is not limited to, specifically configured to store data information of a popup. As an example, as shown in fig. 8, the memory 802 may include, but is not limited to, a first determining unit 702, a second determining unit 704, an obtaining unit 706, and a third determining unit 708 in the point of interest geographic information searching apparatus. In addition, the device may further include, but is not limited to, other module units in the above-mentioned point of interest geographic information search apparatus, which are not described in detail in this example.
Optionally, the transmitting device 806 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 806 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 806 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 808 for displaying pop-up pages; and a connection bus 810 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. The nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, and other electronic devices, may become a node in the blockchain system by joining the Peer-To-Peer network.
In one or more embodiments, the present application also provides a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to enable the computer device to execute the point of interest geographic information searching method. Wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, determining current geographical position information of a user, wherein the geographical position information comprises coordinate points of the user in a target map;
s2, acquiring a circular region with the coordinate point as a circle center and a preset length as a radius, and determining a target rectangular region with a preset area of the circular region;
s3, acquiring all POIs (points of interest) in the target rectangular area, and respectively determining the distance between each POI and the coordinate point;
and S4, determining a target POI set according to a comparison result between the distance and a preset search distance.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing 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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described in detail in a certain embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or 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 a plurality of 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 above is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, a plurality of modifications and embellishments can be made without departing from the principle of the present invention, and these modifications and embellishments should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for searching geographic information of interest points is characterized by comprising the following steps:
determining current geographical position information of a user, wherein the geographical position information comprises coordinate points of the user in a target map;
acquiring a circular region which takes the coordinate point as a circle center and takes a preset length as a radius, and determining a target rectangular region comprising a preset area of the circular region;
acquiring all interest points in the target rectangular area, and respectively determining the distance between each interest point and the coordinate point;
and determining a target interest point set according to a comparison result between the distance and a preset search distance.
2. The method of claim 1, wherein determining the current geographic location information of the user comprises:
acquiring current longitude and latitude data of a user;
and determining a coordinate point of a target map associated with the application logged in by the user according to the longitude and latitude data.
3. The method according to claim 1 or 2, wherein the determining a target rectangular region comprising a preset area of the circular region comprises:
determining a rectangular set in a preset range including the circular area according to the longitude and latitude data of the circular area;
determining a target rectangle set inscribed with the circular area from the rectangle set;
and determining the area where the target rectangular set is located as the target rectangular area.
4. The method according to claim 1 or 2, wherein the determining a target rectangular region comprising a preset area of the circular region comprises:
determining the position of the out-of-circle interest point outside the circular area;
determining a set of rectangular regions including a preset number of the out-of-circle interest points as the target rectangular region.
5. The method of claim 1, wherein the obtaining all interest points in the target rectangular region comprises:
acquiring a longitude range and a latitude range of a target rectangular area in a target range based on a space analysis tool kit;
and acquiring all the interest points in the longitude range and the latitude range.
6. The method of claim 1, wherein the separately determining a distance between each point of interest and the coordinate point comprises:
respectively determining the position information of each interest point;
and respectively determining the distance between each interest point and the coordinate point by utilizing a preset distance algorithm according to the position information of each interest point.
7. The method of claim 2, further comprising:
acquiring recommended interest points matched with the user according to a preset interest point screening model;
and displaying the recommended interest points in the application logged in by the user.
8. An apparatus for searching geographic information of a point of interest, comprising:
the first determination unit is used for determining the current geographic position information of the user, and the geographic position information comprises coordinate points of the user in a target map;
the second determining unit is used for acquiring a circular area which takes the coordinate point as a circle center and takes a preset length as a radius;
the acquisition unit is used for acquiring all interest points in the target rectangular area and respectively determining the distance between each interest point and the coordinate point;
and the third determining unit is used for determining a target interest point set according to a comparison result between the distance and a preset searching distance.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210988214.9A 2022-08-17 2022-08-17 Method and device for searching geographic information of interest point and electronic equipment Pending CN115391648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210988214.9A CN115391648A (en) 2022-08-17 2022-08-17 Method and device for searching geographic information of interest point and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210988214.9A CN115391648A (en) 2022-08-17 2022-08-17 Method and device for searching geographic information of interest point and electronic equipment

Publications (1)

Publication Number Publication Date
CN115391648A true CN115391648A (en) 2022-11-25

Family

ID=84120226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210988214.9A Pending CN115391648A (en) 2022-08-17 2022-08-17 Method and device for searching geographic information of interest point and electronic equipment

Country Status (1)

Country Link
CN (1) CN115391648A (en)

Similar Documents

Publication Publication Date Title
US8352480B2 (en) Methods, apparatuses and computer program products for converting a geographical database into a map tile database
CN102204374B (en) Managing a location database for network-based positioning system
US20150186389A1 (en) Recommending Points of Interests in a Region
CN104573042B (en) The determination method and device of POI
CN105869513B (en) Method and device for displaying associated annotation points on electronic map interface
WO2015154438A1 (en) Positioning method and device
KR20160010278A (en) Method and apparatus for displaying point of interest
CN107092623B (en) Interest point query method and device
US8996551B2 (en) Managing geographic region information
RU124014U1 (en) PERSONALIZED INFORMATION SEARCH SYSTEM
CN104408043A (en) Information processing method and server
CN111651685A (en) Interest point obtaining method and device, electronic equipment and storage medium
CN104935462A (en) Deploying method and device for terminal servers
CN104333564A (en) Target operation method, system and device
CN104320848B (en) The system and method for indoor positioning is realized based on cloud computing
CN107567071B (en) Method and equipment for inquiring wireless hotspot
CN109996185A (en) The localization method and device of terminal, storage medium, electronic device
KR101260425B1 (en) Cloud-Based AR System
US9875321B2 (en) Geo-location custom indexes
CN107995375A (en) A kind of information-pushing method, mobile terminal and storage medium
CN110020150B (en) Information recommendation method and device
CN108427710B (en) Enterprise data visualization processing method, server and storage medium
CN105072169A (en) Intelligent information display system of culture exhibition hall
CN111143639A (en) User intimacy calculation method, device, equipment and medium
CN115391648A (en) Method and device for searching geographic information of interest point and electronic equipment

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