WO2021135106A1 - Geographic position data matching method, apparatus, electronic device and storage medium - Google Patents

Geographic position data matching method, apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2021135106A1
WO2021135106A1 PCT/CN2020/098987 CN2020098987W WO2021135106A1 WO 2021135106 A1 WO2021135106 A1 WO 2021135106A1 CN 2020098987 W CN2020098987 W CN 2020098987W WO 2021135106 A1 WO2021135106 A1 WO 2021135106A1
Authority
WO
WIPO (PCT)
Prior art keywords
geographic location
coordinate
distance
diagonal distance
interest point
Prior art date
Application number
PCT/CN2020/098987
Other languages
French (fr)
Chinese (zh)
Inventor
喻宁
陈克炎
朱艳乔
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021135106A1 publication Critical patent/WO2021135106A1/en

Links

Classifications

    • 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

Definitions

  • This application relates to the field of big data technology, and in particular to a method, device, electronic equipment, and storage medium for matching geographic location data.
  • the present application provides a method, device, electronic device, and computer-readable storage medium for matching geographic location data, the main purpose of which is to solve the problem of complicated calculations when matching geographic location data, which leads to excessive computing resources.
  • a method for matching geographic location data includes:
  • Pre-build a multi-dimensional coordinate system map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
  • the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
  • this application also provides a matching device for geographic location data, which includes:
  • the geographic location division module is used to obtain geographic interest points and original geographic location sets, and divide the original geographic location sets into one or more standard geographic location sets;
  • the coordinate mapping module is used to pre-build a multidimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
  • the diagonal distance calculation module is used to calculate the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
  • the position matching module is configured to select the smallest diagonal distance from the diagonal distance set when there is at least one diagonal distance less than a preset threshold in the diagonal distance set, and obtain the minimum diagonal distance
  • the original geographic location corresponding to the diagonal distance of obtains the geographic location that matches the interest point of the geographic location.
  • an electronic device which includes:
  • Memory storing at least one instruction
  • the processor implements the following steps when executing instructions stored in the memory:
  • Pre-build a multi-dimensional coordinate system map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
  • the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
  • the present application also provides a computer-readable storage medium having at least one instruction stored in the computer-readable storage medium, and when the at least one instruction is executed by a processor in an electronic device, the following steps are implemented:
  • Pre-build a multi-dimensional coordinate system map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
  • the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
  • This application first obtains the original geographic location set, and divides the original geographic location set to obtain one or more standard geographic location sets. Since the original geographic location set is divided in advance, it reduces the need to calculate a lot of data at the same time when geographic location data is matched. Calculate the pressure, and obtain the diagonal distance set by solving the diagonal distance between each geographic location coordinate and the geographic interest point coordinate in the geographic location coordinate set, and use the judgment of the diagonal distance set to complete the geographic location data matching, because There is no need to construct and calculate in the form of a matrix, just simply judge the coordinate distance to further reduce the pressure of calculation. Therefore, the geographic location data matching method, device, electronic device, and computer-readable storage medium proposed in this application can solve the problem of complicated calculations when geographic location data is matched, which leads to excessive computing resources.
  • FIG. 1 is a schematic flowchart of a method for matching geographic location data provided by an embodiment of this application;
  • FIG. 2 is a schematic diagram of the longitude and latitude distances in a method for matching geographic location data provided by an embodiment of this application;
  • FIG. 3 is a schematic diagram of functional modules of an apparatus for matching geographic location data provided by an embodiment of the application
  • FIG. 4 is a schematic diagram of the internal structure of an electronic device that implements the method for matching geographic location data provided by an embodiment of the application;
  • This application provides a method for matching geographic location data.
  • FIG. 1 it is a schematic flowchart of a method for matching geographic location data provided by an embodiment of this application.
  • the method can be executed by an electronic device, and the electronic device can be implemented by software and/or hardware.
  • the matching method of geographic location data includes:
  • the S1 includes: initial division of the original geographic location set based on administrative regions to obtain one or more sets of primary geographic location sets; The geographic location set is divided again to obtain one or more sets of the standard geographic location sets.
  • the geographical point of interest refers to "Point of Interest, or POI for short, which can be a house, a shop, a post box, a bus stop, etc.
  • the geographical location point of interest may include a lodging point of interest.
  • Traffic points of interest restaurants points of interest, etc.
  • Zhao Tao is a technical support staff of a certain company who frequently travels. Every time he travels, he uses the online hotel reservation APP to book hotel chain A_1 in advance, then the geographical location of hotel chain A_1 is For lodging points of interest, further, for example, in the annex of the chain hotel A_1, Zhao Tao likes to go to restaurants such as Shaxian Snacks and Lanzhou Ramen to eat.
  • the geographical locations of Shaxian Snacks, Lanzhou Ramen and other restaurants constitute points of interest.
  • the original geographic location set includes multiple data sets composed of geographic location tags and geographic locations corresponding to the geographic location tags.
  • geographic location positioning equipment includes aerial photography, satellite photography, airborne remote sensing, and three-dimensional laser scanning satellite positioning systems, etc., through the geographic location positioning equipment to obtain different geographic location sets, and then access to user terminals, such as mobile phones, tablets, etc. Travel and travel apps, etc., obtain the geographic location range of the user's frequent activities, and filter the geographic location set according to the geographic location range of the user's frequent activities to obtain the original geographic location set.
  • the original geographic location can be changed through the administrative region in this embodiment of the application.
  • the set is divided into city a1_hotel [hotel A_1, hotel A_2, hotel A_3...] with city a1 as label, and city b1_hotel [hotel A_1, hotel A_2, hotel A_3...] with city b1 as label.
  • a preset plane range is further used as a dividing basis, and there are various ways to divide the primary geographic location set again, such as a preset 100*100 (unit meter) square frame pair
  • the primary geographic location set may be labeled and divided, and the primary geographic location set may be labeled and divided by a preset rectangular frame of 90*300 (unit meters), etc., and it needs to be determined according to the actual application scenario of this application.
  • a1 is the label city a1_hotel [hotel A_1, hotel A_2, hotel A_3...]
  • the city b1 is the label city b1_hotel [hotel A_1, hotel A_2, hotel A_3...] if you pass the preset 100*100
  • the square frame (unit meter) is divided into city a1_hotel[hotel A_1_first rectangle, hotel A_2_second rectangle, hotel A_3_third rectangle...], city b1_hotel[hotel A_1_fourth rectangular frame, hotel A_2_fifth rectangular frame, hotel A_3_sixth rectangular frame...].
  • the embodiment of the present application obtains the geographic location coordinate set and the coordinates of the geographic location interest point by constructing a spherical coordinate system.
  • the spherical coordinate system is a way to represent a point in a three-dimensional space, and a point is represented by three values, two of which are angles, and the third value is distance. Among them, two angle values can determine the direction of the point. , The distance value can determine the size of the point.
  • the spherical coordinate representation includes two angles and a distance, which can be specifically determined by (r, ⁇ , ⁇ ), where r is the distance between the spherical coordinate origin O and the point P, and ⁇ is the directed line segment OP and the positive z-axis
  • the included angle, ⁇ is the angle from the x-axis to OP in the counterclockwise direction from the positive z-axis.
  • the S3 includes: according to the preset vertical relationship of the geographic longitude and latitude, respectively solving the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate, according to the The longitude distance and the latitude distance are solved to obtain the diagonal distance in the plane range, and the diagonal distance is collected to obtain the diagonal distance set.
  • the embodiment of the present application adopts the following calculation method to solve the longitude distance and the latitude distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate:
  • d 1 is the longitude distance
  • x 1 is the longitude coordinate value of the geographic location coordinates
  • x 2 is the longitude coordinate value of the geographic location interest point coordinate
  • d 2 is the latitude distance
  • y 1 is the location The latitude coordinate value of the geographic location coordinates
  • y 2 is the latitude coordinate value of the coordinates of the point of interest in the geographic location.
  • point A is the coordinates of the geographic interest point.
  • Point B is the geographic location coordinates, then the longitude distance between two points AB is AM, the latitude distance is BM, and the distance AB is the diagonal distance between point A and point B.
  • the diagonal distance of AB can be obtained by combining the above AM and BM.
  • the above diagonal distance set consisting of AB, AC, AD, AE, etc.
  • the smallest diagonal distance is 31m
  • the preset threshold is 29m
  • the smallest diagonal distance is 31mm, and the preset threshold is 32mm, and the smallest diagonal distance corresponds to the geographic location coordinate C Point, the original geographic location corresponding to point C in the original geographic location set through the query of point C is matched with the geographic interest point.
  • city a1 hotel with label a1 [hotel A_1_first rectangular box, hotel A_2_second rectangular box, hotel A_3_third rectangular box...]
  • city b1_hotel[hotel A_1_fourth rectangular box, hotel A_2_Fifth rectangular box, Hotel A_3_Sixth rectangular box...] map the hotel in city a1 and hotel in city b1 in the same coordinate system, and calculate geographic location interest points and geographic location coordinates in the coordinate system Select the hotel where the a1 city, b1 city and the geographical location interest point match.
  • the restaurant interest point is calculated in the same way as the above hotel, so that the a1 city, b1 city and the geographical location interest point match Restaurant.
  • FIG. 3 it is a functional block diagram of a matching device for geographic location data of the present application.
  • the apparatus 100 for matching geographic location data described in this application can be installed in an electronic device.
  • the geographic location data matching device 100 may include a geographic location division module 101, a coordinate mapping module 102, a diagonal distance calculation module 103, and a location matching module 104.
  • the module described in this application can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
  • each module/unit is as follows:
  • the geographic location dividing module 101 is configured to obtain geographic location points of interest and an original geographic location set from a geographic location positioning device, and divide the original geographic location set into one or more standard geographic location sets;
  • the coordinate mapping module 102 is configured to pre-build a multidimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
  • the diagonal distance calculation module 103 is configured to calculate the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
  • the position matching module 104 is configured to select the smallest diagonal distance from the diagonal distance set when there is at least one diagonal distance less than a preset threshold in the diagonal distance set, and obtain The original geographic location corresponding to the smallest diagonal distance sends the geographic location matching the geographic location interest point to the geographic location positioning device.
  • the geographic location dividing module 101 obtains geographic location interest points and an original geographic location set from a geographic location positioning device, and divides the original geographic location set into one or more standard geographic location sets.
  • the main functions of the geographic location division module 101 include: initial division of the original geographic location set on the basis of administrative area division to obtain one or more sets of primary geographic location sets; division by a preset plane range According to this, the primary geographic location set is divided again to obtain one or more sets of the standard geographic location set.
  • the geographical point of interest refers to "Point of Interest, or POI for short, which can be a house, a shop, a post box, a bus stop, etc.
  • the geographical location point of interest may include a lodging point of interest.
  • Traffic points of interest restaurants points of interest, etc.
  • Zhao Tao is a technical support staff of a certain company who frequently travels. Every time he travels, he uses the online hotel reservation APP to book hotel chain A_1 in advance, then the geographical location of hotel chain A_1 is For lodging points of interest, further, for example, in the annex of the chain hotel A_1, Zhao Tao likes to go to restaurants such as Shaxian Snacks and Lanzhou Ramen to eat.
  • the geographical locations of Shaxian Snacks, Lanzhou Ramen and other restaurants constitute points of interest.
  • the original geographic location set includes multiple data sets composed of geographic location tags and geographic locations corresponding to the geographic location tags.
  • geographic location positioning equipment includes aerial photography, satellite photography, airborne remote sensing, and three-dimensional laser scanning satellite positioning systems, etc., through the geographic location positioning equipment to obtain different geographic location sets, and then access to user terminals, such as mobile phones, tablets, etc. Travel and travel apps, etc., obtain the geographic location range of the user's frequent activities, and filter the geographic location set according to the geographic location range of the user's frequent activities to obtain the original geographic location set.
  • the original geographic location can be changed through the administrative region in this embodiment of the application.
  • the set is divided into city a1_hotel [hotel A_1, hotel A_2, hotel A_3...] with city a1 as label, and city b1_hotel [hotel A_1, hotel A_2, hotel A_3...] with city b1 as label.
  • a preset plane range is further used as a dividing basis, and there are various ways to divide the primary geographic location set again, such as a preset 100*100 (unit meter) square frame pair
  • the primary geographic location set may be labeled and divided, and the primary geographic location set may be labeled and divided by a preset rectangular frame of 90*300 (unit meters), etc., and it needs to be determined according to the actual application scenario of this application.
  • a1 is the label city a1_hotel [hotel A_1, hotel A_2, hotel A_3...]
  • the city b1 is the label city b1_hotel [hotel A_1, hotel A_2, hotel A_3...] if you pass the preset 100*100
  • the square frame (unit meter) is divided into city a1_hotel[hotel A_1_first rectangle, hotel A_2_second rectangle, hotel A_3_third rectangle...], city b1_hotel[hotel A_1_fourth rectangular frame, hotel A_2_fifth rectangular frame, hotel A_3_sixth rectangular frame...].
  • the coordinate mapping module 102 pre-builds a multi-dimensional coordinate system, maps the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates.
  • the embodiment of the present application obtains the geographic location coordinate set and the coordinates of the geographic location interest point by constructing a spherical coordinate system.
  • the spherical coordinate system is a way to represent a point in a three-dimensional space, and a point is represented by three values, two of which are angles, and the third value is distance. Among them, two angle values can determine the direction of the point. , The distance value can determine the size of the point.
  • the spherical coordinate representation includes two angles and a distance, which can be specifically determined by (r, ⁇ , ⁇ ), where r is the distance between the spherical coordinate origin O and the point P, and ⁇ is the directed line segment OP and the positive z-axis
  • the included angle, ⁇ is the angle from the x-axis to OP in the counterclockwise direction from the positive z-axis.
  • the diagonal distance calculation module 103 calculates the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set.
  • the diagonal distance calculation module 103 includes: according to a preset vertical relationship between geographic longitude and latitude, respectively solving the longitude distance and the longitude distance of each geographic location coordinate in the geographic location coordinate set and the coordinate of the geographic location interest point.
  • the latitude distance is obtained by solving the diagonal distance in the plane range according to the warp distance and the latitude distance, and collecting the diagonal distances to obtain the diagonal distance set.
  • the embodiment of the present application adopts the following calculation method to solve the longitude distance and the latitude distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate:
  • d 1 is the longitude distance
  • x 1 is the longitude coordinate value of the geographic location coordinates
  • x 2 is the longitude coordinate value of the geographic location interest point coordinate
  • d 2 is the latitude distance
  • y 1 is the location The latitude coordinate value of the geographic location coordinates
  • y 2 is the latitude coordinate value of the coordinates of the point of interest in the geographic location.
  • Point B is the geographic location coordinates
  • the longitude distance between two points AB is AM
  • the latitude distance is BM
  • the distance AB is the diagonal distance between point A and point B.
  • the diagonal distance of AB can be obtained by combining the above AM and BM.
  • the position matching module 104 determines whether there is at least one diagonal distance smaller than a preset threshold in the diagonal distance set, and if there is a diagonal distance smaller than the preset threshold in the diagonal distance set When, select the smallest diagonal distance from the diagonal distance set, obtain the original geographic location corresponding to the smallest diagonal distance, and obtain the geographic location matching the interest point of the geographic location, which will be The geographic location matched by the geographic location interest point is sent to the geographic location positioning device.
  • the matching of the geographic location interest point fails, and the result of the geographic location interest point matching failure is sent to the geographic location.
  • the smallest diagonal distance is 31mm, and the preset threshold is 29mm, so the geographic interest point and the original geographic location set cannot be completed reasonably. Match, so the match failed.
  • the smallest diagonal distance is 31mm, and the preset threshold is 32mm, and the smallest diagonal distance corresponds to the geographic location coordinate C Point, the original geographic location corresponding to point C in the original geographic location set through the query of point C is matched with the geographic interest point.
  • city a1 hotel with label a1 [hotel A_1_first rectangular box, hotel A_2_second rectangular box, hotel A_3_third rectangular box...]
  • city b1_hotel[hotel A_1_fourth rectangular box, hotel A_2_Fifth rectangular box, Hotel A_3_Sixth rectangular box...] map the hotel in city a1 and hotel in city b1 in the same coordinate system, and calculate geographic location interest points and geographic location coordinates in the coordinate system Select the hotel where the a1 city, b1 city and the geographical location interest point match.
  • the restaurant interest point is calculated in the same way as the above hotel, so that the a1 city, b1 city and the geographical location interest point match Restaurant.
  • FIG. 4 it is a schematic structural diagram of an electronic device that implements a method for matching geographic location data in this application.
  • the electronic device 1 may include a processor 10, a memory 11, and a bus, and may also include a computer program stored in the memory 11 and running on the processor 10, such as a matching program 12 for geographic location data.
  • the memory 11 includes at least one type of readable storage medium.
  • the readable storage medium may be non-volatile or volatile.
  • the readable storage medium includes flash memory, mobile hard disk, and multimedia card. , Card-type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc.
  • the memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, for example, a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk or a smart memory card (Smart Memory Card) equipped on the electronic device 1.
  • the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device.
  • the memory 11 can be used not only to store application software and various data installed in the electronic device 1, such as matching codes of geographic location data, etc., but also to temporarily store data that has been output or will be output.
  • the processor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same function or different functions, including one or more Central processing unit Processing unit, CPU), microprocessor, digital processing chip, graphics processor and a combination of various control chips, etc.
  • the processor 10 is the control core (Control Unit) of the electronic device, which uses various interfaces and lines to connect the various components of the entire electronic device, and runs or executes programs or modules stored in the memory 11 (such as executing Matching of geographic location data, etc.), and call data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
  • Control Unit Control Unit
  • the bus may be a peripheral component interconnect (PCI) bus or an extended industry standard structure (extended industry standard structure). industry standard architecture, EISA for short) bus, etc.
  • PCI peripheral component interconnect
  • extended industry standard structure extended industry standard structure
  • EISA industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the bus is configured to implement connection and communication between the memory 11 and at least one processor 10 and the like.
  • FIG. 4 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 4 does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure. Components, or a combination of certain components, or different component arrangements.
  • the electronic device 1 may also include a power source (such as a battery) for supplying power to various components.
  • the power source may be logically connected to the at least one processor 10 through a power management device, thereby controlling the power supply.
  • the device implements functions such as charge management, discharge management, and power consumption management.
  • the power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators.
  • the electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
  • the electronic device 1 may also include a network interface.
  • the network interface may include a wired interface and/or a wireless interface (such as a Wi-Fi interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
  • the electronic device 1 may also include a user interface.
  • the user interface may be a display (Display) and an input unit (such as a keyboard (Keyboard)).
  • the user interface may also be a standard wired interface or a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc.
  • the display can also be appropriately called a display screen or a display unit, which is used to display the information processed in the electronic device 1 and to display a visualized user interface.
  • the matching 12 of geographic location data stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can be implemented:
  • a multidimensional coordinate system is pre-built, and the standard geographic location set and the geographic location interest point are mapped to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates.
  • the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the coordinate of the point of interest in the geographic location is solved to obtain a diagonal distance set.
  • the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of, the geographic location matching the geographic location interest point is obtained, and the geographic location matching the geographic location interest point is sent to the geographic location positioning device.
  • the integrated module/unit of the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile or volatile computer readable storage medium .
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory).
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional modules.

