WO2016127877A1 - Positioning data generation method and device - Google Patents

Positioning data generation method and device Download PDF

Info

Publication number
WO2016127877A1
WO2016127877A1 PCT/CN2016/073268 CN2016073268W WO2016127877A1 WO 2016127877 A1 WO2016127877 A1 WO 2016127877A1 CN 2016073268 W CN2016073268 W CN 2016073268W WO 2016127877 A1 WO2016127877 A1 WO 2016127877A1
Authority
WO
WIPO (PCT)
Prior art keywords
positioning
data
base station
pieces
historical
Prior art date
Application number
PCT/CN2016/073268
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 WO2016127877A1 publication Critical patent/WO2016127877A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a method and an apparatus for generating positioning data.
  • GPS Global Positioning System
  • server positioning can be performed by a Global Positioning System (GPS) or a server.
  • GPS Global Positioning System
  • server positioning is overcome by server positioning.
  • the server positioning process includes: the mobile terminal detects the neighboring base station information, and sends the detected base station information to the server, and the server queries the preset positioning database to obtain the corresponding geographical location according to the base station information sent by the mobile terminal, and sends the query result to the Mobile terminal to achieve positioning.
  • the server generates a positioning database in advance by: in the positioning database construction phase, the mobile terminal determines the current geographic location of the user through the GPS module, and scans the base station information near the geographical location of the user through the communication module ( CELL ID, signal strength, etc., the scanned base station information is bound to the determined geographical location and uploaded to the server for the server to generate a positioning database.
  • the generated positioning database is relatively simple and inconvenient to use, so it is necessary to provide a new type of positioning database.
  • aspects of the present application provide a positioning data generating method and apparatus for generating a new positioning database and enriching the implementation of the positioning database.
  • An aspect of the present application provides a method for generating positioning data, including:
  • each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter includes: a location area code LAC;
  • the N pieces of positioning reference data are stored in a positioning database.
  • a positioning data generating apparatus including:
  • each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter Including: location area code LAC;
  • a storage module configured to store the N positioning reference data into a positioning database.
  • N pieces of positioning reference data are obtained, and N pieces of positioning reference data are stored in the positioning database; wherein each positioning reference data includes a mapping relationship between the network identification parameter and the reference position area,
  • the network identification parameter includes the LAC, that is, the positioning database provided by the present application includes the mapping relationship between the LAC and the reference location area, and is different from the existing positioning database, and is a new positioning database capable of supporting positioning based on the LAC, enriching the positioning database.
  • FIG. 1 is a schematic flowchart of a method for generating positioning data according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a positioning data generating apparatus according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for generating positioning data according to an embodiment of the present application. As shown in Figure 1, the method includes:
  • each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter includes: Location Area Code (LAC).
  • LAC Location Area Code
  • This embodiment provides a positioning data generating method, which can be executed by a positioning data generating device (hereinafter simply referred to as a generating device).
  • a positioning data generating device hereinafter simply referred to as a generating device.
  • the generating device may be a device such as a server or a terminal device and has the capability to generate positioning data.
  • terminal devices can implement positioning functions. For example, terminal devices implement positioning by installing various applications having positioning functions, such as maps, GPS, and the like. Specifically, the user may send a positioning request to the server corresponding to the application by using the application with the positioning function on the terminal device, and receive the positioning result returned by the server. The positioning operation of the user generates a positioning data, and the positioning data includes data related to the positioning operation. With the development of LAC technology, for data integrity, existing positioning data generally includes LAC.
  • the generating device may obtain a large amount of historical positioning data, obtain a certain number of positioning reference data based on the acquired historical positioning data, and store the positioning reference data into the positioning database to obtain a positioning database.
  • the number of historical positioning data used by the generating device is represented by M
  • the obtained number of positioning reference data is represented by N, that is, the generating device obtains N positioning reference data according to the M pieces of historical positioning data.
  • M and N are natural numbers, and generally M is greater than N.
  • the historical positioning data can be obtained from the operator, or can be collected by various
  • the location log of the application of the location function is obtained from the location log.
  • Applications with positioning capabilities can be, but are not limited to, various maps.
  • the positioning reference data in this embodiment includes the mapping relationship between the network identification parameter and the reference location area, instead of including the location corresponding to the base station and the base station, and the network identification parameter refers to the network identification parameter including the LAC.
  • the LAC is set up for paging, and each LAC covers a geographical area. In order to determine the location of the terminal device, the coverage area of each GSM Public Land Mobile Network (GSM PLMN) is divided into a plurality of location areas, one location area may contain one or more cells, and the LAC is used to identify different locations. Location area.
  • GSM PLMN GSM Public Land Mobile Network
  • the LAC is included in the LAI and consists of two bytes. It is encoded in hexadecimal. The available range is 0x0000-0xFFFF.
  • the code groups 0x0000 and 0xFFFE cannot be used. See GSM specifications 03.03, 04.08 and 11.11.
  • the positioning reference data provided by the embodiment can be located through the LAC, which means that the positioning database provided in this embodiment is a new positioning database that supports positioning through the LAC, and is different from the existing positioning database, and enriches the positioning database.
  • the implementation method also provides a convenient condition for the new positioning mode based on LAC, which is beneficial to the implementation of LAC-based positioning.
  • the positioning database provided in this embodiment can be stored locally in the terminal device because the amount of data is relatively small, and the terminal device uses local positioning reference data for positioning, which can meet the positioning requirement of an application with low precision requirement, and the positioning speed is fast.
  • the positioning of the terminal device can be realized without using a network or a GPS module.
  • the positioning data may be generated periodically, for example, the period of “one day” may be generated, that is, the positioning data may be generated every day; or “two days”, “12 hours”, “2 hours”, etc. may be used. For the cycle.
  • the M positioning data used each time the positioning data is generated may be produced within a specified time period.
  • Raw positioning data that is, using partial historical positioning data
  • the M pieces of historical positioning data used for generating the positioning data may be all the positioning data that can be obtained when the positioning data is generated this time (that is, using the full amount of data), so that the positioning database obtained each time is included. There may be more positioning reference data to improve the comprehensiveness of the positioning database.
  • the generating device may specifically combine the historical positioning data generated between the last generated positioning data and the current generated positioning data with the historical positioning data used for generating the positioning data last time to obtain the present
  • the M pieces of historical positioning data used for the positioning data are generated one by one, thereby providing conditions for generating the positioning data for this time. Since the historical positioning data used for the previous generation of the positioning data has been acquired, when the positioning data is generated, it is only necessary to obtain the historical positioning data generated between the two generated positioning data, which is beneficial for reducing the consumption of the historical positioning data. Resources, and getting incremental data is relatively easy.
  • the values of some fields in the positioning data may be missing, or the format may be incorrect.
  • the generating device may use the M pieces of historical positioning data to obtain N positioning reference data.
  • the historical positioning data is filtered to remove the data format or the missing positioning data to obtain the available historical positioning data of M.
  • the historical positioning data used in this embodiment refers to positioning data generated by using a server positioning manner.
  • the historical positioning data generated by the historical positioning operation generally includes, but is not limited to, the identifier of the base station used by the positioning operation, the identifier of the network identification parameter to which the base station belongs, and the positioning result of the positioning operation (ie, the located location information). Information such as the time of the positioning operation and the mapping relationship between the information.
  • the above historical positioning data may be stored in a list manner, wherein each of the above information is used as a field in the list, and the mapping relationship between the related information in the historical positioning data may be specifically through the field in the list. The correspondence between the two is reflected.
  • the specific implementation process of the N generating positioning reference data by the generating device according to the M historical positioning data includes:
  • the generating device obtains a reference position corresponding to the K base stations according to the base station identifier and the positioning result in the M pieces of historical positioning data, where K is a natural number; and further, according to the reference position corresponding to the K base stations and the base station identifier in the M pieces of historical positioning data
  • the network identifies the parameter identifier, obtains a mapping relationship between the N network identification parameters and the reference location area, and uses a mapping relationship between the network identification parameter and the reference location area as a positioning reference data.
  • the base station used in the M-time historical positioning operation may have a repetition, that is, the same base station may be used for multiple historical positioning operations, based on this consideration, the above K is generally smaller than M.
  • the generating device performs clustering processing on the positioning results in the M historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M historical positioning data to obtain a reference position corresponding to the K base stations.
  • the generating device may calculate the positioning result corresponding to each base station from the M pieces of historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M pieces of historical positioning data; and cluster the positioning results corresponding to each base station. Obtain a reference position corresponding to each base station.
  • the generating device may use various clustering algorithms to cluster the positioning results corresponding to each base station.
  • a density-based clustering algorithm such as a Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm
  • DBSCAN Density-Based Spatial Clustering of Applications with Noise
  • the principle of the DBSCAN algorithm is to define a cluster as the largest set of points connected by density, to divide a region with a sufficiently high density into clusters, and to find clusters of arbitrary shapes in a spatial database of noise.
  • the embodiment may be divided into multiple subtasks, each subtask is responsible for clustering part of the historical positioning data, and multiple subtasks are executed concurrently, for saving processing resources and improving processing speed.
  • the generating device groups the M pieces of historical positioning data to obtain at least one group.
  • the M pieces of historical positioning data may be divided into 96 groups according to the order of positioning time.
  • the method is not limited to the grouping method.
  • the positioning result in the group is clustered according to the mapping relationship between the base station identifier and the positioning result in the group, to obtain the grouping cluster.
  • the candidate reference locations corresponding to the base stations are sent out; then, the candidate reference positions corresponding to the base stations clustered by the at least one group are combined to obtain reference positions corresponding to the K base stations.
  • the number of candidate reference positions corresponding to the base station clustered by each group may be the same or different.
  • the base stations clustered by each group may be the same or different.
  • a base station corresponds to at least two candidate reference positions (meaning that at least two groups are clustered out of candidate reference positions corresponding to the base station)
  • the data includes the number of historical positioning data of the base station that is greater than a specified threshold, and the latest candidate reference position corresponding to the base station is used as a reference position corresponding to the base station;
  • the candidate reference location corresponding to the base station is used as a reference location corresponding to the base station.
  • the candidate reference positions of the base station are relatively similar, and the base station does not move.
  • the average value of the at least two candidate reference positions may be used as a reference position corresponding to the base station, but is not limited thereto.
  • the latest candidate reference position may be used as the reference position corresponding to the base station, and the previous reference position may be deleted.
  • the base station is moved to some extent; further, in order to exclude the related data of the base station from being interference data, it is also possible to determine the time specified before the current time.
  • the historical positioning data generated in the historical positioning data generated in the historical positioning data is greater than the specified threshold. If the determination result is yes, the base station has moved, and Still being used normally, is not interference data, but because the base station has moved, the previous candidate reference position can not accurately reflect the location of the base station, so only the latest candidate reference position can be used as the reference position corresponding to the base station; If the judgment result is no, the related data of the base station may be interference data, which needs to be excluded, for example, may be discarded.
  • some base stations may be removed at any time. Once the base station is removed, no positioning data including the base station identifier is generated. If the reference position corresponding to the base station is used to generate the positioning reference data, the generated reference data may be generated. The positioning reference data is not accurate.
  • the generating device may filter the reference positions corresponding to the K base stations, and select the reference positions corresponding to the L available base stations, where L is a natural number smaller than K; and further, according to M
  • the mapping relationship between the base station identifier and the network identification parameter identifier in the historical positioning data is performed, and the reference positions corresponding to the L available base stations are clustered to obtain a mapping relationship between the N network identification parameters and the reference location area.
  • a center point, a radius, and/or a boundary contour of the reference location area corresponding to each of the network identification parameters of the N network identification parameters may also be calculated.
  • the Melkman algorithm is used to calculate the boundary contour of the reference location area corresponding to each network identification parameter.
  • the main principle of the Melkman algorithm is to use the reference position of each base station in each available base station corresponding to each network identification parameter as a position point in the reference position area corresponding to the network identification parameter, thereby determining the outermost position among each position point.
  • the point is a contour point of the reference position area corresponding to the network identification parameter, and constitutes a boundary contour of the reference position area.
  • an average algorithm can be used to calculate the center point and radius of the reference location area corresponding to each network identification parameter.
  • the latitude and longitude values of the contour points of the reference location area may be calculated to form a longitude sequence and a dimension sequence, and the median points of the longitude sequence and the dimension sequence are respectively calculated.
  • the calculated median point is used as the reference position The center point of the region; further, calculate the distance between the center point and each contour point, and find the average of all distances as the radius of the reference position area.
  • a screening policy may be: for a base station, if the positioning data including the identifier of the base station is generated within a specified time or the amount of positioning data including the identifier of the base station within a specified time is less than a specified threshold, it means that The base station may have been removed or failed, so the reference position corresponding to the base station may be removed from the reference position corresponding to the K base stations.
  • the specified time can be, but is not limited to, three months.
  • the generating device may specifically calculate the network identification parameters belonging to the same group from the reference positions corresponding to the L available base stations according to the mapping relationship between the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data. a reference position corresponding to the base station; performing clustering processing on the reference positions corresponding to the base stations belonging to the same group of network identification parameters, obtaining a reference position area corresponding to the group of network identification parameters, and further forming a mapping relationship between the network identification parameter and the reference location area .
  • the mapping relationship between the network identification parameters and the reference location area is calculated by using the reference position corresponding to the available base stations, which is beneficial to improve the accuracy of the calculation result.
  • the generating device may use a density-based clustering algorithm, such as a DBSCAN algorithm, to perform clustering processing on the reference positions corresponding to the base stations under each group of network identification parameters to obtain a reference location area corresponding to each group of network identification parameters.
  • a density-based clustering algorithm such as a DBSCAN algorithm
  • the reference location area corresponding to the network identification parameter may be represented by information such as a center point, a radius, a boundary, and the like.
  • the mapping relationship between the obtained N network identification parameters and the reference location area may be stored as the positioning reference data in the positioning database for subsequent positioning and use.
  • the positioning database provided in this embodiment can be stored in the server, and based on this, the terminal device can perform online positioning through the positioning database.
  • the positioning database provided in this embodiment may also be stored locally to the terminal device, and based on this, the terminal device may be based on the positioning.
  • the database is positioned offline, that is, in the case of no network connection, positioning can also be performed according to the local positioning database.
  • the positioning database provided by this embodiment may perform at least one of the following positioning operations: server-based positioning and terminal offline positioning.
  • the positioning reference data may be combined to reduce the number of positioning reference data.
  • the network identification parameter may include a Mobile Network Code (MNC) in addition to the LAC, and further includes: a Mobile Country Code (MCC).
  • MCC Mobile Network Code
  • ITU ITU
  • MCC resources are uniformly allocated and managed by the ITU (ITU), which uniquely identifies the country to which the mobile user belongs, a total of 3 digits, and China is 460; the MNC is used to identify the mobile network to which the mobile subscriber belongs, consisting of 2 decimal numbers.
  • the coding range is 00-99 in decimal. For example, China Mobile's TD system uses 00, China Unicom's GSM system uses 01, China Mobile's GSM system uses 02, and China Telecom's CDMA system uses 03.
  • the generating device may specifically combine the N positioning reference data according to the MNC and the LAC to obtain P target positioning reference data, where P is a natural number smaller than N; and then store the P target positioning reference data into the positioning database. This can reduce the number of positioning reference data.
  • the generating device may merge the positioning reference data of different MNCs and the same LAC including the same carrier as much as possible, and if not, all of them are retained. For example, if the MNCs in the two positioning reference data belong to the same carrier and the LACs are the same, the two positioning reference data can be used when the center offset of the two reference location areas is small (for example, less than the specified distance range). Combined into one target positioning reference data; when the center offset of the two reference position areas is large (greater than the specified distance range), it is considered that the two positioning reference data cannot be combined, and it is necessary to separately use as a target positioning reference data. By merging, it is beneficial to reduce the number of positioning reference data, which is beneficial to reduce storage resources required for storage, and is convenient for the positioning database to be applied to various scenarios.
  • FIG. 2 is a schematic structural diagram of a positioning data generating apparatus according to an embodiment of the present application. As shown in FIG. 2, the device includes an obtaining module 21 and a storage module 22.
  • the obtaining module 21 is configured to obtain N positioning reference data according to the M pieces of historical positioning data, where each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter includes : LAC.
  • the storage module is configured to store the N pieces of positioning reference data obtained by the obtaining module 21 into the positioning database.
  • the obtaining module 21 is specifically configured to:
  • the mapping relationship between the N network identification parameters and the reference location area is obtained according to the reference position corresponding to the K base stations and the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data.
  • the obtaining module 21 is further configured to: when obtaining the reference locations corresponding to the K base stations according to the base station identifier and the positioning result in the M pieces of historical positioning data,
  • the positioning result in the M historical positioning data is clustered to obtain a reference position corresponding to the K base stations.
  • the obtaining module 21 obtains a mapping relationship between the N network identification parameters and the reference location area according to the reference position corresponding to the K base stations and the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data. Further specific for:
  • the reference positions corresponding to the L available base stations are clustered to obtain a mapping relationship between the N network identification parameters and the reference location area.
  • the obtaining module 21 is further configured to: calculate a center point, a radius, and/or a boundary contour of the reference location area corresponding to each of the network identification parameters of the N network identification parameters.
  • the obtaining module 21 performs clustering processing on the positioning results in the M pieces of historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M pieces of historical positioning data to obtain a reference position corresponding to the K base stations, and further Specifically used for:
  • the positioning result in the group is clustered according to the mapping relationship between the base station identifier and the positioning result in the group, to obtain a candidate reference position corresponding to the base station that is grouped by the group;
  • the candidate reference positions corresponding to the base stations clustered by the at least one packet are combined to obtain reference positions corresponding to the K base stations.
  • the obtaining module 21 performs a combining process on the candidate reference positions corresponding to the base stations that are clustered by the at least one group to obtain the reference positions corresponding to the K base stations, and is further specifically used for:
  • a base station corresponds to at least two candidate reference positions, determining whether a distance between two of the at least two candidate reference positions corresponding to the base station is less than a specified minimum fluctuation distance, and if the determination result is yes, according to at least two candidates corresponding to the base station Obtaining a reference position corresponding to the base station; if the determination result is no, the historical positioning data generated in the specified time before the current time includes the number of historical positioning data of the base station being greater than a specified threshold, and the latest corresponding to the base station
  • the candidate reference position is used as a reference position corresponding to the base station;
  • the candidate reference location is used as a reference location corresponding to the base station.
  • the network identification parameter includes: an MNC in addition to the LAC.
  • the storage module 22 is specifically configured to:
  • the N positioning reference data are combined to obtain P target positioning reference data, and P is a natural number smaller than N;
  • the P target positioning reference data is stored in the positioning database.
  • the positioning data generating apparatus may obtain N positioning reference data according to the M historical positioning data, and store the N positioning reference data into the positioning database; wherein each positioning reference data includes a network identification parameter and a reference.
  • the mapping relationship of the location area, the network identification parameter includes the LAC, that is, the positioning database generated by the positioning data generating apparatus provided by the embodiment includes a mapping relationship between the LAC and the reference location area, which is different from the existing positioning database.
  • a new positioning database based on LAC positioning enriches the implementation of the positioning database.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the software functional unit described above is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods described in various embodiments of the present application. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Abstract

Provided in the present application are a positioning data generation method and device. The method comprises: obtaining N pieces of positioning reference data according to M pieces of historical positioning data; and storing the N pieces of the positioning reference data to a positioning database, wherein M and N are natural numbers, and each of pieces of the positioning reference data comprises: a mapping relationship of a network identification parameter and a reference position area, the network identification parameter comprising: an LAC. The present application generates a novel positioning database, thus providing more means for realizing positioning database.

Description

定位数据生成方法及装置Positioning data generating method and device 【技术领域】[Technical Field]
本申请涉及通信技术领域,尤其涉及一种定位数据生成方法及装置。The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for generating positioning data.
【背景技术】【Background technique】
随着移动终端的普及,基于位置的服务受到越来越多的关注。其中,可以通过全球定位系统(Global Positioning System,GPS)或服务器进行定位。GPS定位的精度较高,但是非常耗电,严重影响了移动终端的续航能力。而这些问题被服务器定位克服了。With the popularity of mobile terminals, location-based services are receiving more and more attention. Among them, positioning can be performed by a Global Positioning System (GPS) or a server. The accuracy of GPS positioning is high, but it is very power-consuming, which seriously affects the endurance of mobile terminals. These problems are overcome by server positioning.
服务器定位过程包括:移动终端检测附近的基站信息,并将检测到的基站信息发送至服务器,服务器根据移动终端发送的基站信息,查询预设的定位数据库获得相应的地理位置,将查询结果发送至移动终端,实现定位。The server positioning process includes: the mobile terminal detects the neighboring base station information, and sends the detected base station information to the server, and the server queries the preset positioning database to obtain the corresponding geographical location according to the base station information sent by the mobile terminal, and sends the query result to the Mobile terminal to achieve positioning.
在现有技术中,服务器通过以下方式预先生成定位数据库:在定位数据库构建阶段,移动终端通过GPS模块确定用户当前所在的地理位置,同时,通过通信模块扫描用户当前所在地理位置附近的基站信息(CELL ID,信号强度等),将扫描到的基站信息与所确定的地理位置绑定后上传至服务器,以供服务器生成定位数据库。In the prior art, the server generates a positioning database in advance by: in the positioning database construction phase, the mobile terminal determines the current geographic location of the user through the GPS module, and scans the base station information near the geographical location of the user through the communication module ( CELL ID, signal strength, etc., the scanned base station information is bound to the determined geographical location and uploaded to the server for the server to generate a positioning database.
现有技术仅存在一种生成定位数据库的方式,所生成的定位数据库比较单一,不便于使用,因此有必要提供一种新型的定位数据库。In the prior art, there is only one way to generate a positioning database. The generated positioning database is relatively simple and inconvenient to use, so it is necessary to provide a new type of positioning database.
【发明内容】[Summary of the Invention]
本申请的多个方面提供一种定位数据生成方法及装置,用以生成新型的定位数据库,丰富定位数据库的实现方式。Aspects of the present application provide a positioning data generating method and apparatus for generating a new positioning database and enriching the implementation of the positioning database.
本申请的一方面,提供一种定位数据生成方法,包括:An aspect of the present application provides a method for generating positioning data, including:
根据M条历史定位数据,获得N条定位参考数据,每条定位参考数据包括: 网络识别参数与参考位置区域的映射关系;其中,M和N是自然数,所述网络识别参数包括:位置区码LAC;According to the M historical positioning data, N positioning reference data are obtained, and each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter includes: a location area code LAC;
将所述N条定位参考数据存储到定位数据库中。The N pieces of positioning reference data are stored in a positioning database.
本申请的另一方面,提供一种定位数据生成装置,包括:Another aspect of the present application provides a positioning data generating apparatus, including:
获得模块,用于根据M条历史定位数据,获得N条定位参考数据,每条定位参考数据包括:网络识别参数与参考位置区域的映射关系;其中,M和N是自然数,所述网络识别参数包括:位置区码LAC;Obtaining a module, configured to obtain N positioning reference data according to the M historical positioning data, where each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter Including: location area code LAC;
存储模块,用于将所述N条定位参考数据存储到定位数据库中。a storage module, configured to store the N positioning reference data into a positioning database.
在本申请中,根据M条历史定位数据,获得N条定位参考数据,将N条定位参考数据存储到定位数据库中;其中,每条定位参考数据包括网络识别参数与参考位置区域的映射关系,网络识别参数包括LAC,即本申请提供的定位数据库包括LAC与参考位置区域的映射关系,不同于现有的定位数据库,是一种可支持基于LAC进行定位的新型定位数据库,丰富了定位数据库的实现方式。In this application, according to the M pieces of historical positioning data, N pieces of positioning reference data are obtained, and N pieces of positioning reference data are stored in the positioning database; wherein each positioning reference data includes a mapping relationship between the network identification parameter and the reference position area, The network identification parameter includes the LAC, that is, the positioning database provided by the present application includes the mapping relationship between the LAC and the reference location area, and is different from the existing positioning database, and is a new positioning database capable of supporting positioning based on the LAC, enriching the positioning database. Method to realize.
【附图说明】[Description of the Drawings]
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are the present application. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1为本申请一实施例提供的定位数据生成方法的流程示意图;FIG. 1 is a schematic flowchart of a method for generating positioning data according to an embodiment of the present application;
图2为本申请一实施例提供的定位数据生成装置的结构示意图。FIG. 2 is a schematic structural diagram of a positioning data generating apparatus according to an embodiment of the present application.
【具体实施方式】【detailed description】
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申 请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the following will be combined with the present application. The technical solutions in the embodiments of the present application are clearly and completely described in the drawings in the embodiments. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
图1为本申请一实施例提供的定位数据生成方法的流程示意图。如图1所示,该方法包括:FIG. 1 is a schematic flowchart of a method for generating positioning data according to an embodiment of the present application. As shown in Figure 1, the method includes:
101、根据M条历史定位数据,获得N条定位参考数据,每条定位参考数据包括:网络识别参数与参考位置区域的映射关系;其中,M和N是自然数,所述网络识别参数包括:位置区码(Location Area Code,LAC)。101. Obtain N positioning reference data according to the M historical positioning data, where each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter includes: Location Area Code (LAC).
102、将上述N条定位参考数据存储到定位数据库中。102. Store the foregoing N positioning reference data into the positioning database.
本实施例提供一种定位数据生成方法,可由定位数据生成装置(后续简称为生成装置)来执行。在具体实现上,生成装置可以是一服务器或终端设备等各种需要且具有能力生成定位数据的设备。This embodiment provides a positioning data generating method, which can be executed by a positioning data generating device (hereinafter simply referred to as a generating device). In a specific implementation, the generating device may be a device such as a server or a terminal device and has the capability to generate positioning data.
随着终端设备的发展和普及,越来越多的终端设备可以实现定位功能,例如终端设备通过安装具有定位功能的各种应用,例如地图、GPS等实现定位。具体的,用户可以通过终端设备上具有定位功能的应用向该应用对应的服务端发送定位请求,接收服务端返回的定位结果。其中,用户的一次定位操作会产生一条定位数据,该定位数据包括与此次定位操作有关的数据。随着LAC技术的发展,为了数据完整性,现有定位数据一般都包括LAC。With the development and popularization of terminal devices, more and more terminal devices can implement positioning functions. For example, terminal devices implement positioning by installing various applications having positioning functions, such as maps, GPS, and the like. Specifically, the user may send a positioning request to the server corresponding to the application by using the application with the positioning function on the terminal device, and receive the positioning result returned by the server. The positioning operation of the user generates a positioning data, and the positioning data includes data related to the positioning operation. With the development of LAC technology, for data integrity, existing positioning data generally includes LAC.
在本实施例提供的方法中,生成装置可以获取大量的历史定位数据,基于所获取的历史定位数据获得一定数量的定位参考数据,将定位参考数据存储到定位数据库中,以获得定位数据库。为便于描述,将生成装置所使用的历史定位数据的数量用M来表示,将所获得的定位参考数据的数量用N来表示,即生成装置根据M条历史定位数据,获得N条定位参考数据。其中,M和N是自然数,一般来说M要大于N。In the method provided by the embodiment, the generating device may obtain a large amount of historical positioning data, obtain a certain number of positioning reference data based on the acquired historical positioning data, and store the positioning reference data into the positioning database to obtain a positioning database. For convenience of description, the number of historical positioning data used by the generating device is represented by M, and the obtained number of positioning reference data is represented by N, that is, the generating device obtains N positioning reference data according to the M pieces of historical positioning data. . Among them, M and N are natural numbers, and generally M is greater than N.
其中,历史定位数据可以是从运营商处获取,也可以通过收集各种具有 定位功能的应用的定位日志,从定位日志中获取。具有定位功能的应用可以是但不限于:各种地图。Among them, the historical positioning data can be obtained from the operator, or can be collected by various The location log of the application of the location function is obtained from the location log. Applications with positioning capabilities can be, but are not limited to, various maps.
值得说明的是,本实施例中的定位参考数据包括网络识别参数与参考位置区域的映射关系,而不是包括基站和基站对应的位置,并且网络识别参数是指包括LAC的网络识别参数。LAC是为寻呼而设置的,每个LAC覆盖一片地理区域。为了确定终端设备的位置,每个公用陆地移动网络(GSM Public Land Mobile Network,GSM PLMN)的覆盖区都被划分成许多位置区,一个位置区可以包含一个或多个小区,LAC用于标识不同的位置区。一般来说,LAC包含于LAI中,由两个字节组成,采用16进制编码,可用范围为0x0000-0xFFFF,码组0x0000和0xFFFE不可以使用,可参见GSM规范03.03、04.08和11.11。基于本实施例提供的定位参考数据,可以通过LAC进行定位,这意味着本实施例提供的定位数据库是一种支持通过LAC进行定位的新型定位数据库,与现有定位数据库不同,丰富了定位数据库的实现方式,同时也为基于LAC的新的定位方式提供了便利条件,有利于基于LAC的定位的实现。It should be noted that the positioning reference data in this embodiment includes the mapping relationship between the network identification parameter and the reference location area, instead of including the location corresponding to the base station and the base station, and the network identification parameter refers to the network identification parameter including the LAC. The LAC is set up for paging, and each LAC covers a geographical area. In order to determine the location of the terminal device, the coverage area of each GSM Public Land Mobile Network (GSM PLMN) is divided into a plurality of location areas, one location area may contain one or more cells, and the LAC is used to identify different locations. Location area. Generally speaking, the LAC is included in the LAI and consists of two bytes. It is encoded in hexadecimal. The available range is 0x0000-0xFFFF. The code groups 0x0000 and 0xFFFE cannot be used. See GSM specifications 03.03, 04.08 and 11.11. The positioning reference data provided by the embodiment can be located through the LAC, which means that the positioning database provided in this embodiment is a new positioning database that supports positioning through the LAC, and is different from the existing positioning database, and enriches the positioning database. The implementation method also provides a convenient condition for the new positioning mode based on LAC, which is beneficial to the implementation of LAC-based positioning.
另外,由于LAC覆盖一个或多个小区,因此LAC的数量相对于基站的数量要小很多,意味着本实施例提供的定位数据库中定位参考数据的数量相对较少,能够满足精度需求较低的应用的定位需求,而且能够提高定位速度。进一步,本实施例提供的定位数据库由于数据量相对较少,可以存储于终端设备本地,终端设备利用本地的定位参考数据进行定位,能够满足精度需求较低的应用的定位需求,定位速度较快,且不需要使用网络也无需GPS模块就能够实现终端设备的定位。In addition, since the LAC covers one or more cells, the number of LACs is much smaller than that of the base station, which means that the number of positioning reference data in the positioning database provided by this embodiment is relatively small, and the accuracy requirement can be met. The positioning requirements of the application, and can improve the positioning speed. Further, the positioning database provided in this embodiment can be stored locally in the terminal device because the amount of data is relatively small, and the terminal device uses local positioning reference data for positioning, which can meet the positioning requirement of an application with low precision requirement, and the positioning speed is fast. The positioning of the terminal device can be realized without using a network or a GPS module.
在一可选实施方式中,可以周期性生成定位数据,例如可以以“一天”为周期,即每天生成定位数据;或者,也可以以“两天”、“12小时”、“2小时”等为周期。In an optional implementation manner, the positioning data may be generated periodically, for example, the period of “one day” may be generated, that is, the positioning data may be generated every day; or “two days”, “12 hours”, “2 hours”, etc. may be used. For the cycle.
可选的,每次生成定位数据使用的M条定位数据可以是指定时间段内产 生的定位数据(即使用部分历史定位数据),这样便于历史定位数据的获取。或者,每次生成定位数据使用的M条历史定位数据也可以是到本次生成定位数据时可以获取到的全部定位数据(即使用全量数据),这样可以保证每次获得的定位数据库中包括尽可能多的定位参考数据,提高定位数据库的全面性。Optionally, the M positioning data used each time the positioning data is generated may be produced within a specified time period. Raw positioning data (that is, using partial historical positioning data), which facilitates the acquisition of historical positioning data. Alternatively, the M pieces of historical positioning data used for generating the positioning data may be all the positioning data that can be obtained when the positioning data is generated this time (that is, using the full amount of data), so that the positioning database obtained each time is included. There may be more positioning reference data to improve the comprehensiveness of the positioning database.
进一步,对于使用全量数据的情况,生成装置具体可以将上一次生成定位数据与本次生成定位数据之间产生的历史定位数据,与上一次生成定位数据使用的历史定位数据进行合并,以获得本次生成定位数据使用的M条历史定位数据,从而为本次生成定位数据提供条件。由于上一次生成定位数据使用的历史定位数据已经获取到,本次生成定位数据时,只需获取在两次生成定位数据之间产生的历史定位数据即可,有利于减轻获取历史定位数据所消耗的资源,并且获取增量数据相对容易一些。Further, in the case of using the full amount of data, the generating device may specifically combine the historical positioning data generated between the last generated positioning data and the current generated positioning data with the historical positioning data used for generating the positioning data last time to obtain the present The M pieces of historical positioning data used for the positioning data are generated one by one, thereby providing conditions for generating the positioning data for this time. Since the historical positioning data used for the previous generation of the positioning data has been acquired, when the positioning data is generated, it is only necessary to obtain the historical positioning data generated between the two generated positioning data, which is beneficial for reducing the consumption of the historical positioning data. Resources, and getting incremental data is relatively easy.
在实际应用中,定位数据中有些字段的取值可能会缺失,或者格式会发生错误,基于此,生成装置在使用M条历史定位数据,获得N条定位参考数据之前,可以对所获取的全部历史定位数据进行筛选,将数据格式或取值缺失的定位数据去除,以获取M条可用的历史定位数据。In actual applications, the values of some fields in the positioning data may be missing, or the format may be incorrect. Based on this, the generating device may use the M pieces of historical positioning data to obtain N positioning reference data. The historical positioning data is filtered to remove the data format or the missing positioning data to obtain the available historical positioning data of M.
在一可选实施方式中,本实施例使用的历史定位数据是指采用服务器定位方式进行定位产生的定位数据。一次历史定位操作产生的历史定位数据一般包括但不限于:该次定位操作使用的基站的标识、该基站所属的网络识别参数的标识、此次定位操作的定位结果(即定位出的位置信息)、此次定位操作的时间等信息以及这些信息之间的映射关系。In an optional implementation manner, the historical positioning data used in this embodiment refers to positioning data generated by using a server positioning manner. The historical positioning data generated by the historical positioning operation generally includes, but is not limited to, the identifier of the base station used by the positioning operation, the identifier of the network identification parameter to which the base station belongs, and the positioning result of the positioning operation (ie, the located location information). Information such as the time of the positioning operation and the mapping relationship between the information.
值得说明的是,上述历史定位数据可以以列表的方式来存储,其中,上述每个信息作为该列表中的一个字段,则历史定位数据中有关信息之间的映射关系,具体可以通过列表中字段之间的对应关系来体现。It should be noted that the above historical positioning data may be stored in a list manner, wherein each of the above information is used as a field in the list, and the mapping relationship between the related information in the historical positioning data may be specifically through the field in the list. The correspondence between the two is reflected.
基于上述,生成装置根据M条历史定位数据,获得N条定位参考数据的具体实施过程包括: Based on the foregoing, the specific implementation process of the N generating positioning reference data by the generating device according to the M historical positioning data includes:
生成装置根据M条历史定位数据中的基站标识和定位结果,获得K个基站对应的参考位置,K是自然数;进而,根据K个基站对应的参考位置和M条历史定位数据中的基站标识与网络识别参数标识,获得N个网络识别参数与参考位置区域的映射关系,一个网络识别参数与参考位置区域的映射关系作为一条定位参考数据。The generating device obtains a reference position corresponding to the K base stations according to the base station identifier and the positioning result in the M pieces of historical positioning data, where K is a natural number; and further, according to the reference position corresponding to the K base stations and the base station identifier in the M pieces of historical positioning data The network identifies the parameter identifier, obtains a mapping relationship between the N network identification parameters and the reference location area, and uses a mapping relationship between the network identification parameter and the reference location area as a positioning reference data.
由于在M次历史定位操作中使用的基站可能存在重复,即可能多次历史定位操作使用了相同的基站,基于该考虑,上述K一般会小于M。Since the base station used in the M-time historical positioning operation may have a repetition, that is, the same base station may be used for multiple historical positioning operations, based on this consideration, the above K is generally smaller than M.
具体的,生成装置根据M条历史定位数据中的基站标识和定位结果的映射关系,对M条历史定位数据中的定位结果进行聚类处理,以获得K个基站对应的参考位置。Specifically, the generating device performs clustering processing on the positioning results in the M historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M historical positioning data to obtain a reference position corresponding to the K base stations.
例如,生成装置可以根据M条历史定位数据中的基站标识和定位结果的映射关系,从M条历史定位数据中统计出每个基站对应的定位结果;对每个基站对应的定位结果进行聚类,获得每个基站对应的参考位置。For example, the generating device may calculate the positioning result corresponding to each base station from the M pieces of historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M pieces of historical positioning data; and cluster the positioning results corresponding to each base station. Obtain a reference position corresponding to each base station.
其中,生成装置可以采用各种聚类算法,对每个基站对应的定位结果进行聚类。优选的,可以采用基于密度的聚类算法,例如具有噪声的基于密度聚类(Density-Based Spatial Clustering of Applications with Noise,DBSCAN)算法对每个基站对应的定位结果进行聚类。DBSCAN算法的原理是:将簇定义为密度相连的点的最大集合,能够把具有足够高密度的区域划分为簇,并可在噪声的空间数据库中发现任意形状的聚类。关于DBSCAN算法的详细描述可参见现有技术,在此不再赘述。The generating device may use various clustering algorithms to cluster the positioning results corresponding to each base station. Preferably, a density-based clustering algorithm, such as a Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm, may be used to cluster the positioning results corresponding to each base station. The principle of the DBSCAN algorithm is to define a cluster as the largest set of points connected by density, to divide a region with a sufficiently high density into clusters, and to find clusters of arbitrary shapes in a spatial database of noise. For a detailed description of the DBSCAN algorithm, refer to the prior art, and details are not described herein again.
进一步,考虑到历史定位数据的数量级比较大,若对M条历史定位数据同时进行聚类处理,需要较大的处理资源,处理速度可能较慢。为了解决该问题,本实施例可以分成多个子任务,每个子任务负责对部分历史定位数据进行聚类处理,多个子任务并发执行,用于节约处理资源,提高处理速度。Further, considering that the order of magnitude of the historical positioning data is relatively large, if the M pieces of historical positioning data are simultaneously clustered, a large processing resource is required, and the processing speed may be slow. In order to solve the problem, the embodiment may be divided into multiple subtasks, each subtask is responsible for clustering part of the historical positioning data, and multiple subtasks are executed concurrently, for saving processing resources and improving processing speed.
具体的,生成装置将M条历史定位数据进行分组,获得至少一个分组,例如可以按照定位时间的先后顺序,将M条历史定位数据划分为96个分组, 但不限于该分组方式;对至少一个分组中的每个分组,分别根据该分组中的基站标识和定位结果的映射关系,对该分组中的定位结果进行聚类处理,以获得该分组聚类出的基站对应的候选参考位置;之后,对至少一个分组聚类出的基站对应的候选参考位置进行合并处理,以获得K个基站对应的参考位置。Specifically, the generating device groups the M pieces of historical positioning data to obtain at least one group. For example, the M pieces of historical positioning data may be divided into 96 groups according to the order of positioning time. However, the method is not limited to the grouping method. For each packet in the at least one group, the positioning result in the group is clustered according to the mapping relationship between the base station identifier and the positioning result in the group, to obtain the grouping cluster. The candidate reference locations corresponding to the base stations are sent out; then, the candidate reference positions corresponding to the base stations clustered by the at least one group are combined to obtain reference positions corresponding to the K base stations.
其中,每个分组聚类出的基站对应的候选参考位置的个数可能相同,也可能不相同;另外,每个分组聚类出的基站可能相同,也可能不相同。通过对至少一个分组聚类出的基站对应的候选参考位置进行合并处理,可以将相同基站对应的候选参考位置合并为一个。The number of candidate reference positions corresponding to the base station clustered by each group may be the same or different. In addition, the base stations clustered by each group may be the same or different. By combining the candidate reference positions corresponding to the base stations clustered by the at least one packet, the candidate reference positions corresponding to the same base station may be combined into one.
上述合并处理的一种实施方式包括:One embodiment of the above merge process includes:
若一个基站对应至少两个候选参考位置(意味着至少两个分组都聚类出该基站对应的候选参考位置),则判断该基站对应的至少两个候选参考位置中两两之间的距离是否小于指定的最小波动距离,若判断结果为是,根据该基站对应的至少两个候选参考位置获得基站对应的参考位置;若判断结果为否,则当在当前时刻之前指定时间内产生的历史定位数据中包括所述基站的历史定位数据的数量大于指定门限,将该基站对应的最新的候选参考位置作为该基站对应的参考位置;If a base station corresponds to at least two candidate reference positions (meaning that at least two groups are clustered out of candidate reference positions corresponding to the base station), determining whether a distance between two of the at least two candidate reference positions corresponding to the base station is If the result of the determination is yes, the reference position corresponding to the base station is obtained according to at least two candidate reference positions corresponding to the base station; if the determination result is negative, the historical positioning generated within a specified time before the current time is obtained. The data includes the number of historical positioning data of the base station that is greater than a specified threshold, and the latest candidate reference position corresponding to the base station is used as a reference position corresponding to the base station;
若一个基站对应一个候选参考位置,则将该基站对应的候选参考位置作为该基站对应的参考位置。If a base station corresponds to a candidate reference location, the candidate reference location corresponding to the base station is used as a reference location corresponding to the base station.
对于上述判断结果为是的情况,说明该基站的候选参考位置比较相近,该基站未发生移动,可选的,可以将至少两个候选参考位置的平均值作为基站对应的参考位置,但不限于此;对于上述判断结果为否的情况,说明该基站的候选参考位置相距比较远,该基站可能发生了移动,则可以将最新的候选参考位置作为基站对应的参考位置,将之前的参考位置删除。For the case where the above judgment result is yes, the candidate reference positions of the base station are relatively similar, and the base station does not move. Optionally, the average value of the at least two candidate reference positions may be used as a reference position corresponding to the base station, but is not limited thereto. For the case where the above judgment result is negative, it is explained that the candidate reference positions of the base station are relatively far apart, and the base station may move, the latest candidate reference position may be used as the reference position corresponding to the base station, and the previous reference position may be deleted. .
对于上述判断结果为否的情况,一定程度上说明该基站发生了移动;进一步为了排除该基站的有关数据是干扰数据,还可以判断在当前时刻之前指定时间 (该指定时间一般是指距离当前时刻最近的时间)内产生的历史定位数据中包括该基站标识的历史定位数据的数量是否大于指定门限,如果判断结果为是,说明该基站发生了移动,且仍被正常使用,不属于干扰数据,但是由于该基站发生了移动,之前的候选参考位置已经不能准确反映基站的位置,故只需将最新的候选参考位置作为基站对应的参考位置即可;如果判断结果为否,说明该基站的有关数据可能是干扰数据,需要将其排除掉,例如可以丢弃。For the case where the above judgment result is negative, the base station is moved to some extent; further, in order to exclude the related data of the base station from being interference data, it is also possible to determine the time specified before the current time. The historical positioning data generated in the historical positioning data generated in the historical positioning data is greater than the specified threshold. If the determination result is yes, the base station has moved, and Still being used normally, is not interference data, but because the base station has moved, the previous candidate reference position can not accurately reflect the location of the base station, so only the latest candidate reference position can be used as the reference position corresponding to the base station; If the judgment result is no, the related data of the base station may be interference data, which needs to be excluded, for example, may be discarded.
在实际应用中,一些基站可能随时会被拆除,一旦基站被拆除,则不会有包括该基站标识的定位数据产生,若使用这类基站对应的参考位置来生成定位参考数据,会导致所生成的定位参考数据准确度不高。基于此,在获得K个基站对应的参考位置之后,生成装置可以对K个基站对应的参考位置进行筛选,从中选择L个可用基站对应的参考位置,L是小于K的自然数;进而,根据M条历史定位数据中的基站标识与网络识别参数标识的映射关系,对L个可用基站对应的参考位置进行聚类处理,以获得N个网络识别参数与参考位置区域的映射关系。In practical applications, some base stations may be removed at any time. Once the base station is removed, no positioning data including the base station identifier is generated. If the reference position corresponding to the base station is used to generate the positioning reference data, the generated reference data may be generated. The positioning reference data is not accurate. Based on this, after obtaining the reference positions corresponding to the K base stations, the generating device may filter the reference positions corresponding to the K base stations, and select the reference positions corresponding to the L available base stations, where L is a natural number smaller than K; and further, according to M The mapping relationship between the base station identifier and the network identification parameter identifier in the historical positioning data is performed, and the reference positions corresponding to the L available base stations are clustered to obtain a mapping relationship between the N network identification parameters and the reference location area.
进一步,还可以计算N个网络识别参数中每个网络识别参数对应的参考位置区域的中心点、半径和/或边界轮廓。Further, a center point, a radius, and/or a boundary contour of the reference location area corresponding to each of the network identification parameters of the N network identification parameters may also be calculated.
例如,采用Melkman算法计算出每个网络识别参数对应的参考位置区域的边界轮廓。Melkman算法的主要原理是:将每个网络识别参数对应的可用基站中每个基站的参考位置作为该网络识别参数对应的参考位置区域中的一个位置点,进而确定各位置点中最外侧的位置点作为该网络识别参数对应的参考位置区域的轮廓点,构成该参考位置区域的边界轮廓。Melkman算法的详细描述可参见现有技术。For example, the Melkman algorithm is used to calculate the boundary contour of the reference location area corresponding to each network identification parameter. The main principle of the Melkman algorithm is to use the reference position of each base station in each available base station corresponding to each network identification parameter as a position point in the reference position area corresponding to the network identification parameter, thereby determining the outermost position among each position point. The point is a contour point of the reference position area corresponding to the network identification parameter, and constitutes a boundary contour of the reference position area. A detailed description of the Melkman algorithm can be found in the prior art.
例如,可以采用均值算法,计算出每个网络识别参数对应的参考位置区域的中心点和半径。具体的,对每个网络识别参数对应的参考位置区域来说,可以计算该参考位置区域的轮廓点的经纬度值,构成经度序列和维度序列,分别计算经度序列和维度序列的中位点,将计算出的中位点作为该参考位置 区域的中心点;进一步,计算中心点与每个轮廓点的距离,求所有距离的平均值作为该参考位置区域的半径。For example, an average algorithm can be used to calculate the center point and radius of the reference location area corresponding to each network identification parameter. Specifically, for the reference location area corresponding to each network identification parameter, the latitude and longitude values of the contour points of the reference location area may be calculated to form a longitude sequence and a dimension sequence, and the median points of the longitude sequence and the dimension sequence are respectively calculated. The calculated median point is used as the reference position The center point of the region; further, calculate the distance between the center point and each contour point, and find the average of all distances as the radius of the reference position area.
例如,一种筛选策略可以是:对于一基站,若在指定时间内都未有包括该基站标识的定位数据产生或者在指定时间内包括该基站标识的定位数据的量小于指定门限,则意味着该基站可能已被拆除或出现故障,故可以将该基站对应的参考位置从K个基站对应的参考位置中剔除。指定时间可以是但不限于:三个月。For example, a screening policy may be: for a base station, if the positioning data including the identifier of the base station is generated within a specified time or the amount of positioning data including the identifier of the base station within a specified time is less than a specified threshold, it means that The base station may have been removed or failed, so the reference position corresponding to the base station may be removed from the reference position corresponding to the K base stations. The specified time can be, but is not limited to, three months.
在一具体实施方式中,生成装置具体可以根据M条历史定位数据中的基站标识与网络识别参数标识的映射关系,从L个可用基站对应的参考位置中,统计出分别属于同一组网络识别参数的基站对应的参考位置;对属于同一组网络识别参数的基站对应的参考位置进行聚类处理,获得该组网络识别参数对应的参考位置区域,进而,形成网络识别参数与参考位置区域的映射关系。通过对K个基站对应的参考位置进行筛选,使用筛选后的可用基站对应的参考位置计算网络识别参数与参考位置区域的映射关系,有利于提高计算结果的准确度。In a specific implementation, the generating device may specifically calculate the network identification parameters belonging to the same group from the reference positions corresponding to the L available base stations according to the mapping relationship between the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data. a reference position corresponding to the base station; performing clustering processing on the reference positions corresponding to the base stations belonging to the same group of network identification parameters, obtaining a reference position area corresponding to the group of network identification parameters, and further forming a mapping relationship between the network identification parameter and the reference location area . By filtering the reference positions corresponding to the K base stations, the mapping relationship between the network identification parameters and the reference location area is calculated by using the reference position corresponding to the available base stations, which is beneficial to improve the accuracy of the calculation result.
其中,生成装置可以采用基于密度的聚类算法,例如DBSCAN算法,对每组网络识别参数下的基站对应的参考位置进行聚类处理,以获得每组网络识别参数对应的参考位置区域。The generating device may use a density-based clustering algorithm, such as a DBSCAN algorithm, to perform clustering processing on the reference positions corresponding to the base stations under each group of network identification parameters to obtain a reference location area corresponding to each group of network identification parameters.
在一可选实施方式中,上述网络识别参数对应的参考位置区域可以用中心点、半径以及边界等来信息来表示。In an optional implementation manner, the reference location area corresponding to the network identification parameter may be represented by information such as a center point, a radius, a boundary, and the like.
在获得N条网络识别参数与参考位置区域的映射关系之后,可以将所获得的N条网络识别参数与参考位置区域的映射关系作为定位参考数据存储到定位数据库中,以便于后续定位使用。After obtaining the mapping relationship between the N network identification parameters and the reference location area, the mapping relationship between the obtained N network identification parameters and the reference location area may be stored as the positioning reference data in the positioning database for subsequent positioning and use.
值得说明的是,本实施例提供的定位数据库可以存储到服务器端,基于此,终端设备可以通过该定位数据库进行在线定位。或者,本实施例提供的定位数据库也可以存储到终端设备本地,基于此,终端设备可以基于该定位 数据库进行离线定位,即在不连网的情况下,也可以根据本地的定位数据库实现定位。简单来说,基于本实施例提供的定位数据库可进行以下至少一种定位操作:基于服务器的定位和终端离线定位。It should be noted that the positioning database provided in this embodiment can be stored in the server, and based on this, the terminal device can perform online positioning through the positioning database. Alternatively, the positioning database provided in this embodiment may also be stored locally to the terminal device, and based on this, the terminal device may be based on the positioning. The database is positioned offline, that is, in the case of no network connection, positioning can also be performed according to the local positioning database. In brief, the positioning database provided by this embodiment may perform at least one of the following positioning operations: server-based positioning and terminal offline positioning.
考虑到定位参考数据的数量可能较大,为了利于存储到终端设备本地,可以对定位参考数据进行合并处理,以减少定位参考数据的数量。Considering that the number of positioning reference data may be large, in order to facilitate storage to the local device, the positioning reference data may be combined to reduce the number of positioning reference data.
在一可选实施方式中,网络识别参数除了包括LAC之外,还可以包括移动网络号码(Mobile Network Code,MNC),更进一步还包括:移动国家码(Mobile Country Code,MCC)。其中,MCC的资源由国际电联(ITU)统一分配和管理,唯一识别移动用户所属的国家,共3位,中国为460;MNC用于识别移动用户所属的移动网络,由2个十进制数组成,编码范围为十进制的00-99,例如中国移动的TD系统使用00,中国联通的GSM系统使用01,中国移动的GSM系统使用02,中国电信的CDMA系统使用03。In an optional implementation, the network identification parameter may include a Mobile Network Code (MNC) in addition to the LAC, and further includes: a Mobile Country Code (MCC). Among them, MCC resources are uniformly allocated and managed by the ITU (ITU), which uniquely identifies the country to which the mobile user belongs, a total of 3 digits, and China is 460; the MNC is used to identify the mobile network to which the mobile subscriber belongs, consisting of 2 decimal numbers. The coding range is 00-99 in decimal. For example, China Mobile's TD system uses 00, China Unicom's GSM system uses 01, China Mobile's GSM system uses 02, and China Telecom's CDMA system uses 03.
经过观察发现一些相同运营商、不同MNC、相同LAC对应的参考位置区域通常会相互重叠,若重叠范围较大,则可以考虑合并,从而减少定位参考数据的数量。基于此,生成装置具体可以根据MNC和LAC,对N条定位参考数据进行合并处理,以获得P条目标定位参考数据,P是小于N的自然数;然后将P条目标定位参考数据存储到定位数据库中,这样可以减少定位参考数据的数量。It has been observed that some reference carriers corresponding to the same carrier, different MNCs, and the same LAC usually overlap each other. If the overlapping range is large, the combination may be considered, thereby reducing the number of positioning reference data. Based on this, the generating device may specifically combine the N positioning reference data according to the MNC and the LAC to obtain P target positioning reference data, where P is a natural number smaller than N; and then store the P target positioning reference data into the positioning database. This can reduce the number of positioning reference data.
具体的,生成装置可以将包括同一个运营商的不同MNC、相同LAC的定位参考数据尽量合并,如果不能合并,则全部保留。例如,若两条定位参考数据中的MNC属于同一运营商,且LAC相同,则当两个参考位置区域的中心偏移较小(例如小于指定距离范围)时,可以将这两条定位参考数据合并为一条目标定位参考数据;当两条参考位置区域的中心偏移较大(大于指定距离范围)时,认为两条定位参考数据不能被合并,需要分别作为一条目标定位参考数据。通过合并有利于减少定位参考数据的数量,有利于减少存储所需的存储资源,便于该定位数据库应用到各种场景。 Specifically, the generating device may merge the positioning reference data of different MNCs and the same LAC including the same carrier as much as possible, and if not, all of them are retained. For example, if the MNCs in the two positioning reference data belong to the same carrier and the LACs are the same, the two positioning reference data can be used when the center offset of the two reference location areas is small (for example, less than the specified distance range). Combined into one target positioning reference data; when the center offset of the two reference position areas is large (greater than the specified distance range), it is considered that the two positioning reference data cannot be combined, and it is necessary to separately use as a target positioning reference data. By merging, it is beneficial to reduce the number of positioning reference data, which is beneficial to reduce storage resources required for storage, and is convenient for the positioning database to be applied to various scenarios.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present application. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
图2为本申请一实施例提供的定位数据生成装置的结构示意图。如图2所示,该装置包括:获得模块21和存储模块22。FIG. 2 is a schematic structural diagram of a positioning data generating apparatus according to an embodiment of the present application. As shown in FIG. 2, the device includes an obtaining module 21 and a storage module 22.
获得模块21,用于根据M条历史定位数据,获得N条定位参考数据,每条定位参考数据包括:网络识别参数与参考位置区域的映射关系;其中,M和N是自然数,网络识别参数包括:LAC。The obtaining module 21 is configured to obtain N positioning reference data according to the M pieces of historical positioning data, where each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter includes : LAC.
存储模块,用于将获得模块21获得的N条定位参考数据存储到定位数据库中。The storage module is configured to store the N pieces of positioning reference data obtained by the obtaining module 21 into the positioning database.
在一可选实施方式中,获得模块21具体用于:In an optional implementation, the obtaining module 21 is specifically configured to:
根据M条历史定位数据中的基站标识和定位结果,获得K个基站对应的参考位置,K是自然数;Obtaining a reference position corresponding to K base stations according to the base station identifier and the positioning result in the M historical positioning data, where K is a natural number;
根据K个基站对应的参考位置和M条历史定位数据中的基站标识与网络识别参数标识,获得N个网络识别参数与参考位置区域的映射关系。The mapping relationship between the N network identification parameters and the reference location area is obtained according to the reference position corresponding to the K base stations and the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data.
在一可选实施方式中,获得模块21在根据M条历史定位数据中的基站标识和定位结果,获得K个基站对应的参考位置时,进一步具体用于:In an optional implementation manner, the obtaining module 21 is further configured to: when obtaining the reference locations corresponding to the K base stations according to the base station identifier and the positioning result in the M pieces of historical positioning data,
根据M条历史定位数据中的基站标识和定位结果的映射关系,对M条历史定位数据中的定位结果进行聚类处理,以获得K个基站对应的参考位置。According to the mapping relationship between the base station identifier and the positioning result in the M historical positioning data, the positioning result in the M historical positioning data is clustered to obtain a reference position corresponding to the K base stations.
在一可选实施方式中,获得模块21在根据K个基站对应的参考位置和M条历史定位数据中的基站标识与网络识别参数标识,获得N个网络识别参数与参考位置区域的映射关系时,进一步具体用于: In an optional implementation manner, the obtaining module 21 obtains a mapping relationship between the N network identification parameters and the reference location area according to the reference position corresponding to the K base stations and the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data. Further specific for:
对K个基站对应的参考位置进行筛选,获得L个可用基站对应的参考位置,L是小于K的自然数;Filtering the reference positions corresponding to the K base stations to obtain reference positions corresponding to L available base stations, where L is a natural number smaller than K;
根据M条历史定位数据中的基站标识与网络识别参数标识的映射关系,对L个可用基站对应的参考位置进行聚类处理,以获得N个网络识别参数与参考位置区域的映射关系。According to the mapping relationship between the base station identifier and the network identification parameter identifier in the M historical positioning data, the reference positions corresponding to the L available base stations are clustered to obtain a mapping relationship between the N network identification parameters and the reference location area.
进一步,获得模块21还用于:计算N个网络识别参数中每个网络识别参数对应的参考位置区域的中心点、半径和/或边界轮廓。Further, the obtaining module 21 is further configured to: calculate a center point, a radius, and/or a boundary contour of the reference location area corresponding to each of the network identification parameters of the N network identification parameters.
其中,获得模块21在根据M条历史定位数据中的基站标识和定位结果的映射关系,对M条历史定位数据中的定位结果进行聚类处理,以获得K个基站对应的参考位置时,进一步具体用于:The obtaining module 21 performs clustering processing on the positioning results in the M pieces of historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M pieces of historical positioning data to obtain a reference position corresponding to the K base stations, and further Specifically used for:
将M条历史定位数据进行分组,获得至少一个分组;Grouping M pieces of historical positioning data to obtain at least one group;
对于至少一个分组中的每个分组,根据分组中的基站标识和定位结果的映射关系,对分组中的定位结果进行聚类处理,以获得分组聚类出的基站对应的候选参考位置;For each of the at least one group, the positioning result in the group is clustered according to the mapping relationship between the base station identifier and the positioning result in the group, to obtain a candidate reference position corresponding to the base station that is grouped by the group;
对至少一个分组聚类出的基站对应的候选参考位置进行合并处理,以获得K个基站对应的参考位置。The candidate reference positions corresponding to the base stations clustered by the at least one packet are combined to obtain reference positions corresponding to the K base stations.
其中,获得模块21在对至少一个分组聚类出的基站对应的候选参考位置进行合并处理,以获得K个基站对应的参考位置时,进一步具体用于:The obtaining module 21 performs a combining process on the candidate reference positions corresponding to the base stations that are clustered by the at least one group to obtain the reference positions corresponding to the K base stations, and is further specifically used for:
若一个基站对应至少两个候选参考位置,判断基站对应的至少两个候选参考位置中两两之间的距离是否小于指定的最小波动距离,若判断结果为是,根据基站对应的至少两个候选参考位置获得基站对应的参考位置;若判断结果为否,则当在当前时刻之前指定时间内产生的历史定位数据中包括所述基站的历史定位数据的数量大于指定门限,将基站对应的最新的候选参考位置作为基站对应的参考位置;If a base station corresponds to at least two candidate reference positions, determining whether a distance between two of the at least two candidate reference positions corresponding to the base station is less than a specified minimum fluctuation distance, and if the determination result is yes, according to at least two candidates corresponding to the base station Obtaining a reference position corresponding to the base station; if the determination result is no, the historical positioning data generated in the specified time before the current time includes the number of historical positioning data of the base station being greater than a specified threshold, and the latest corresponding to the base station The candidate reference position is used as a reference position corresponding to the base station;
若一个基站对应一个候选参考位置,则将候选参考位置作为基站对应的参考位置。 If a base station corresponds to a candidate reference location, the candidate reference location is used as a reference location corresponding to the base station.
在一可选实施方式中,上述网络识别参数除LAC之外,还包括:MNC。In an optional implementation, the network identification parameter includes: an MNC in addition to the LAC.
在MNC的基础上,存储模块22具体用于:Based on the MNC, the storage module 22 is specifically configured to:
根据MNC和LAC,对N条定位参考数据进行合并处理,以获得P条目标定位参考数据,P是小于N的自然数;According to the MNC and the LAC, the N positioning reference data are combined to obtain P target positioning reference data, and P is a natural number smaller than N;
将P条目标定位参考数据存储到定位数据库中。The P target positioning reference data is stored in the positioning database.
本实施例提供的定位数据生成装置,可以根据M条历史定位数据,获得N条定位参考数据,将N条定位参考数据存储到定位数据库中;其中,每条定位参考数据包括网络识别参数与参考位置区域的映射关系,网络识别参数包括LAC,即本实施例提供的定位数据生成装置所生成的定位数据库包括LAC与参考位置区域的映射关系,不同于现有的定位数据库,是一种可支持基于LAC进行定位的新型定位数据库,丰富了定位数据库的实现方式。The positioning data generating apparatus provided in this embodiment may obtain N positioning reference data according to the M historical positioning data, and store the N positioning reference data into the positioning database; wherein each positioning reference data includes a network identification parameter and a reference. The mapping relationship of the location area, the network identification parameter includes the LAC, that is, the positioning database generated by the positioning data generating apparatus provided by the embodiment includes a mapping relationship between the LAC and the reference location area, which is different from the existing positioning database. A new positioning database based on LAC positioning enriches the implementation of the positioning database.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The software functional unit described above is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods described in various embodiments of the present application. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (19)

  1. 一种定位数据生成方法,其特征在于,包括:A positioning data generating method, comprising:
    根据M条历史定位数据,获得N条定位参考数据,每条定位参考数据包括:网络识别参数与参考位置区域的映射关系;其中,M和N是自然数,所述网络识别参数包括:位置区码LAC;Obtaining N pieces of positioning reference data according to the M pieces of historical positioning data, each piece of positioning reference data includes: a mapping relationship between the network identification parameter and the reference position area; wherein, M and N are natural numbers, and the network identification parameter comprises: a location area code LAC;
    将所述N条定位参考数据存储到定位数据库中。The N pieces of positioning reference data are stored in a positioning database.
  2. 根据权利要求1所述的方法,其特征在于,所述根据M条历史定位数据,获得N条定位参考数据,包括:The method according to claim 1, wherein the obtaining N pieces of positioning reference data according to the M pieces of historical positioning data comprises:
    根据所述M条历史定位数据中的基站标识和定位结果,获得K个基站对应的参考位置,K是自然数;Obtaining, according to the base station identifier and the positioning result in the M pieces of historical positioning data, a reference position corresponding to the K base stations, where K is a natural number;
    根据所述K个基站对应的参考位置和所述M条历史定位数据中的基站标识与网络识别参数标识,获得N个网络识别参数与参考位置区域的映射关系。And obtaining a mapping relationship between the N network identification parameters and the reference location area according to the reference position corresponding to the K base stations and the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述M条历史定位数据中的基站标识和定位结果,获得K个基站对应的参考位置,包括:The method according to claim 2, wherein the obtaining, according to the base station identifier and the positioning result in the M pieces of historical positioning data, the reference positions corresponding to the K base stations, including:
    根据所述M条历史定位数据中的基站标识和定位结果的映射关系,对所述M条历史定位数据中的定位结果进行聚类处理,以获得所述K个基站对应的参考位置。And performing a clustering process on the positioning result in the M pieces of historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M pieces of historical positioning data to obtain a reference position corresponding to the K base stations.
  4. 根据权利要求2所述的方法,其特征在于,所述根据所述K个基站对应的参考位置和所述M条历史定位数据中的基站标识与网络识别参数标识,获得N个网络识别参数与参考位置区域的映射关系,包括:The method according to claim 2, wherein the N network identification parameters are obtained according to the reference position corresponding to the K base stations and the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data. The mapping relationship of the reference location area, including:
    对所述K个基站对应的参考位置进行筛选,获得L个可用基站对应的参考位置,L是小于K的自然数;Filtering reference positions corresponding to the K base stations, obtaining reference positions corresponding to L available base stations, where L is a natural number smaller than K;
    根据所述M条历史定位数据中的基站标识与网络识别参数标识的映射关系,对所述L个可用基站对应的参考位置进行聚类处理,以获得所述N个网络识别参数与参考位置区域的映射关系。And performing clustering processing on the reference positions corresponding to the L available base stations according to the mapping relationship between the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data, to obtain the N network identification parameters and the reference location area Mapping relationship.
  5. 根据权利要求4所述的方法,其特征在于,还包括: The method of claim 4, further comprising:
    计算所述N个网络识别参数中每个网络识别参数对应的参考位置区域的中心点、半径和/或边界轮廓。Calculating a center point, a radius, and/or a boundary contour of a reference location area corresponding to each of the N network identification parameters.
  6. 根据权利要求3所述的方法,其特征在于,所述根据所述M条历史定位数据中的基站标识和定位结果的映射关系,对所述M条历史定位数据中的定位结果进行聚类处理,以获得所述K个基站对应的参考位置,包括:The method according to claim 3, wherein the clustering processing is performed on the positioning result in the M pieces of historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M pieces of historical positioning data. Obtaining reference locations corresponding to the K base stations, including:
    将所述M条历史定位数据进行分组,获得至少一个分组;And grouping the M pieces of historical positioning data to obtain at least one group;
    对于所述至少一个分组中的每个分组,根据所述分组中的基站标识和定位结果的映射关系,对所述分组中的定位结果进行聚类处理,以获得所述分组聚类出的基站对应的候选参考位置;For each of the at least one packet, performing a clustering process on the positioning result in the packet according to a mapping relationship between the base station identifier and the positioning result in the packet, to obtain a base station that is clustered by the packet Corresponding candidate reference position;
    对所述至少一个分组聚类出的基站对应的候选参考位置进行合并处理,以获得所述K个基站对应的参考位置。And performing a combining process on the candidate reference locations corresponding to the base stations that are clustered by the at least one packet to obtain reference locations corresponding to the K base stations.
  7. 根据权利要求6所述的方法,其特征在于,所述对所述至少一个分组聚类出的基站对应的候选参考位置进行合并处理,以获得所述K个基站对应的参考位置,包括:The method according to claim 6, wherein the merging process of the candidate reference locations corresponding to the base stations that are clustered by the at least one packet to obtain the reference locations corresponding to the K base stations includes:
    若一个基站对应至少两个候选参考位置,判断所述基站对应的至少两个候选参考位置中两两之间的距离是否小于指定的最小波动距离,若判断结果为是,根据所述基站对应的至少两个候选参考位置获得所述基站对应的参考位置;若判断结果为否,则当在当前时刻之前指定时间内产生的历史定位数据中包括所述基站的历史定位数据的数量大于指定门限,将所述基站对应的最新的候选参考位置作为所述基站对应的参考位置;If a base station corresponds to at least two candidate reference positions, determining whether a distance between two of the at least two candidate reference positions corresponding to the base station is less than a specified minimum fluctuation distance, and if the determination result is yes, according to the corresponding base station And obtaining, by the at least two candidate reference locations, a reference location corresponding to the base station; if the determination result is no, the historical positioning data generated in the specified time before the current time includes the number of historical positioning data of the base station being greater than a specified threshold, The latest candidate reference location corresponding to the base station is used as a reference location corresponding to the base station;
    若一个基站对应一个候选参考位置,则将所述候选参考位置作为所述基站对应的参考位置。If a base station corresponds to a candidate reference location, the candidate reference location is used as a reference location corresponding to the base station.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述网络识别参数还包括:移动网络号码MNC;The method according to any one of claims 1 to 7, wherein the network identification parameter further comprises: a mobile network number MNC;
    所述将所述N条定位参考数据存储到定位数据库中,包括:The storing the N pieces of positioning reference data into the positioning database, including:
    根据所述MNC和LAC,对所述N条定位参考数据进行合并处理,以获得P 条目标定位参考数据,P是小于N的自然数;Merging the N pieces of positioning reference data according to the MNC and the LAC to obtain P Article target positioning reference data, P is a natural number smaller than N;
    将所述P条目标定位参考数据存储到所述定位数据库中。The P pieces of target positioning reference data are stored in the positioning database.
  9. 根据权利要求1-7任一项所述的方法,其特征在于,所述根据M条历史定位数据,获得N条定位参考数据之前,还包括:The method according to any one of claims 1 to 7, wherein, before obtaining the N pieces of positioning reference data according to the M pieces of historical positioning data, the method further comprises:
    将在上一次生成定位数据与本次生成定位数据之间产生的历史定位数据,与上一次生成定位数据使用的历史定位数据进行合并,以获得本次生成定位数据使用的所述M条历史定位数据。The historical positioning data generated between the last generation of the positioning data and the current generation of the positioning data is merged with the historical positioning data used for generating the positioning data to obtain the M historical positions used for generating the positioning data. data.
  10. 根据权利要求1-7任一项所述的方法,其特征在于,还包括:The method of any of claims 1-7, further comprising:
    基于所述定位数据库进行以下至少一种定位操作:Performing at least one of the following positioning operations based on the positioning database:
    基于服务器的定位;Server-based positioning;
    终端离线定位。Terminal offline positioning.
  11. 一种定位数据生成装置,其特征在于,包括:A positioning data generating device, comprising:
    获得模块,用于根据M条历史定位数据,获得N条定位参考数据,每条定位参考数据包括:网络识别参数与参考位置区域的映射关系;其中,M和N是自然数,所述网络识别参数包括:位置区码LAC;Obtaining a module, configured to obtain N positioning reference data according to the M historical positioning data, where each positioning reference data includes: a mapping relationship between the network identification parameter and the reference location area; wherein, M and N are natural numbers, and the network identification parameter Including: location area code LAC;
    存储模块,用于将所述N条定位参考数据存储到定位数据库中。a storage module, configured to store the N positioning reference data into a positioning database.
  12. 根据权利要求11所述的装置,其特征在于,所述获得模块具体用于:The device according to claim 11, wherein the obtaining module is specifically configured to:
    根据所述M条历史定位数据中的基站标识和定位结果,获得K个基站对应的参考位置,K是自然数;Obtaining, according to the base station identifier and the positioning result in the M pieces of historical positioning data, a reference position corresponding to the K base stations, where K is a natural number;
    根据所述K个基站对应的参考位置和所述M条历史定位数据中的基站标识与网络识别参数标识,获得N个网络识别参数与参考位置区域的映射关系。And obtaining a mapping relationship between the N network identification parameters and the reference location area according to the reference position corresponding to the K base stations and the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data.
  13. 根据权利要求12所述的装置,其特征在于,所述获得模块进一步具体用于:The apparatus according to claim 12, wherein the obtaining module is further specifically configured to:
    根据所述M条历史定位数据中的基站标识和定位结果的映射关系,对所述M条历史定位数据中的定位结果进行聚类处理,以获得所述K个基站对应的参考位置。 And performing a clustering process on the positioning result in the M pieces of historical positioning data according to the mapping relationship between the base station identifier and the positioning result in the M pieces of historical positioning data to obtain a reference position corresponding to the K base stations.
  14. 根据权利要求12所述的装置,其特征在于,所述获得模块进一步具体用于:The apparatus according to claim 12, wherein the obtaining module is further specifically configured to:
    对所述K个基站对应的参考位置进行筛选,获得L个可用基站对应的参考位置,L是小于K的自然数;Filtering reference positions corresponding to the K base stations, obtaining reference positions corresponding to L available base stations, where L is a natural number smaller than K;
    根据所述M条历史定位数据中的基站标识与网络识别参数标识的映射关系,对所述L个可用基站对应的参考位置进行聚类处理,以获得所述N个网络识别参数与参考位置区域的映射关系。And performing clustering processing on the reference positions corresponding to the L available base stations according to the mapping relationship between the base station identifier and the network identification parameter identifier in the M pieces of historical positioning data, to obtain the N network identification parameters and the reference location area Mapping relationship.
  15. 根据权利要求14所述的装置,其特征在于,所述获得模块还用于:The device according to claim 14, wherein the obtaining module is further configured to:
    计算所述N个网络识别参数中每个网络识别参数对应的参考位置区域的中心点、半径和/或边界轮廓。Calculating a center point, a radius, and/or a boundary contour of a reference location area corresponding to each of the N network identification parameters.
  16. 根据权利要求13所述的装置,其特征在于,所述获得模块进一步具体用于:The apparatus according to claim 13, wherein the obtaining module is further specifically configured to:
    将所述M条历史定位数据进行分组,获得至少一个分组;And grouping the M pieces of historical positioning data to obtain at least one group;
    对于所述至少一个分组中的每个分组,根据所述分组中的基站标识和定位结果的映射关系,对所述分组中的定位结果进行聚类处理,以获得所述分组聚类出的基站对应的候选参考位置;For each of the at least one packet, performing a clustering process on the positioning result in the packet according to a mapping relationship between the base station identifier and the positioning result in the packet, to obtain a base station that is clustered by the packet Corresponding candidate reference position;
    对所述至少一个分组聚类出的基站对应的候选参考位置进行合并处理,以获得所述K个基站对应的参考位置。And performing a combining process on the candidate reference locations corresponding to the base stations that are clustered by the at least one packet to obtain reference locations corresponding to the K base stations.
  17. 根据权利要求16所述的装置,其特征在于,所述获得模块进一步具体用于:The apparatus according to claim 16, wherein the obtaining module is further specifically configured to:
    若一个基站对应至少两个候选参考位置,判断所述基站对应的至少两个候选参考位置中两两之间的距离是否小于指定的最小波动距离,若判断结果为是,根据所述基站对应的至少两个候选参考位置获得所述基站对应的参考位置;若判断结果为否,则当在当前时刻之前指定时间内产生的历史定位数据中包括所述基站标识的历史定位数据的数量大于指定门限,将所述基站对应的最新的候选参考位置作为所述基站对应的参考位置; If a base station corresponds to at least two candidate reference positions, determining whether a distance between two of the at least two candidate reference positions corresponding to the base station is less than a specified minimum fluctuation distance, and if the determination result is yes, according to the corresponding base station And obtaining, by the at least two candidate reference locations, a reference location corresponding to the base station; if the determination result is no, the number of historical positioning data including the identifier of the base station in the historical positioning data generated within a specified time before the current time is greater than a specified threshold And the latest candidate reference location corresponding to the base station is used as a reference location corresponding to the base station;
    若一个基站对应一个候选参考位置,则将所述候选参考位置作为所述基站对应的参考位置。If a base station corresponds to a candidate reference location, the candidate reference location is used as a reference location corresponding to the base station.
  18. 根据权利要求11-17任一项所述的装置,其特征在于,所述网络识别参数还包括:移动网络号码MNC;The device according to any one of claims 11-17, wherein the network identification parameter further comprises: a mobile network number MNC;
    所述存储模块具体用于:The storage module is specifically configured to:
    根据所述MNC和LAC,对所述N条定位参考数据进行合并处理,以获得P条目标定位参考数据,P是小于N的自然数;Performing a combination process on the N pieces of positioning reference data according to the MNC and the LAC to obtain P pieces of target positioning reference data, where P is a natural number smaller than N;
    将所述P条目标定位参考数据存储到所述定位数据库中。The P pieces of target positioning reference data are stored in the positioning database.
  19. 根据权利要求11-17任一项所述的装置,其特征在于,Apparatus according to any one of claims 11-17, wherein
    所述获得模块还用于:将在上一次生成定位数据与本次生成定位数据之间产生的历史定位数据与上一次生成定位数据使用的历史定位数据进行合并,以获得本次生成定位数据使用的所述M条历史定位数据。 The obtaining module is further configured to combine the historical positioning data generated between the last generated positioning data and the current generated positioning data and the historical positioning data used for generating the positioning data last time to obtain the current positioning data. The M historical positioning data.
PCT/CN2016/073268 2015-02-12 2016-02-03 Positioning data generation method and device WO2016127877A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510074149.9 2015-02-12
CN201510074149.9A CN105992146A (en) 2015-02-12 2015-02-12 Positioning data generation method and device

Publications (1)

Publication Number Publication Date
WO2016127877A1 true WO2016127877A1 (en) 2016-08-18

Family

ID=56614207

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073268 WO2016127877A1 (en) 2015-02-12 2016-02-03 Positioning data generation method and device

Country Status (2)

Country Link
CN (1) CN105992146A (en)
WO (1) WO2016127877A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923665A (en) * 2021-11-11 2022-01-11 中国联合网络通信集团有限公司 Method and device for identifying flower arrangement base station, electronic equipment and storage medium
TWI808821B (en) * 2022-03-08 2023-07-11 英華達股份有限公司 Portable positioning terminal, mobile terminal, position transmission and positioning method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089216B (en) * 2016-11-21 2021-11-05 千寻位置网络有限公司 Auxiliary positioning method and system
CN110391924B (en) * 2018-04-18 2023-03-14 海能达通信股份有限公司 Communication equipment, communication method thereof and device with storage function
CN110198519A (en) * 2019-06-26 2019-09-03 阿里巴巴集团控股有限公司 The location estimation method and device of network access point
CN112867145B (en) * 2021-01-08 2021-12-07 腾讯科技(深圳)有限公司 Base station positioning method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945325A (en) * 2010-08-13 2011-01-12 厦门雅迅网络股份有限公司 Base station positioning-based friend perception method
CN102164405A (en) * 2010-12-17 2011-08-24 东软集团股份有限公司 Method and system for quickly positioning
US8504062B2 (en) * 2010-11-01 2013-08-06 Wavemarket, Inc. System and method for aggregating and associating mobile device location data
WO2014004529A1 (en) * 2012-06-25 2014-01-03 Google Inc. Adaptive clustering of locations
CN103856893A (en) * 2012-12-05 2014-06-11 腾讯科技(深圳)有限公司 Method and device for filtering locating information

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6774842B2 (en) * 2002-12-03 2004-08-10 Nokia Corporation Generating entries for a database supporting a positioning of a mobile terminal
CN102625443B (en) * 2011-01-27 2014-08-06 中国移动通信集团公司 Method and device for positioning terminal
CN103533635A (en) * 2012-07-03 2014-01-22 希姆通信息技术(上海)有限公司 Mobile terminal positioning method and mobile terminal
US9119055B2 (en) * 2013-02-06 2015-08-25 Facebook, Inc. Grouping ambient-location updates

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945325A (en) * 2010-08-13 2011-01-12 厦门雅迅网络股份有限公司 Base station positioning-based friend perception method
US8504062B2 (en) * 2010-11-01 2013-08-06 Wavemarket, Inc. System and method for aggregating and associating mobile device location data
CN102164405A (en) * 2010-12-17 2011-08-24 东软集团股份有限公司 Method and system for quickly positioning
WO2014004529A1 (en) * 2012-06-25 2014-01-03 Google Inc. Adaptive clustering of locations
CN103856893A (en) * 2012-12-05 2014-06-11 腾讯科技(深圳)有限公司 Method and device for filtering locating information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923665A (en) * 2021-11-11 2022-01-11 中国联合网络通信集团有限公司 Method and device for identifying flower arrangement base station, electronic equipment and storage medium
CN113923665B (en) * 2021-11-11 2023-06-06 中国联合网络通信集团有限公司 Flower arrangement base station identification method and device, electronic equipment and storage medium
TWI808821B (en) * 2022-03-08 2023-07-11 英華達股份有限公司 Portable positioning terminal, mobile terminal, position transmission and positioning method

Also Published As

Publication number Publication date
CN105992146A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
WO2016127877A1 (en) Positioning data generation method and device
CN107547633B (en) User constant standing point processing method and device and storage medium
CN102571910B (en) Method for searching nearby users in social network, and server
CN110166943B (en) Method for processing terminal position information
CN105933294B (en) Network user's localization method, device and terminal
CN108181607B (en) Positioning method and device based on fingerprint database and computer readable storage medium
CN112449302B (en) Method and device for generating positioning and offline fingerprint database
US20160205219A1 (en) Information collection and processing method, client terminal and server
EP2484145B1 (en) Method and arrangement for supporting analysis of social networks in a communication network
CN103402259A (en) Bluetooth based indoor positioning service system and method
CN106535134B (en) Multi-room positioning method based on wifi and server
CN103339522A (en) Peer-to-peer location service
CN105373559A (en) Geographic information acquisition method and geographic information acquisition system
CN105009645A (en) Method and apparatus for scanning for wireless access point
EP2652968A1 (en) Identification of points of interest and positioning based on points of interest
CN109885636B (en) User portrait drawing method and server
EP2825899A1 (en) Supporting an update of stored information
CN105491529A (en) Memory mapping processing method of mobile terminal location data and big data platform
CN111479321B (en) Grid construction method and device, electronic equipment and storage medium
WO2016127880A1 (en) Method and device for determining quality of offline positioning data
CN112543419A (en) User trajectory prediction method and device based on density clustering
CN103763773A (en) Method and device for locating mobile terminal
CN103945433A (en) Method and device for determining area with weak network coverage
WO2010101547A1 (en) State-machine-based operation of a coverage-model-related process
CN111651681A (en) Message pushing method and device based on intelligent information recommendation in cloud network fusion environment

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: 16748678

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: 16748678

Country of ref document: EP

Kind code of ref document: A1