Abstract

A big data technology, disclosing a geographic position data matching method, a matching apparatus, an electronic device and a computer-readable storage medium, comprising: dividing an original geographic position set into one or more standard geographic position sets; mapping said standard geographic position set and a geographic position point-of-interest to a multi-dimensional coordinate system, obtaining a geographic position coordinate set and geographic position point-of interest coordinates; solving diagonal distances between the geographic position coordinate set and the geographic position point-of-interest coordinates, obtaining a diagonal distance set; selecting a lowest diagonal distance from among diagonal distances lower than a pre-determined threshold, and completing matching of the geographic position point-of-interest according to an original geographic position corresponding to said lowest diagonal distance. This solves the problem of too many computational resources being occupied when performing geographic position data matching.

Description

地理位置数据的匹配方法、装置、电子设备及存储介质Geographic location data matching method, device, electronic equipment and storage medium
本申请要求于2020年1月2日提交中国专利局、申请号为CN202010009222.5、发明名称为“地理位置数据的匹配方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is CN202010009222.5, and the invention title is "Matching method, device, electronic equipment and storage medium of geographic location data" on January 2, 2020. The entire content is incorporated into this application by reference.
技术领域Technical field
本申请涉及大数据技术领域,尤其涉及一种地理位置数据的匹配方法、装置、电子设备及存储介质。This application relates to the field of big data technology, and in particular to a method, device, electronic equipment, and storage medium for matching geographic location data.
背景技术Background technique
目前基于地理位置数据进行匹配推荐的方法众多,包括基于地理位置的协同过滤推荐方法、混合推荐方法等。这些方法的主要步骤是构建用户–地理位置兴趣点矩阵,并将所述用户–地理位置兴趣点矩阵分解成两个或者多个低维矩阵的乘积实现维数的规约,用低维空间数据研究高维数据的性质,进而达到地理位置数据匹配的目的。发明人意识到由于地理位置数据的多元性,构建用户–地理位置兴趣点矩阵时容易造成矩阵稀疏、计算复杂导致占用过多计算资源,严重的会导致计算服务器崩溃等问题。At present, there are many methods for matching recommendation based on geographic location data, including geographic location-based collaborative filtering recommendation methods, hybrid recommendation methods, and so on. The main steps of these methods are to construct a user-geographical point of interest matrix, and decompose the user-geographical point of interest matrix into the product of two or more low-dimensional matrices to achieve dimensionality reduction, and use low-dimensional spatial data to study The nature of high-dimensional data, and then achieve the purpose of geographic location data matching. The inventor realizes that due to the diversity of geographic location data, when constructing a user-geographical point of interest matrix, it is easy to cause sparse matrix and complex calculations to occupy too much computing resources, and serious problems such as computing server crashes.
技术问题technical problem
本申请提供一种地理位置数据的匹配方法、装置、电子设备及计算机可读存储介质,其主要目的在于解决在对地理位置数据匹配时计算复杂导致占用过多计算资源的问题。The present application provides a method, device, electronic device, and computer-readable storage medium for matching geographic location data, the main purpose of which is to solve the problem of complicated calculations when matching geographic location data, which leads to excessive computing resources.
技术解决方案Technical solutions
为实现上述目的,本申请提供的一种地理位置数据的匹配方法,包括:In order to achieve the above objective, a method for matching geographic location data provided by this application includes:
从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;Obtaining geographic location points of interest and original geographic location sets from the geographic location positioning device, and dividing the original geographic location sets into one or more standard geographic location sets;
预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;Pre-build a multi-dimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;Solving the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置;When there is at least one diagonal distance less than a preset threshold in the diagonal distance set, the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。Send the geographic location matching the geographic location interest point to the geographic location positioning device.
为了解决上述问题,本申请还提供一种地理位置数据的匹配装置,所述装置包括:In order to solve the above-mentioned problems, this application also provides a matching device for geographic location data, which includes:
地理位置划分模块,用于获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;The geographic location division module is used to obtain geographic interest points and original geographic location sets, and divide the original geographic location sets into one or more standard geographic location sets;
坐标映射模块,用于预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;The coordinate mapping module is used to pre-build a multidimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
对角线距离计算模块,用于求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;The diagonal distance calculation module is used to calculate the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
位置匹配模块,用于在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置。The position matching module is configured to select the smallest diagonal distance from the diagonal distance set when there is at least one diagonal distance less than a preset threshold in the diagonal distance set, and obtain the minimum diagonal distance The original geographic location corresponding to the diagonal distance of, obtains the geographic location that matches the interest point of the geographic location.
为了解决上述问题,本申请还提供一种电子设备,所述电子设备包括:In order to solve the above-mentioned problems, the present application also provides an electronic device, which includes:
存储器,存储至少一个指令;及Memory, storing at least one instruction; and
处理器,执行所述存储器中存储的指令时实现如下步骤:The processor implements the following steps when executing instructions stored in the memory:
从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;Obtaining geographic location points of interest and original geographic location sets from the geographic location positioning device, and dividing the original geographic location sets into one or more standard geographic location sets;
预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;Pre-build a multi-dimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;Solving the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置;When there is at least one diagonal distance less than a preset threshold in the diagonal distance set, the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。Send the geographic location matching the geographic location interest point to the geographic location positioning device.
为了解决上述问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行时实现如下步骤:In order to solve the above-mentioned problem, the present application also provides a computer-readable storage medium having at least one instruction stored in the computer-readable storage medium, and when the at least one instruction is executed by a processor in an electronic device, the following steps are implemented:
从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;Obtaining geographic location points of interest and original geographic location sets from the geographic location positioning device, and dividing the original geographic location sets into one or more standard geographic location sets;
预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;Pre-build a multi-dimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;Solving the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置;When there is at least one diagonal distance less than a preset threshold in the diagonal distance set, the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。Send the geographic location matching the geographic location interest point to the geographic location positioning device.
有益效果Beneficial effect
本申请首先获取原始地理位置集,对原始地理位置集进行划分得到一组或多组标准地理位置集,由于提前对原始地理位置集进行划分,减轻在地理位置数据匹配时需要同时计算很多数据的计算压力,另外通过求解地理位置坐标集内每个地理位置坐标和地理位置兴趣点坐标的对角线距离得到对角线距离集,利用对角线距离集的判断从而完成地理位置数据匹配,因为不需要以矩阵的形式构建并计算,只需要简单的判断坐标距离,进一步减轻计算压力。因此本申请提出的地理位置数据的匹配方法、装置、电子设备及计算机可读存储介质,可以解决在地理位置数据匹配时计算复杂导致占用过多计算资源的问题。This application first obtains the original geographic location set, and divides the original geographic location set to obtain one or more standard geographic location sets. Since the original geographic location set is divided in advance, it reduces the need to calculate a lot of data at the same time when geographic location data is matched. Calculate the pressure, and obtain the diagonal distance set by solving the diagonal distance between each geographic location coordinate and the geographic interest point coordinate in the geographic location coordinate set, and use the judgment of the diagonal distance set to complete the geographic location data matching, because There is no need to construct and calculate in the form of a matrix, just simply judge the coordinate distance to further reduce the pressure of calculation. Therefore, the geographic location data matching method, device, electronic device, and computer-readable storage medium proposed in this application can solve the problem of complicated calculations when geographic location data is matched, which leads to excessive computing resources.
附图说明Description of the drawings
图1为本申请一实施例提供的地理位置数据的匹配方法的流程示意图;FIG. 1 is a schematic flowchart of a method for matching geographic location data provided by an embodiment of this application;
图2为本申请一实施例提供的地理位置数据的匹配方法中经纬线距离示意图;FIG. 2 is a schematic diagram of the longitude and latitude distances in a method for matching geographic location data provided by an embodiment of this application;
图3为本申请一实施例提供的地理位置数据的匹配装置的功能模块示意图;FIG. 3 is a schematic diagram of functional modules of an apparatus for matching geographic location data provided by an embodiment of the application;
图4为本申请一实施例提供的实现所述地理位置数据的匹配方法的电子设备的内部结构示意图;4 is a schematic diagram of the internal structure of an electronic device that implements the method for matching geographic location data provided by an embodiment of the application;
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
本发明的实施方式Embodiments of the present invention
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
本申请提供一种地理位置数据的匹配方法。参照图1所示,为本申请一实施例提供的地理位置数据的匹配方法的流程示意图。该方法可以由一个电子设备执行,该电子设备可以由软件和/或硬件实现。This application provides a method for matching geographic location data. Referring to FIG. 1, it is a schematic flowchart of a method for matching geographic location data provided by an embodiment of this application. The method can be executed by an electronic device, and the electronic device can be implemented by software and/or hardware.
在本实施例中,地理位置数据的匹配方法包括:In this embodiment, the matching method of geographic location data includes:
S1、从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集。S1. Obtain geographic location points of interest and an original geographic location set from a geographic location positioning device, and divide the original geographic location set into one or more sets of standard geographic location sets.
详细地,所述S1包括:以行政区域为划分依据对所述原始地理位置集进行初次划分,得到一组或多组初级地理位置集;以预设的平面范围为划分依据,对所述初级地理位置集进行再次划分,得到一组或多组所述标准地理位置集。In detail, the S1 includes: initial division of the original geographic location set based on administrative regions to obtain one or more sets of primary geographic location sets; The geographic location set is divided again to obtain one or more sets of the standard geographic location sets.
所述地理位置兴趣点是指“Point of Interest,简称POI,可以是一栋房子、一个商铺、一个邮筒、一个公交站等。本申请实施例中,所述地理位置兴趣点可以包括住宿兴趣点、交通兴趣点、餐馆兴趣点等。如赵涛是一名经常出差的某公司技术支持人员,每次出差都提前使用线上宾馆预约APP预约连锁宾馆A_1,则连锁宾馆A_1所在的地理位置即为住宿兴趣点,进一步地,如在连锁宾馆A_1附件,赵涛喜欢去沙县小吃、兰州拉面等餐馆吃饭,则沙县小吃、兰州拉面等地理位置构成了餐馆兴趣点等等。The geographical point of interest refers to "Point of Interest, or POI for short, which can be a house, a shop, a post box, a bus stop, etc.. In this embodiment of the application, the geographical location point of interest may include a lodging point of interest. , Traffic points of interest, restaurants points of interest, etc. For example, Zhao Tao is a technical support staff of a certain company who frequently travels. Every time he travels, he uses the online hotel reservation APP to book hotel chain A_1 in advance, then the geographical location of hotel chain A_1 is For lodging points of interest, further, for example, in the annex of the chain hotel A_1, Zhao Tao likes to go to restaurants such as Shaxian Snacks and Lanzhou Ramen to eat. The geographical locations of Shaxian Snacks, Lanzhou Ramen and other restaurants constitute points of interest.
所述原始地理位置集包括多个由地理位置标签以及地理位置标签对应的地理位置所组成的数据组。进一步地,地理位置定位设备包括航拍、卫星拍摄、机载遥感以及三维激光扫描卫星定位系统等,通过地理位置定位设备获取得到不同的地理位置集,然后通过访问用户终端,如手机、平板等相关旅游、出行APP等,获取用户经常活动的地理位置范围,根据用户经常活动的地理位置范围从地理位置集中进行筛选得到所述原始地理位置集。如宾馆[宾馆A_1、宾馆A_2、宾馆A_3…]及[宾馆A_1、宾馆A_2、宾馆A_3…]的地理位置、餐馆[餐馆B_2_1、餐馆B_2、餐馆B_3…]及[餐馆B_2_1、餐馆B_2、餐馆B_3…]的地理位置、商场[商场C_1、商场C_2、商场C_3…]及[商场C_1、商场C_2、商场C_3…]的地理位置等。其中,本申请实施例中所述地理位置指经纬度,如宾馆A_1的地理位置是东经32°北纬47°。The original geographic location set includes multiple data sets composed of geographic location tags and geographic locations corresponding to the geographic location tags. Further, geographic location positioning equipment includes aerial photography, satellite photography, airborne remote sensing, and three-dimensional laser scanning satellite positioning systems, etc., through the geographic location positioning equipment to obtain different geographic location sets, and then access to user terminals, such as mobile phones, tablets, etc. Travel and travel apps, etc., obtain the geographic location range of the user's frequent activities, and filter the geographic location set according to the geographic location range of the user's frequent activities to obtain the original geographic location set. Such as hotel [hotel A_1, hotel A_2, hotel A_3...] and [hotel A_1, hotel A_2, hotel A_3...] location, restaurant [restaurant B_2_1, restaurant B_2, restaurant B_3...] and [restaurant B_2_1, restaurant B_2, restaurant B_3...] geographical location, shopping mall [shopping mall C_1, shopping mall C_2, shopping mall C_3...] and [shopping mall C_1, shopping mall C_2, shopping mall C_3...], etc. Wherein, the geographic location mentioned in the embodiment of the present application refers to longitude and latitude, for example, the geographic location of the hotel A_1 is 32° east longitude and 47° north latitude.
在根据所述原始地理位置集的经纬度判断所述原始地理位置集内的地理位置属于不同的行政区域时,如城市a1与城市b1,本申请实施例可以通过所述行政区域可将原始地理位置集划分为城市a1为标签的城市a1_宾馆[宾馆A_1、宾馆A_2、宾馆A_3…],城市b1为标签的城市b1_宾馆[宾馆A_1、宾馆A_2、宾馆A_3…]。When it is judged that the geographic locations in the original geographic location set belong to different administrative regions according to the longitude and latitudes of the original geographic location set, such as city a1 and city b1, the original geographic location can be changed through the administrative region in this embodiment of the application. The set is divided into city a1_hotel [hotel A_1, hotel A_2, hotel A_3...] with city a1 as label, and city b1_hotel [hotel A_1, hotel A_2, hotel A_3...] with city b1 as label.
本申请其他较佳实施例中进一步以预设的平面范围为划分依据,对所述初级地理位置集进行再次划分的划分方式多种多样,如预设100*100(单位米)的正方形框对所述初级地理位置集进行标注划分、预设90*300(单位米)的矩形框对所述初级地理位置集进行标注划分等都可以,需要依据本申请的实际应用场景进行确定。In other preferred embodiments of the present application, a preset plane range is further used as a dividing basis, and there are various ways to divide the primary geographic location set again, such as a preset 100*100 (unit meter) square frame pair The primary geographic location set may be labeled and divided, and the primary geographic location set may be labeled and divided by a preset rectangular frame of 90*300 (unit meters), etc., and it needs to be determined according to the actual application scenario of this application.
如上述a1为标签的城市a1_宾馆[宾馆A_1、宾馆A_2、宾馆A_3…],城市b1为标签的城市b1_宾馆[宾馆A_1、宾馆A_2、宾馆A_3…],若通过预设100*100(单位米)的正方形框进行划分,可体现为城市a1_宾馆[宾馆A_1_第一矩形框、宾馆A_2_第二矩形框、宾馆A_3_第三矩形框…]、城市b1_宾馆[宾馆A_1_第四矩形框、宾馆A_2_第五矩形框、宾馆A_3_第六矩形框…]。For example, the above a1 is the label city a1_hotel [hotel A_1, hotel A_2, hotel A_3...], the city b1 is the label city b1_hotel [hotel A_1, hotel A_2, hotel A_3...], if you pass the preset 100*100 The square frame (unit meter) is divided into city a1_hotel[hotel A_1_first rectangle, hotel A_2_second rectangle, hotel A_3_third rectangle...], city b1_hotel[hotel A_1_fourth rectangular frame, hotel A_2_fifth rectangular frame, hotel A_3_sixth rectangular frame...].
S2、预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标。S2. Pre-build a multi-dimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain a geographic location coordinate set and geographic location interest point coordinates.
目前的地理位置数据的匹配一般采用经纬度进行地球球面距离的计算或三维坐标直线距离计算,两种方法虽然都可以达到计算效果,但由于经纬度的计算消耗计算内存,三维坐标直线距离的计算不够准确,且三维坐标是从球面坐标转换而来,而将球面坐标的转化为三维坐标会大量消耗内存,因此不利于地理位置的数据匹配。Current geographic location data matching generally uses latitude and longitude to calculate the spherical distance of the earth or the calculation of the three-dimensional coordinate straight-line distance. Although both methods can achieve the calculation effect, the calculation of the longitude and latitude consumes calculation memory, and the calculation of the three-dimensional coordinate straight-line distance is not accurate enough. , And the three-dimensional coordinates are converted from spherical coordinates, and the conversion of spherical coordinates into three-dimensional coordinates will consume a lot of memory, so it is not conducive to geographic data matching.
本申请实施例通过构建球面坐标系的形式得到地理位置坐标集和地理位置兴趣点的坐标。所述球面坐标系是表示三维空间中某一点的一种方式,由三个数值代表一个点,其中两个数值是角度,第三个数值是距离,其中,两个角度数值可以确定点的方向,距离数值可以确定点的大小。例如,上述城市a1_宾馆[宾馆A_1_第一矩形框、宾馆A_2_第二矩形框、宾馆A_3_第三矩形框…]中,宾馆A_1_第一矩形框视为点P,则点P的球面坐标表示包括两个角度和一个距离,具体地可为(r,θ,φ)来确定,其中r为球面坐标原点O与点P间的距离、θ为有向线段OP与z轴正向的夹角、φ为从正z轴来看自x轴按逆时针方向转到OP所转过的角度。The embodiment of the present application obtains the geographic location coordinate set and the coordinates of the geographic location interest point by constructing a spherical coordinate system. The spherical coordinate system is a way to represent a point in a three-dimensional space, and a point is represented by three values, two of which are angles, and the third value is distance. Among them, two angle values can determine the direction of the point. , The distance value can determine the size of the point. For example, in the city a1_hotel [hotel A_1_first rectangular frame, hotel A_2_second rectangular frame, hotel A_3_third rectangular frame...], hotel A_1_first rectangular frame is regarded as point P, then point P The spherical coordinate representation includes two angles and a distance, which can be specifically determined by (r, θ, φ), where r is the distance between the spherical coordinate origin O and the point P, and θ is the directed line segment OP and the positive z-axis The included angle, φ, is the angle from the x-axis to OP in the counterclockwise direction from the positive z-axis.
S3、求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集。S3. Solve the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set.
详细地,所述S3包括:根据预设的地理经纬线垂直关系,分别求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离,根据所述经线距离和所述纬线距离求解得到在所述平面范围的对角线距离,汇集所述对角线距离得到所述对角线距离集。In detail, the S3 includes: according to the preset vertical relationship of the geographic longitude and latitude, respectively solving the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate, according to the The longitude distance and the latitude distance are solved to obtain the diagonal distance in the plane range, and the diagonal distance is collected to obtain the diagonal distance set.
较佳地,本申请实施例采用如下计算方法,求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离:Preferably, the embodiment of the present application adopts the following calculation method to solve the longitude distance and the latitude distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate:
d 1=|x 1-x 2| d 1 =|x 1 -x 2 |
d 2=|y 1-y 2| d 2 =|y 1 -y 2 |
其中,d 1为所述经线距离,x 1为所述地理位置坐标的经线坐标值,x 2为所述地理位置兴趣点坐标的经线坐标值,d 2为所述纬线距离,y 1为所述地理位置坐标的纬线坐标值,y 2为所述地理位置兴趣点坐标的纬线坐标值。 Wherein, d 1 is the longitude distance, x 1 is the longitude coordinate value of the geographic location coordinates, x 2 is the longitude coordinate value of the geographic location interest point coordinate, d 2 is the latitude distance, and y 1 is the location The latitude coordinate value of the geographic location coordinates, and y 2 is the latitude coordinate value of the coordinates of the point of interest in the geographic location.
从地理知识可知,严格来说地球的经纬线不是垂直关系,为了计算方便,本申请预设地理的经纬线为垂直关系,进一步地,如附图2所示,A点为地理位置兴趣点坐标、B点为地理位置坐标,则AB两点的经线距离为AM,纬线距离为BM,距离AB为A点与B点的对角线距离。From the knowledge of geography, strictly speaking, the longitude and latitude lines of the earth are not a vertical relationship. For the convenience of calculation, this application presupposes that the longitude and latitude lines of the geography are vertical relationships. Further, as shown in Figure 2, point A is the coordinates of the geographic interest point. , Point B is the geographic location coordinates, then the longitude distance between two points AB is AM, the latitude distance is BM, and the distance AB is the diagonal distance between point A and point B.
根据勾股定理,结合上述AM和BM可求出AB的对角线距离。According to the Pythagorean theorem, the diagonal distance of AB can be obtained by combining the above AM and BM.
S4、判断所述对角线距离集内是否存在至少一个小于预设阈值的对角线距离。S4. Determine whether there is at least one diagonal distance smaller than a preset threshold in the diagonal distance set.
S5、若所述对角线距离集内不存在小于所述预设阈值的对角线距离,则所述地理位置兴趣点匹配失败,将地理位置兴趣点匹配失败的结果发送至所述地理位置定位设备,并返回上述的S1重新获取地理位置兴趣点。S5. If there is no diagonal distance less than the preset threshold in the diagonal distance set, then the matching of the geographic location interest point fails, and the result of the geographic location interest point matching failure is sent to the geographic location Locate the device, and return to the above S1 to re-acquire the points of interest.
如上述由AB、AC、AD、AE等组成的对角线距离集中,最小的对角线距离为31m,而预设阈值为29m,因此地理位置兴趣点与所述原始地理位置集无法完成合理匹配,因此匹配失败。For example, the above diagonal distance set consisting of AB, AC, AD, AE, etc., the smallest diagonal distance is 31m, and the preset threshold is 29m, so the geographic location interest points and the original geographic location set cannot be reasonably completed Match, so the match failed.
S6、若所述对角线距离集内存在小于所述预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置,将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。S6. If there is a diagonal distance smaller than the preset threshold in the diagonal distance set, select the smallest diagonal distance from the diagonal distance set to obtain the smallest diagonal distance From the corresponding original geographic location, the geographic location matching the geographic location interest point is obtained, and the geographic location matching the geographic location interest point is sent to the geographic location positioning device.
如上述由AB、AC、AD、AE等组成的对角线距离集,最小的对角线距离为31mm,而预设阈值为32mm,且最小的对角线距离所对应的地理位置坐标为C点,通过C点查询得到原始地理位置集中与C点对应的原始地理位置是与地理位置兴趣点匹配。For the above diagonal distance set consisting of AB, AC, AD, AE, etc., the smallest diagonal distance is 31mm, and the preset threshold is 32mm, and the smallest diagonal distance corresponds to the geographic location coordinate C Point, the original geographic location corresponding to point C in the original geographic location set through the query of point C is matched with the geographic interest point.
如上述a1为标签的城市a1宾馆[宾馆A_1_第一矩形框、宾馆A_2_第二矩形框、宾馆A_3_第三矩形框…]、城市b1_宾馆[宾馆A_1_第四矩形框、宾馆A_2_第五矩形框、宾馆A_3_第六矩形框…],将a1城市的宾馆和b1城市的宾馆都映射在同样的坐标系中,通过在坐标系中计算地理位置兴趣点和地理位置坐标的对角线距离,选取出a1城市、b1城市与地理位置兴趣点匹配的宾馆,同样的,餐馆兴趣点也如上述宾馆的计算方式相同,从而得到a1城市、b1城市与地理位置兴趣点匹配的餐馆。For example, city a1 hotel with label a1 [hotel A_1_first rectangular box, hotel A_2_second rectangular box, hotel A_3_third rectangular box...], city b1_hotel[hotel A_1_fourth rectangular box, hotel A_2_Fifth rectangular box, Hotel A_3_Sixth rectangular box...], map the hotel in city a1 and hotel in city b1 in the same coordinate system, and calculate geographic location interest points and geographic location coordinates in the coordinate system Select the hotel where the a1 city, b1 city and the geographical location interest point match. Similarly, the restaurant interest point is calculated in the same way as the above hotel, so that the a1 city, b1 city and the geographical location interest point match Restaurant.
如图3所示,是本申请地理位置数据的匹配装置的功能模块图。As shown in Figure 3, it is a functional block diagram of a matching device for geographic location data of the present application.
本申请所述地理位置数据的匹配装置100可以安装于电子设备中。根据实现的功能,所述地理位置数据的匹配装置100可以包括地理位置划分模块101、坐标映射模块102、对角线距离计算模块103和位置匹配模块104。本申请所述模块也可以称之为单元,是指一种能够被电子设备的处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The apparatus 100 for matching geographic location data described in this application can be installed in an electronic device. According to the implemented functions, the geographic location data matching device 100 may include a geographic location division module 101, a coordinate mapping module 102, a diagonal distance calculation module 103, and a location matching module 104. The module described in this application can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:
所述地理位置划分模块101,用于从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;The geographic location dividing module 101 is configured to obtain geographic location points of interest and an original geographic location set from a geographic location positioning device, and divide the original geographic location set into one or more standard geographic location sets;
所述坐标映射模块102,用于预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;The coordinate mapping module 102 is configured to pre-build a multidimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
所述对角线距离计算模块103,用于求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;The diagonal distance calculation module 103 is configured to calculate the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
所述位置匹配模块104,用于在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。The position matching module 104 is configured to select the smallest diagonal distance from the diagonal distance set when there is at least one diagonal distance less than a preset threshold in the diagonal distance set, and obtain The original geographic location corresponding to the smallest diagonal distance sends the geographic location matching the geographic location interest point to the geographic location positioning device.
详细地,所述地理位置数据的匹配装置各模块在被一个电子设备的处理器所执行时,可以实现如下方法步骤:In detail, when the modules of the geographic location data matching device are executed by a processor of an electronic device, the following method steps can be implemented:
所述地理位置划分模块101从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集。The geographic location dividing module 101 obtains geographic location interest points and an original geographic location set from a geographic location positioning device, and divides the original geographic location set into one or more standard geographic location sets.
详细地,所述地理位置划分模块101主要功能包括:以行政区域为划分依据对所述原始地理位置集进行初次划分,得到一组或多组初级地理位置集;以预设的平面范围为划分依据,对所述初级地理位置集进行再次划分,得到一组或多组所述标准地理位置集。In detail, the main functions of the geographic location division module 101 include: initial division of the original geographic location set on the basis of administrative area division to obtain one or more sets of primary geographic location sets; division by a preset plane range According to this, the primary geographic location set is divided again to obtain one or more sets of the standard geographic location set.
所述地理位置兴趣点是指“Point of Interest,简称POI,可以是一栋房子、一个商铺、一个邮筒、一个公交站等。本申请实施例中,所述地理位置兴趣点可以包括住宿兴趣点、交通兴趣点、餐馆兴趣点等。如赵涛是一名经常出差的某公司技术支持人员,每次出差都提前使用线上宾馆预约APP预约连锁宾馆A_1,则连锁宾馆A_1所在的地理位置即为住宿兴趣点,进一步地,如在连锁宾馆A_1附件,赵涛喜欢去沙县小吃、兰州拉面等餐馆吃饭,则沙县小吃、兰州拉面等地理位置构成了餐馆兴趣点等等。The geographical point of interest refers to "Point of Interest, or POI for short, which can be a house, a shop, a post box, a bus stop, etc.. In this embodiment of the application, the geographical location point of interest may include a lodging point of interest. , Traffic points of interest, restaurants points of interest, etc. For example, Zhao Tao is a technical support staff of a certain company who frequently travels. Every time he travels, he uses the online hotel reservation APP to book hotel chain A_1 in advance, then the geographical location of hotel chain A_1 is For lodging points of interest, further, for example, in the annex of the chain hotel A_1, Zhao Tao likes to go to restaurants such as Shaxian Snacks and Lanzhou Ramen to eat. The geographical locations of Shaxian Snacks, Lanzhou Ramen and other restaurants constitute points of interest.
所述原始地理位置集包括多个由地理位置标签以及地理位置标签对应的地理位置所组成的数据组。进一步地,地理位置定位设备包括航拍、卫星拍摄、机载遥感以及三维激光扫描卫星定位系统等,通过地理位置定位设备获取得到不同的地理位置集,然后通过访问用户终端,如手机、平板等相关旅游、出行APP等,获取用户经常活动的地理位置范围,根据用户经常活动的地理位置范围从地理位置集中进行筛选得到所述原始地理位置集。如宾馆[宾馆A_1、宾馆A_2、宾馆A_3…]及[宾馆A_1、宾馆A_2、宾馆A_3…]的地理位置、餐馆[餐馆B_2_1、餐馆B_2、餐馆B_3…]及[餐馆B_2_1、餐馆B_2、餐馆B_3…]的地理位置、商场[商场C_1、商场C_2、商场C_3…]及[商场C_1、商场C_2、商场C_3…]的地理位置等。其中,本申请实施例中所述地理位置指经纬度,如宾馆A_1的地理位置是东经32°北纬47°。The original geographic location set includes multiple data sets composed of geographic location tags and geographic locations corresponding to the geographic location tags. Further, geographic location positioning equipment includes aerial photography, satellite photography, airborne remote sensing, and three-dimensional laser scanning satellite positioning systems, etc., through the geographic location positioning equipment to obtain different geographic location sets, and then access to user terminals, such as mobile phones, tablets, etc. Travel and travel apps, etc., obtain the geographic location range of the user's frequent activities, and filter the geographic location set according to the geographic location range of the user's frequent activities to obtain the original geographic location set. Such as hotel [hotel A_1, hotel A_2, hotel A_3...] and [hotel A_1, hotel A_2, hotel A_3...] location, restaurant [restaurant B_2_1, restaurant B_2, restaurant B_3...] and [restaurant B_2_1, restaurant B_2, restaurant B_3...] geographical location, shopping mall [shopping mall C_1, shopping mall C_2, shopping mall C_3...] and [shopping mall C_1, shopping mall C_2, shopping mall C_3...], etc. Wherein, the geographic location mentioned in the embodiment of the present application refers to longitude and latitude, for example, the geographic location of the hotel A_1 is 32° east longitude and 47° north latitude.
在根据所述原始地理位置集的经纬度判断所述原始地理位置集内的地理位置属于不同的行政区域时,如城市a1与城市b1,本申请实施例可以通过所述行政区域可将原始地理位置集划分为城市a1为标签的城市a1_宾馆[宾馆A_1、宾馆A_2、宾馆A_3…],城市b1为标签的城市b1_宾馆[宾馆A_1、宾馆A_2、宾馆A_3…]。When it is judged that the geographic locations in the original geographic location set belong to different administrative regions according to the longitude and latitudes of the original geographic location set, such as city a1 and city b1, the original geographic location can be changed through the administrative region in this embodiment of the application. The set is divided into city a1_hotel [hotel A_1, hotel A_2, hotel A_3...] with city a1 as label, and city b1_hotel [hotel A_1, hotel A_2, hotel A_3...] with city b1 as label.
本申请其他较佳实施例中进一步以预设的平面范围为划分依据,对所述初级地理位置集进行再次划分的划分方式多种多样,如预设100*100(单位米)的正方形框对所述初级地理位置集进行标注划分、预设90*300(单位米)的矩形框对所述初级地理位置集进行标注划分等都可以,需要依据本申请的实际应用场景进行确定。In other preferred embodiments of the present application, a preset plane range is further used as a dividing basis, and there are various ways to divide the primary geographic location set again, such as a preset 100*100 (unit meter) square frame pair The primary geographic location set may be labeled and divided, and the primary geographic location set may be labeled and divided by a preset rectangular frame of 90*300 (unit meters), etc., and it needs to be determined according to the actual application scenario of this application.
如上述a1为标签的城市a1_宾馆[宾馆A_1、宾馆A_2、宾馆A_3…],城市b1为标签的城市b1_宾馆[宾馆A_1、宾馆A_2、宾馆A_3…],若通过预设100*100(单位米)的正方形框进行划分,可体现为城市a1_宾馆[宾馆A_1_第一矩形框、宾馆A_2_第二矩形框、宾馆A_3_第三矩形框…]、城市b1_宾馆[宾馆A_1_第四矩形框、宾馆A_2_第五矩形框、宾馆A_3_第六矩形框…]。For example, the above a1 is the label city a1_hotel [hotel A_1, hotel A_2, hotel A_3...], the city b1 is the label city b1_hotel [hotel A_1, hotel A_2, hotel A_3...], if you pass the preset 100*100 The square frame (unit meter) is divided into city a1_hotel[hotel A_1_first rectangle, hotel A_2_second rectangle, hotel A_3_third rectangle...], city b1_hotel[hotel A_1_fourth rectangular frame, hotel A_2_fifth rectangular frame, hotel A_3_sixth rectangular frame...].
所述坐标映射模块102预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标。The coordinate mapping module 102 pre-builds a multi-dimensional coordinate system, maps the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates.
目前的地理位置数据的匹配一般采用经纬度进行地球球面距离的计算或三维坐标直线距离计算,两种方法虽然都可以达到计算效果,但由于经纬度的计算消耗计算内存,三维坐标直线距离的计算不够准确,且三维坐标是从球面坐标转换而来,而将球面坐标的转化为三维坐标会大量消耗内存,因此不利于地理位置的数据匹配。Current geographic location data matching generally uses latitude and longitude to calculate the spherical distance of the earth or the calculation of the three-dimensional coordinate straight-line distance. Although both methods can achieve the calculation effect, the calculation of the longitude and latitude consumes calculation memory, and the calculation of the three-dimensional coordinate straight-line distance is not accurate enough. , And the three-dimensional coordinates are converted from spherical coordinates, and the conversion of spherical coordinates into three-dimensional coordinates will consume a lot of memory, so it is not conducive to geographic data matching.
本申请实施例通过构建球面坐标系的形式得到地理位置坐标集和地理位置兴趣点的坐标。所述球面坐标系是表示三维空间中某一点的一种方式,由三个数值代表一个点,其中两个数值是角度,第三个数值是距离,其中,两个角度数值可以确定点的方向,距离数值可以确定点的大小。例如,上述城市a1_宾馆[宾馆A_1_第一矩形框、宾馆A_2_第二矩形框、宾馆A_3_第一矩形框…]中,宾馆A_1_第一矩形框视为点P,则点P的球面坐标表示包括两个角度和一个距离,具体地可为(r,θ,φ)来确定,其中r为球面坐标原点O与点P间的距离、θ为有向线段OP与z轴正向的夹角、φ为从正z轴来看自x轴按逆时针方向转到OP所转过的角度。The embodiment of the present application obtains the geographic location coordinate set and the coordinates of the geographic location interest point by constructing a spherical coordinate system. The spherical coordinate system is a way to represent a point in a three-dimensional space, and a point is represented by three values, two of which are angles, and the third value is distance. Among them, two angle values can determine the direction of the point. , The distance value can determine the size of the point. For example, in the city a1_hotel [hotel A_1_first rectangular frame, hotel A_2_second rectangular frame, hotel A_3_first rectangular frame...], hotel A_1_first rectangular frame is regarded as point P, then point P The spherical coordinate representation includes two angles and a distance, which can be specifically determined by (r, θ, φ), where r is the distance between the spherical coordinate origin O and the point P, and θ is the directed line segment OP and the positive z-axis The included angle, φ, is the angle from the x-axis to OP in the counterclockwise direction from the positive z-axis.
所述对角线距离计算模块103求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集。The diagonal distance calculation module 103 calculates the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set.
详细地,所述对角线距离计算模块103包括:根据预设的地理经纬线垂直关系,分别求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离,根据所述经线距离和所述纬线距离求解得到在所述平面范围的对角线距离,汇集所述对角线距离得到所述对角线距离集。In detail, the diagonal distance calculation module 103 includes: according to a preset vertical relationship between geographic longitude and latitude, respectively solving the longitude distance and the longitude distance of each geographic location coordinate in the geographic location coordinate set and the coordinate of the geographic location interest point. The latitude distance is obtained by solving the diagonal distance in the plane range according to the warp distance and the latitude distance, and collecting the diagonal distances to obtain the diagonal distance set.
较佳地,本申请实施例采用如下计算方法,求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离:Preferably, the embodiment of the present application adopts the following calculation method to solve the longitude distance and the latitude distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate:
d 1=|x 1-x 2| d 1 =|x 1 -x 2 |
d 2=|y 1-y 2| d 2 =|y 1 -y 2 |
其中,d 1为所述经线距离,x 1为所述地理位置坐标的经线坐标值,x 2为所述地理位置兴趣点坐标的经线坐标值,d 2为所述纬线距离,y 1为所述地理位置坐标的纬线坐标值,y 2为所述地理位置兴趣点坐标的纬线坐标值。 Wherein, d 1 is the longitude distance, x 1 is the longitude coordinate value of the geographic location coordinates, x 2 is the longitude coordinate value of the geographic location interest point coordinate, d 2 is the latitude distance, and y 1 is the location The latitude coordinate value of the geographic location coordinates, and y 2 is the latitude coordinate value of the coordinates of the point of interest in the geographic location.
从地理知识可知,严格来说地球的经纬线不是垂直关系,为了计算方便,本申请预设地理的经纬线为垂直关系,进一步地,如附图2所示,A点为地理位置兴趣点坐标、B点为地理位置坐标,则AB两点的经线距离为AM,纬线距离为BM,距离AB为A点与B点的对角线距离。From the knowledge of geography, strictly speaking, the longitude and latitude lines of the earth are not a vertical relationship. For the convenience of calculation, this application presupposes that the longitude and latitude lines of the geography are vertical. , Point B is the geographic location coordinates, then the longitude distance between two points AB is AM, the latitude distance is BM, and the distance AB is the diagonal distance between point A and point B.
根据勾股定理,结合上述AM和BM可求出AB的对角线距离。According to the Pythagorean theorem, the diagonal distance of AB can be obtained by combining the above AM and BM.
所述位置匹配模块104判断所述对角线距离集内是否存在至少一个小于预设阈值的对角线距离,若所述对角线距离集内存在小于所述预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置,将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。The position matching module 104 determines whether there is at least one diagonal distance smaller than a preset threshold in the diagonal distance set, and if there is a diagonal distance smaller than the preset threshold in the diagonal distance set When, select the smallest diagonal distance from the diagonal distance set, obtain the original geographic location corresponding to the smallest diagonal distance, and obtain the geographic location matching the interest point of the geographic location, which will be The geographic location matched by the geographic location interest point is sent to the geographic location positioning device.
进一步地,若所述对角线距离集内不存在小于所述预设阈值的对角线距离,则所述地理位置兴趣点匹配失败,将地理位置兴趣点匹配失败的结果发送至所述地理位置定位设备,并返回上述的地理位置划分模块101重新获取地理位置兴趣点。Further, if there is no diagonal distance less than the preset threshold in the diagonal distance set, then the matching of the geographic location interest point fails, and the result of the geographic location interest point matching failure is sent to the geographic location. Position the device, and return to the aforementioned geographic location division module 101 to re-acquire geographic interest points.
如上述由AB、AC、AD、AE等组成的对角线距离集,最小的对角线距离为31mm,而预设阈值为29mm,因此地理位置兴趣点与所述原始地理位置集无法完成合理匹配,因此匹配失败。For the above diagonal distance set composed of AB, AC, AD, AE, etc., the smallest diagonal distance is 31mm, and the preset threshold is 29mm, so the geographic interest point and the original geographic location set cannot be completed reasonably. Match, so the match failed.
如上述由AB、AC、AD、AE等组成的对角线距离集,最小的对角线距离为31mm,而预设阈值为32mm,且最小的对角线距离所对应的地理位置坐标为C点,通过C点查询得到原始地理位置集中与C点对应的原始地理位置是与地理位置兴趣点匹配。For the above diagonal distance set consisting of AB, AC, AD, AE, etc., the smallest diagonal distance is 31mm, and the preset threshold is 32mm, and the smallest diagonal distance corresponds to the geographic location coordinate C Point, the original geographic location corresponding to point C in the original geographic location set through the query of point C is matched with the geographic interest point.
如上述a1为标签的城市a1宾馆[宾馆A_1_第一矩形框、宾馆A_2_第二矩形框、宾馆A_3_第三矩形框…]、城市b1_宾馆[宾馆A_1_第四矩形框、宾馆A_2_第五矩形框、宾馆A_3_第六矩形框…],将a1城市的宾馆和b1城市的宾馆都映射在同样的坐标系中,通过在坐标系中计算地理位置兴趣点和地理位置坐标的对角线距离,选取出a1城市、b1城市与地理位置兴趣点匹配的宾馆,同样的,餐馆兴趣点也如上述宾馆的计算方式相同,从而得到a1城市、b1城市与地理位置兴趣点匹配的餐馆。For example, city a1 hotel with label a1 [hotel A_1_first rectangular box, hotel A_2_second rectangular box, hotel A_3_third rectangular box...], city b1_hotel[hotel A_1_fourth rectangular box, hotel A_2_Fifth rectangular box, Hotel A_3_Sixth rectangular box...], map the hotel in city a1 and hotel in city b1 in the same coordinate system, and calculate geographic location interest points and geographic location coordinates in the coordinate system Select the hotel where the a1 city, b1 city and the geographical location interest point match. Similarly, the restaurant interest point is calculated in the same way as the above hotel, so that the a1 city, b1 city and the geographical location interest point match Restaurant.
如图4所示,是本申请实现地理位置数据的匹配方法的电子设备的结构示意图。As shown in FIG. 4, it is a schematic structural diagram of an electronic device that implements a method for matching geographic location data in this application.
所述电子设备1可以包括处理器10、存储器11和总线,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如地理位置数据的匹配程序12。The electronic device 1 may include a processor 10, a memory 11, and a bus, and may also include a computer program stored in the memory 11 and running on the processor 10, such as a matching program 12 for geographic location data.
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质可以是非易失性,也可以是易失性,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备1的内部存储单元,例如该电子设备1的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备1的外部存储设备,例如电子设备1上配备的插接式移动硬盘、智能存储卡(Smart Media Card, SMC)、安全数字(Secure Digital, SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备1的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备1的应用软件及各类数据,例如地理位置数据的匹配的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 includes at least one type of readable storage medium. The readable storage medium may be non-volatile or volatile. The readable storage medium includes flash memory, mobile hard disk, and multimedia card. , Card-type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, for example, a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk or a smart memory card (Smart Memory Card) equipped on the electronic device 1. Media Card, SMC), Secure Digital (Secure Digital, SD) card, flash memory card (Flash Card) and so on. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can be used not only to store application software and various data installed in the electronic device 1, such as matching codes of geographic location data, etc., but also to temporarily store data that has been output or will be output.
所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(Control Unit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如执行地理位置数据的匹配等),以及调用存储在所述存储器11内的数据,以执行电子设备1的各种功能和处理数据。The processor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same function or different functions, including one or more Central processing unit Processing unit, CPU), microprocessor, digital processing chip, graphics processor and a combination of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, which uses various interfaces and lines to connect the various components of the entire electronic device, and runs or executes programs or modules stored in the memory 11 (such as executing Matching of geographic location data, etc.), and call data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
所述总线可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard structure (extended industry standard structure). industry standard architecture, EISA for short) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. The bus is configured to implement connection and communication between the memory 11 and at least one processor 10 and the like.
图4仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图4示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 4 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 4 does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure. Components, or a combination of certain components, or different component arrangements.
例如,尽管未示出,所述电子设备1还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备1还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, thereby controlling the power supply. The device implements functions such as charge management, discharge management, and power consumption management. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
进一步地,所述电子设备1还可以包括网络接口,可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备1与其他电子设备之间建立通信连接。Further, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and/or a wireless interface (such as a Wi-Fi interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
可选地,该电子设备1还可以包括用户接口,用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备1中处理的信息以及用于显示可视化的用户界面。Optionally, the electronic device 1 may also include a user interface. The user interface may be a display (Display) and an input unit (such as a keyboard (Keyboard)). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display can also be appropriately called a display screen or a display unit, which is used to display the information processed in the electronic device 1 and to display a visualized user interface.
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only for illustrative purposes, and are not limited by this structure in the scope of the patent application.
所述电子设备1中的所述存储器11存储的地理位置数据的匹配12是多个指令的组合,在所述处理器10中运行时,可以实现:The matching 12 of geographic location data stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can be implemented:
从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集。Obtain the geographic location interest points and the original geographic location set from the geographic location positioning device, and divide the original geographic location set into one or more sets of standard geographic location sets.
预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标。A multidimensional coordinate system is pre-built, and the standard geographic location set and the geographic location interest point are mapped to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates.
求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集。The diagonal distance between each geographic location coordinate in the geographic location coordinate set and the coordinate of the point of interest in the geographic location is solved to obtain a diagonal distance set.
在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置,将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。具体地,所述处理器10对上述指令的具体实现方法可参考图3对应实施例中相关步骤的描述,在此不赘述。When there is at least one diagonal distance less than a preset threshold in the diagonal distance set, the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of, the geographic location matching the geographic location interest point is obtained, and the geographic location matching the geographic location interest point is sent to the geographic location positioning device. Specifically, for the specific implementation method of the above-mentioned instructions by the processor 10, reference may be made to the description of the relevant steps in the embodiment corresponding to FIG. 3, which will not be repeated here.
进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非易失性或易失性计算机可读取存储介质中。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Further, if the integrated module/unit of the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile or volatile computer readable storage medium . The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory).
在本申请所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided in this application, it should be understood that the disclosed equipment, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。For those skilled in the art, it is obvious that the present application is not limited to the details of the foregoing exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or basic characteristics of the application.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of this application is defined by the appended claims rather than the above description, and therefore it is intended to fall into the claims. All changes in the meaning and scope of the equivalent elements of are included in this application. Any associated diagram marks in the claims should not be regarded as limiting the claims involved.
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。In addition, it is obvious that the word "including" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claims can also be implemented by one unit or device through software or hardware. The second class words are used to indicate names, and do not indicate any specific order.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application and not to limit them. Although the application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the application can be Make modifications or equivalent replacements without departing from the spirit and scope of the technical solution of the present application.

Claims (20)

  1. 一种地理位置数据的匹配方法,其中,所述方法包括:A method for matching geographic location data, wherein the method includes:
    从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;Obtaining geographic location points of interest and original geographic location sets from the geographic location positioning device, and dividing the original geographic location sets into one or more standard geographic location sets;
    预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;Pre-build a multi-dimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
    求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;Solving the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
    在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置;When there is at least one diagonal distance less than a preset threshold in the diagonal distance set, the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
    将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。Send the geographic location matching the geographic location interest point to the geographic location positioning device.
  2. 如权利要求1所述的地理位置数据的匹配方法,其中,所述将所述原始地理位置集划分为一组或多组标准地理位置集,包括:The method for matching geographic location data according to claim 1, wherein the dividing the original geographic location set into one or more standard geographic location sets includes:
    以行政区域为划分依据对所述原始地理位置集进行初次划分,得到一组或多组初级地理位置集;Divide the original geographic location set for the first time on the basis of administrative region division to obtain one or more sets of primary geographic location sets;
    以预设的平面范围为划分依据,对所述初级地理位置集进行再次划分,得到所述一组或多组所述标准地理位置集。Using a preset plane range as a division basis, the primary geographic location set is divided again to obtain the one or more sets of the standard geographic location set.
  3. 如权利要求2所述的地理位置数据的匹配方法,其中,所述求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集,包括:The method for matching geographic location data according to claim 2, wherein the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the coordinate of the geographic location interest point is obtained by calculating the diagonal distance Set, including:
    根据预设的地理经纬线垂直关系,分别求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离;According to the preset vertical relationship of geographic longitude and latitude, respectively solving the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate;
    根据所述经线距离和所述纬线距离求解得到在所述平面范围的对角线距离,汇集所述对角线距离得到所述对角线距离集。The diagonal distance in the plane range is obtained by solving the warp distance and the latitude distance, and collecting the diagonal distances to obtain the diagonal distance set.
  4. 如权利要求3所述的地理位置数据的匹配方法,其中,所述求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离,包括:The method for matching geographic location data according to claim 3, wherein said solving the longitude and latitude distances between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate includes:
    采用如下计算方法,求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离:The following calculation method is adopted to solve the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate:
    d 1=|x 1-x 2| d 1 =|x 1 -x 2 |
    d 2=|y 1-y 2| d 2 =|y 1 -y 2 |
    其中,d 1为所述经线距离,x 1为所述地理位置坐标的经线坐标值,x 2为所述地理位置兴趣点坐标的经线坐标值,d 2为所述纬线距离,y 1为所述地理位置坐标的纬线坐标值,y 2为所述地理位置兴趣点坐标的纬线坐标值。 Wherein, d 1 is the longitude distance, x 1 is the longitude coordinate value of the geographic location coordinates, x 2 is the longitude coordinate value of the geographic location interest point coordinate, d 2 is the latitude distance, and y 1 is the location The latitude coordinate value of the geographic location coordinates, and y 2 is the latitude coordinate value of the coordinates of the point of interest in the geographic location.
  5. 如权利要求1所述的地理位置数据的匹配方法,其中,所述方法还包括:The method for matching geographic location data according to claim 1, wherein the method further comprises:
    在所述对角线距离集内不存在小于所述预设阈值的对角线距离时,将地理位置兴趣点匹配失败的结果发送至所述地理位置定位设备,并返回获取地理位置兴趣点的步骤。When there is no diagonal distance smaller than the preset threshold in the diagonal distance set, the result of the failure of matching the geographic location interest point is sent to the geographic location positioning device, and the information for obtaining the geographic location interest point is returned step.
  6. 如权利要求5所述的地理位置数据的匹配方法,其中,所述原始地理位置集包括多个由地理位置标签以及地理位置标签对应的地理位置所组成的数据组。The method for matching geographic location data according to claim 5, wherein the original geographic location set includes a plurality of data groups composed of geographic location tags and geographic locations corresponding to the geographic location tags.
  7. 一种地理位置数据的匹配装置,其中,所述装置包括:A matching device for geographic location data, wherein the device includes:
    地理位置划分模块,用于从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;The geographic location division module is used to obtain geographic location points of interest and original geographic location sets from the geographic location positioning device, and divide the original geographic location sets into one or more standard geographic location sets;
    坐标映射模块,用于预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;The coordinate mapping module is used to pre-build a multidimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
    对角线距离计算模块,用于求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;The diagonal distance calculation module is used to calculate the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
    位置匹配模块,用于在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置,将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。The position matching module is configured to select the smallest diagonal distance from the diagonal distance set when there is at least one diagonal distance less than a preset threshold in the diagonal distance set, and obtain the minimum diagonal distance The original geographic location corresponding to the diagonal distance of is obtained, and the geographic location matching the geographic location interest point is obtained, and the geographic location matching the geographic location interest point is sent to the geographic location positioning device.
  8. 如权利要求7所述的地理位置数据的匹配装置,其中,所述将所述原始地理位置集划分为一组或多组标准地理位置集,包括:The device for matching geographic location data according to claim 7, wherein the dividing the original geographic location set into one or more standard geographic location sets comprises:
    以行政区域为划分依据对所述原始地理位置集进行初次划分,得到一组或多组初级地理位置集;Divide the original geographic location set for the first time on the basis of administrative region division to obtain one or more sets of primary geographic location sets;
    以预设的平面范围为划分依据,对所述初级地理位置集进行再次划分,得到所述一组或多组所述标准地理位置集。Using a preset plane range as a division basis, the primary geographic location set is divided again to obtain the one or more sets of the standard geographic location set.
  9. 如权利要求8所述的地理位置数据的匹配装置,其中,所述求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集,包括:The device for matching geographic location data according to claim 8, wherein the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the coordinate of the geographic location interest point is calculated to obtain the diagonal distance Set, including:
    根据预设的地理经纬线垂直关系,分别求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离;According to the preset vertical relationship of geographic longitude and latitude, respectively solving the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate;
    根据所述经线距离和所述纬线距离求解得到在所述平面范围的对角线距离,汇集所述对角线距离得到所述对角线距离集。The diagonal distance in the plane range is obtained by solving the warp distance and the latitude distance, and collecting the diagonal distances to obtain the diagonal distance set.
  10. 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device includes:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时实现如下步骤:The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the following steps are implemented:
    从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;Obtaining geographic location points of interest and original geographic location sets from the geographic location positioning device, and dividing the original geographic location sets into one or more standard geographic location sets;
    预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;Pre-build a multi-dimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
    求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;Solving the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
    在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置;When there is at least one diagonal distance less than a preset threshold in the diagonal distance set, the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
    将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。Send the geographic location matching the geographic location interest point to the geographic location positioning device.
  11. 如权利要求10所述的电子设备,其中,所述将所述原始地理位置集划分为一组或多组标准地理位置集,包括:The electronic device of claim 10, wherein the dividing the original geographic location set into one or more standard geographic location sets comprises:
    以行政区域为划分依据对所述原始地理位置集进行初次划分,得到一组或多组初级地理位置集;Divide the original geographic location set for the first time on the basis of administrative region division to obtain one or more sets of primary geographic location sets;
    以预设的平面范围为划分依据,对所述初级地理位置集进行再次划分,得到所述一组或多组所述标准地理位置集。Using a preset plane range as a division basis, the primary geographic location set is divided again to obtain the one or more sets of the standard geographic location set.
  12. 如权利要求11所述的电子设备,其中,所述求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集,包括:The electronic device according to claim 11, wherein said solving the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the coordinate of the geographic location interest point to obtain a diagonal distance set comprises:
    根据预设的地理经纬线垂直关系,分别求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离;According to the preset vertical relationship of geographic longitude and latitude, respectively solving the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate;
    根据所述经线距离和所述纬线距离求解得到在所述平面范围的对角线距离,汇集所述对角线距离得到所述对角线距离集。The diagonal distance in the plane range is obtained by solving the warp distance and the latitude distance, and collecting the diagonal distances to obtain the diagonal distance set.
  13. 如权利要求12所述的电子设备,其中,所述求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离,包括:The electronic device according to claim 12, wherein said solving the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the coordinate of the geographic location interest point coordinate comprises:
    采用如下计算方法,求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离:The following calculation method is adopted to solve the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate:
    d 1=|x 1-x 2| d 1 =|x 1 -x 2 |
    d 2=|y 1-y 2| d 2 =|y 1 -y 2 |
    其中,d 1为所述经线距离,x 1为所述地理位置坐标的经线坐标值,x 2为所述地理位置兴趣点坐标的经线坐标值,d 2为所述纬线距离,y 1为所述地理位置坐标的纬线坐标值,y 2为所述地理位置兴趣点坐标的纬线坐标值。 Wherein, d 1 is the longitude distance, x 1 is the longitude coordinate value of the geographic location coordinates, x 2 is the longitude coordinate value of the geographic location interest point coordinate, d 2 is the latitude distance, and y 1 is the location The latitude coordinate value of the geographic location coordinates, and y 2 is the latitude coordinate value of the coordinates of the point of interest in the geographic location.
  14. 如权利要求10所述的电子设备,其中,所述指令被所述至少一个处理器执行时还实现如下步骤:11. The electronic device according to claim 10, wherein, when the instructions are executed by the at least one processor, the following steps are further implemented:
    在所述对角线距离集内不存在小于所述预设阈值的对角线距离时,将地理位置兴趣点匹配失败的结果发送至所述地理位置定位设备,并返回获取地理位置兴趣点的步骤。When there is no diagonal distance smaller than the preset threshold in the diagonal distance set, the result of the failure of matching the geographic location interest point is sent to the geographic location positioning device, and the information for obtaining the geographic location interest point is returned step.
  15. 如权利要求14所述的电子设备,其中,所述原始地理位置集包括多个由地理位置标签以及地理位置标签对应的地理位置所组成的数据组。The electronic device according to claim 14, wherein the original geographic location set includes a plurality of data sets composed of geographic location tags and geographic locations corresponding to the geographic location tags.
  16. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the following steps:
    从地理位置定位设备中获取地理位置兴趣点和原始地理位置集,将所述原始地理位置集划分为一组或多组标准地理位置集;Obtaining geographic location points of interest and original geographic location sets from the geographic location positioning device, and dividing the original geographic location sets into one or more standard geographic location sets;
    预构建多维坐标系,将所述标准地理位置集及所述地理位置兴趣点映射至所述多维坐标系,得到地理位置坐标集和地理位置兴趣点坐标;Pre-build a multi-dimensional coordinate system, map the standard geographic location set and the geographic location interest point to the multidimensional coordinate system to obtain the geographic location coordinate set and geographic location interest point coordinates;
    求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集;Solving the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate to obtain a diagonal distance set;
    在所述对角线距离集内存在至少一个小于预设阈值的对角线距离时,从所述对角线距离集内选取最小的对角线距离,获取所述最小的对角线距离对应的原始地理位置,得到与所述地理位置兴趣点匹配的地理位置;When there is at least one diagonal distance less than a preset threshold in the diagonal distance set, the smallest diagonal distance is selected from the diagonal distance set, and the smallest diagonal distance corresponding to the The original geographic location of to obtain the geographic location that matches the point of interest in the geographic location;
    将与所述地理位置兴趣点匹配的地理位置发送至所述地理位置定位设备。Send the geographic location matching the geographic location interest point to the geographic location positioning device.
  17. 如权利要求16所述的计算机可读存储介质,其中,所述将所述原始地理位置集划分为一组或多组标准地理位置集,包括:15. The computer-readable storage medium of claim 16, wherein the dividing the original geographic location set into one or more standard geographic location sets comprises:
    以行政区域为划分依据对所述原始地理位置集进行初次划分,得到一组或多组初级地理位置集;Divide the original geographic location set for the first time on the basis of administrative region division to obtain one or more sets of primary geographic location sets;
    以预设的平面范围为划分依据,对所述初级地理位置集进行再次划分,得到所述一组或多组所述标准地理位置集。Using a preset plane range as a division basis, the primary geographic location set is divided again to obtain the one or more sets of the standard geographic location set.
  18. 如权利要求17所述的计算机可读存储介质,其中,所述求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的对角线距离,得到对角线距离集,包括:The computer-readable storage medium according to claim 17, wherein said solving the diagonal distance between each geographic location coordinate in the geographic location coordinate set and the coordinate of the geographic location interest point to obtain a diagonal distance set ,include:
    根据预设的地理经纬线垂直关系,分别求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离;According to the preset vertical relationship of geographic longitude and latitude, respectively solving the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate;
    根据所述经线距离和所述纬线距离求解得到在所述平面范围的对角线距离,汇集所述对角线距离得到所述对角线距离集。The diagonal distance in the plane range is obtained by solving the warp distance and the latitude distance, and collecting the diagonal distances to obtain the diagonal distance set.
  19. 如权利要求18所述的计算机可读存储介质,其中,所述求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离,包括:The computer-readable storage medium according to claim 18, wherein said solving the longitude and latitude distances of each geographic location coordinate in the geographic location coordinate set and the coordinate of the geographic location interest point coordinate comprises:
    采用如下计算方法,求解所述地理位置坐标集内每个地理位置坐标和所述地理位置兴趣点坐标的经线距离和纬线距离:The following calculation method is adopted to solve the longitude distance and the latitude distance of each geographic location coordinate in the geographic location coordinate set and the geographic location interest point coordinate:
    d 1=|x 1-x 2| d 1 =|x 1 -x 2 |
    d 2=|y 1-y 2| d 2 =|y 1 -y 2 |
    其中,d 1为所述经线距离,x 1为所述地理位置坐标的经线坐标值,x 2为所述地理位置兴趣点坐标的经线坐标值,d 2为所述纬线距离,y 1为所述地理位置坐标的纬线坐标值,y 2为所述地理位置兴趣点坐标的纬线坐标值。 Wherein, d 1 is the longitude distance, x 1 is the longitude coordinate value of the geographic location coordinates, x 2 is the longitude coordinate value of the geographic location interest point coordinate, d 2 is the latitude distance, and y 1 is the location The latitude coordinate value of the geographic location coordinates, and y 2 is the latitude coordinate value of the coordinates of the point of interest in the geographic location.
  20. 如权利要求16所述的计算机可读存储介质,其中,所述计算机程序被处理器执行时还实现如下步骤:16. The computer-readable storage medium of claim 16, wherein the computer program further implements the following steps when being executed by the processor:
    在所述对角线距离集内不存在小于所述预设阈值的对角线距离时,将地理位置兴趣点匹配失败的结果发送至所述地理位置定位设备,并返回获取地理位置兴趣点的步骤。When there is no diagonal distance smaller than the preset threshold in the diagonal distance set, the result of the failure of matching the geographic location interest point is sent to the geographic location positioning device, and the information for obtaining the geographic location interest point is returned step.
PCT/CN2020/098987 2020-01-02 2020-06-29 Geographic position data matching method, apparatus, electronic device and storage medium WO2021135106A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010009222.5 2020-01-02
CN202010009222.5A CN111198927B (en) 2020-01-02 2020-01-02 Geographic position data matching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021135106A1 true WO2021135106A1 (en) 2021-07-08

Family

ID=70746808

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098987 WO2021135106A1 (en) 2020-01-02 2020-06-29 Geographic position data matching method, apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN111198927B (en)
WO (1) WO2021135106A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198927B (en) * 2020-01-02 2020-11-17 平安科技(深圳)有限公司 Geographic position data matching method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697730B2 (en) * 2000-04-04 2004-02-24 Georgia Tech Research Corp. Communications and computing based urban transit system
CN105468631A (en) * 2014-09-04 2016-04-06 阿里巴巴集团控股有限公司 Point-of-interest query method and apparatus
CN107436925A (en) * 2017-07-07 2017-12-05 杭州冉驰科技有限公司 A kind of POI data search method and correlating method
CN109974716A (en) * 2019-02-27 2019-07-05 上海晶赞融宣科技有限公司 Geographical location matching process and device, storage medium, server
CN111198927A (en) * 2020-01-02 2020-05-26 平安科技(深圳)有限公司 Geographic position data matching method and device, electronic equipment and storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702165A (en) * 2009-10-30 2010-05-05 高翔 Live-action information system and method thereof based on GPS positioning and direction identification technology
US8942729B2 (en) * 2012-02-02 2015-01-27 Apple Inc. Location based methods, systems, and program products for performing an action at a user device
CN102999859A (en) * 2012-12-25 2013-03-27 李亚星 Information promotion service platform and service method based on global positioning system (GPS)
CN105095314B (en) * 2014-05-22 2018-09-11 北京四维图新科技股份有限公司 A kind of mask method of point of interest, terminal, navigation server and navigation system
CN104537606B (en) * 2014-12-09 2018-02-02 中国农业大学 Geographical coordinate projects changing method
CN106611281A (en) * 2016-06-08 2017-05-03 四川用联信息技术有限公司 Algorithm based on two-dimensional plane domain distance for solving job shop scheduling problem
CN106228160B (en) * 2016-08-03 2019-10-18 浙江宇视科技有限公司 Headend equipment localization method and device
CN107506499B (en) * 2017-09-30 2020-01-17 百度在线网络技术(北京)有限公司 Method, device and server for establishing logical relationship between interest point and building
CN107845060A (en) * 2017-10-31 2018-03-27 广东中星电子有限公司 Geographical position and corresponding image position coordinates conversion method and system
CN107729567A (en) * 2017-11-14 2018-02-23 程桂平 Geographical position matching process and system and smart mobile phone
CN109274732B (en) * 2018-09-05 2021-09-17 北京达佳互联信息技术有限公司 Geographic position obtaining method and device, electronic equipment and storage medium
CN109670005B (en) * 2018-12-18 2021-07-30 广州轨道交通建设监理有限公司 Position matching method of BIM (building information modeling) model and three-dimensional geographic scene
CN109994038B (en) * 2019-02-20 2020-08-28 北京三快在线科技有限公司 Method and device for determining interest points in irregular area and electronic equipment
CN110035180B (en) * 2019-04-11 2022-01-28 Oppo广东移动通信有限公司 Card display method, device, terminal and storage medium
CN110599717B (en) * 2019-07-30 2021-07-20 华为技术有限公司 Electronic fence detection method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697730B2 (en) * 2000-04-04 2004-02-24 Georgia Tech Research Corp. Communications and computing based urban transit system
CN105468631A (en) * 2014-09-04 2016-04-06 阿里巴巴集团控股有限公司 Point-of-interest query method and apparatus
CN107436925A (en) * 2017-07-07 2017-12-05 杭州冉驰科技有限公司 A kind of POI data search method and correlating method
CN109974716A (en) * 2019-02-27 2019-07-05 上海晶赞融宣科技有限公司 Geographical location matching process and device, storage medium, server
CN111198927A (en) * 2020-01-02 2020-05-26 平安科技(深圳)有限公司 Geographic position data matching method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111198927A (en) 2020-05-26
CN111198927B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
US8996523B1 (en) Forming quality street addresses from multiple providers
CN109478184B (en) Identifying, processing, and displaying clusters of data points
US9134886B2 (en) Providing indoor facility information on a digital map
US20150370828A1 (en) Tile-Based Distribution of Searchable Geospatial Data to Client Devices
US10972862B2 (en) Visitor insights based on hyper-locating places-of-interest
CN107220308B (en) Method, device and equipment for detecting rationality of POI (Point of interest) and readable medium
US20200279491A1 (en) Methods and systems for spatial clustering based on mobility data
CN103699615A (en) Rapid map representing method and system based on point vector data multilayer storage
Xiao et al. Assessing polycentric urban development in Shanghai, China, with detailed passive mobile phone data
CN103136232A (en) Method and device for displaying dynamic map
WO2019199298A1 (en) Off-viewport location indications for digital mapping
WO2021135106A1 (en) Geographic position data matching method, apparatus, electronic device and storage medium
CN105184435A (en) Field staff management method and system
US10200816B2 (en) Method and apparatus for selective zone-based communications
CN114792111A (en) Data acquisition method and device, electronic equipment and storage medium
WO2021232278A1 (en) Map acquisition method and apparatus, computer device, and storage medium
US11598639B2 (en) System for offsite navigation
CN103457758B (en) A kind of network equipment positioning and management system based on indoor positioning technologies
WO2023231459A1 (en) Method for generating intersection surface and related apparatus
US20140180574A1 (en) Electronic device and method for updating rendezvous location of communication devices
US11093530B2 (en) Technologies for management of data layers in a heterogeneous geographic information system map
CN105512263A (en) Multi-mode electronic map display method and system
WO2021174917A1 (en) Artificial intelligence-based poi positioning method and device, computer device, and medium
CN115527000A (en) Method and device for batch singularization of oblique photography models of unmanned aerial vehicle
KR20150021168A (en) Field investigation system using smart device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20908776

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20908776

Country of ref document: EP

Kind code of ref document: A1