CN110035388B - Method for determining user area, computer readable storage medium and terminal device - Google Patents

Method for determining user area, computer readable storage medium and terminal device Download PDF

Info

Publication number
CN110035388B
CN110035388B CN201910215996.0A CN201910215996A CN110035388B CN 110035388 B CN110035388 B CN 110035388B CN 201910215996 A CN201910215996 A CN 201910215996A CN 110035388 B CN110035388 B CN 110035388B
Authority
CN
China
Prior art keywords
sub
area
user
information
base station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910215996.0A
Other languages
Chinese (zh)
Other versions
CN110035388A (en
Inventor
吴壮伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910215996.0A priority Critical patent/CN110035388B/en
Publication of CN110035388A publication Critical patent/CN110035388A/en
Application granted granted Critical
Publication of CN110035388B publication Critical patent/CN110035388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Abstract

The invention provides a method for determining a user area, a computer readable storage medium and a terminal device, comprising the following steps: acquiring information of a base station cell corresponding to each base station in a target area; dividing the target area into a plurality of continuous but non-overlapping sub-areas according to the information of the base station cell corresponding to each base station, wherein the base stations contained in any two sub-areas are different, and establishing a mapping relation between the identifier of the sub-area and the identifier information of all the base stations in the sub-area aiming at any sub-area; acquiring position information of a user; and determining the sub-area to which the user belongs according to the position information of the user. The method provided by the invention does not need to call the API of the third-party map in the process of determining the area to which the user belongs each time, thereby reducing the cost of determining the area of the user.

Description

Method for determining user area, computer readable storage medium and terminal device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method for determining a user area, a computer-readable storage medium, and a terminal device.
Background
With the increasing demand of people on travel services, the determination of the area where a user is located is important, on one hand, performing area positioning on the user can provide better travel services for the user, such as emergency help seeking when a vehicle is in a break, and a car insurance service company needs to determine a business area where the user belongs through position information of the user to inform organizations or personnel in the business area to provide quick rescue services for the user, and on the other hand, performing area positioning on the user is an important basis for researching resident travel behaviors, which is not only an important basic work of urban traffic planning and urban management, but also an important means for mastering urban traffic characteristics and laws.
In the service based on the location information, an open API (Application Programming Interface) Interface provided by a third-party geographic information service provider is usually required to be called to obtain the required geographic information to achieve the regional location of the user, however, the third-party geographic information service provider only provides query services for a limited number of times for the same IP (Internet Protocol, protocol for interconnection between networks), and only can purchase the services of the third-party geographic information service provider under the condition that the number of clients is large, which is costly, and since the step of information interaction with the server of the third-party geographic information service provider is performed, the number of times of signaling interaction is increased, and the query speed depends on the processing speed and the network transmission speed of the server of the third-party geographic information service provider, which results in lower regional determination efficiency.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for determining a user area, a computer-readable storage medium, and a terminal device, so as to solve the problems in the prior art that an area determination service provided by a third-party geographic information service provider is high in cost and low in efficiency.
A first aspect of an embodiment of the present invention provides a method for determining a user area, including:
acquiring information of a base station cell corresponding to each base station in a target area;
dividing the target area into a plurality of continuous but non-overlapping sub-areas according to the information of the base station cell corresponding to each base station, wherein the base stations contained in any two sub-areas are different, and establishing a mapping relation between the identifier of the sub-area and the identifier information of all the base stations in the sub-area aiming at any sub-area;
acquiring position information of a user;
and determining the sub-area to which the user belongs according to the position information of the user.
A second aspect of embodiments of the present invention provides a computer-readable storage medium having stored thereon computer-readable instructions that, when executed by a processor, perform the steps of:
acquiring information of a base station cell corresponding to each base station in a target area;
dividing the target area into a plurality of continuous but non-overlapping sub-areas according to the information of the base station cell corresponding to each base station, wherein the base stations contained in any two sub-areas are different, and establishing a mapping relation between the identifier of the sub-area and the identifier information of all the base stations in the sub-area aiming at any sub-area;
acquiring position information of a user;
and determining the sub-area to which the user belongs according to the position information of the user.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, where the processor executes the computer-readable instructions to implement the following steps:
acquiring information of a base station cell corresponding to each base station in a target area;
dividing the target area into a plurality of continuous but non-overlapping sub-areas according to the information of the base station cell corresponding to each base station, wherein the base stations contained in any two sub-areas are different, and establishing a mapping relation between the identifier of the sub-area and the identifier information of all the base stations in the sub-area aiming at any sub-area;
acquiring position information of a user;
and determining the sub-area to which the user belongs according to the position information of the user.
The invention provides a method for determining a user area, a computer readable storage medium and a terminal device, which divide the sub-area of a target area by analyzing base station cells corresponding to all base stations in the target area, directly determine the sub-area to which a user belongs according to the position information of the user, and reduce the cost for determining the user area without calling an API (application program interface) of a third-party map in the process of determining the area to which the user belongs each time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a method for determining a user area according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a base station cell corresponding to a base station according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another method for determining a user area according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a further method for determining a user area according to an embodiment of the present invention;
fig. 5 is a schematic diagram of determining sub-region boundary information according to an embodiment of the present invention;
fig. 6 is a block diagram of a device for determining a user area according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal device for determining a user area according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to illustrate the technical means of the present invention, the following description is given by way of specific examples.
The embodiment of the invention provides a method for determining a user area. With reference to fig. 1, the method comprises:
s101, obtaining information of a base station cell corresponding to each base station in a target area.
In a mobile communication network, a base station typically covers a certain geographical area, which is called a cell, or base station cell. As shown in fig. 2, the base station cell corresponding to each base station is a regular hexagonal area. In the cell, mobile terminals, such as mobile phones, smartwatches, etc., can reliably communicate with the base station in the cell through a wireless channel.
For a target area, if the target area is a city, the information of the base station cells of all base stations in the city is sequentially acquired, and the base station cells corresponding to all the base stations in the city can completely cover the target area.
And S102, dividing the target area into a plurality of continuous but non-overlapping sub-areas according to the information of the base station cell corresponding to each base station, wherein the base stations contained in any two sub-areas are different, and establishing a mapping relation between the identifier of the sub-area and the identifier information of all the base stations in the sub-area aiming at any sub-area.
Exemplarily, the target area is formed by n base station cells corresponding to base stations 1 to n as shown in fig. 2, and optionally, the base station cell corresponding to one or more base stations is taken as a sub-area, for example, the base station cell corresponding to base station 1 is taken as a sub-area, and the base station cell corresponding to base station 2 is taken as a sub-area \8230 \ 8230, and the base station cell corresponding to base station n is taken as a sub-area; for example, two base station cells corresponding to the base station 1 and the base station 2 are used as a sub-area, and two base station cells corresponding to the base station 3 and the base station 4 are used as a sub-area \8230 \ 8230
S103, acquiring the position information of the user.
In the embodiment of the invention, two methods for acquiring the position information of the user are provided.
The first method, determining the position information of the user by obtaining the mobile signaling information of the user and the mobile communication network: the mobile terminal, such as a mobile phone, a smart watch, and the like, communicates with a mobile communication network through a base station, when a user makes a call, sends a message, and other events through the mobile terminal, a large amount of signaling data is generated, and at this time, the mobile communication network records the position information of the user through each piece of mobile signaling information, wherein the position information includes a user identification code, the number of a base station cell, a timestamp of occurrence of a mobile signaling, and the like.
The second method is that the position information of the user is determined through the longitude and latitude information of the user reported by the user: some mobile terminals are equipped with GPS modules, the mobile terminals themselves can obtain the longitude and latitude information of the position of the mobile terminals through the GPS modules, and the longitude and latitude information of users can be obtained through the report of the users.
And S104, determining the sub-area to which the user belongs according to the position information of the user.
When the location information of the user is mobile signaling information generated by communication between the user and a mobile communication network, the embodiment of the invention provides two feasible implementation modes to determine the sub-area to which the user belongs.
In a first mode, as shown in fig. 3, the method includes:
and S1041, acquiring the latest mobile signaling corresponding to the user according to the timestamp information contained in the mobile signaling information, and acquiring the cell identification code information of the base station corresponding to the latest mobile signaling.
S1042, determining the identification information of the base station to which the user is connected according to the cell identity information of the base station corresponding to the latest mobile signaling.
And S1043, determining the sub-area to which the user belongs according to the identification information of the base station to which the user is connected and the mapping relation between the identification of the sub-area and the identification information of all base stations in the sub-area.
Through steps S1041 to S1043, a cell identification code corresponding to a base station to which the user is currently connected may be acquired, and a sub-area to which the cell belongs may be determined according to the cell identification code, thereby determining the sub-area to which the user is currently belonging.
It should be noted that, when a user is located at a boundary of two cells or a boundary of two adjacent cells, a ping-pong handover may occur, as shown in fig. 2, when the user is located in a cell corresponding to a base station 1 and is adjacent to a boundary of two cells corresponding to the base station 1 and the base station 2, because the strength of a radio channel provided by the base station 1 and the base station 2 for the user is similar, or because the traffic of the base station 1 is much higher than the traffic of the base station 2, the user may be handed over back and forth in the two cells in a short time, that is, a ping-pong handover occurs, at which time, the cell of the base station to which the user belongs cannot be determined, and in order to solve this problem, when the location information of the user is mobile signaling information generated by the user communicating with a mobile communication network, the embodiment of the present invention provides a second method for determining a sub-area to which the user belongs, as shown in fig. 4, the method includes:
and S1044, sequencing the mobile signaling information corresponding to the user according to the sequence of the occurrence time from first to last according to the timestamp information contained in the mobile signaling information, and reading three latest mobile signaling, wherein the three mobile signaling are a first signaling, a second signaling and a third signaling in sequence according to the sequence of the occurrence time from first to last.
S1045, acquiring a time difference between the first signaling and the second signaling
Figure 542217DEST_PATH_IMAGE001
Time difference between the second signaling and the third signaling
Figure 422448DEST_PATH_IMAGE002
And a preset time threshold T.
S1046, if
Figure 47334DEST_PATH_IMAGE001
Is less than the preset time threshold T, and
Figure 467951DEST_PATH_IMAGE002
if the time threshold T is smaller than the preset time threshold T, the base station corresponding to the first signaling and the third signaling is a first base station, and the first base station belongs to a first sub-area, and the base station corresponding to the second signaling is a second base station, and the second base station belongs to a second sub-area, it is determined that the sub-area to which the user belongs is the first sub-area.
By the method, the problem that the sub-area to which the user belongs cannot be determined due to ping-pong switching can be effectively avoided.
When the position information of the user is longitude and latitude information of the user, the process of determining the sub-area to which the user belongs according to the position information of the user comprises the following steps: and acquiring boundary information of each sub-region, and determining the sub-region to which the user belongs according to the longitude and latitude information of the user and the boundary information of each sub-region.
Specifically, the obtaining of the boundary information of each sub-region includes: for any sub-region, determining polygons forming the sub-region; and acquiring a linear function corresponding to each edge in the polygon in a preset map coordinate system and the longitude and latitude of each vertex of the polygon to obtain a boundary constraint condition corresponding to the sub-area.
As shown in fig. 5, if a sub-region is composed of two cells corresponding to base stations 1 and 2, the polygon formed by vertices a to J shown in fig. 5 is the polygon corresponding to the sub-region, and the polygon is composed of 10 line segments a to B, B to C \8230, J to a and 10 vertices a to J. In a preset map coordinate system, a linear function corresponding to each line segment and longitude and latitude information of each vertex can be obtained to form a boundary constraint condition of the polygon.
When the longitude and latitude of the user are known, a plurality of sub-areas to which the user belongs can be obtained according to the longitude information of the user and the boundary constraint condition of each polygon, and then one sub-area to which the user belongs is determined according to the latitude information of the user.
Or, according to the latitude information of the user and the boundary constraint condition of each polygon, a plurality of sub-regions to which the user belongs can be obtained, and then according to the longitude information of the user, a sub-region to which the user belongs is determined.
Further, after determining the sub-region to which the user belongs, in order to further analyze the travel behavior of the user, the embodiment of the present invention further provides a method for assigning a semantic label to each sub-region, so as to better mine the travel purpose of the user, including: dividing all interest points in the target area into a plurality of types, wherein the interest points contained in any two types are different; aiming at any sub-region, acquiring all interest points in the sub-region, and sequentially determining the type of each interest point; calculating the ratio of the number of the interest points of each type to the number of all the interest points in the sub-area in sequence to obtain the type with the maximum ratio; and establishing a semantic label for the sub-region, wherein the semantic label is used for expressing the type with the maximum ratio.
POI (Point Of Interest) is a Point Of Interest, which broadly refers to all geographic objects that can be abstracted as points, and each POI contains four-dimensional information, i.e., information such as name, category, longitude, latitude, and possibly also phone numbers, ratings, and the like. POI data can reflect city activity. Due to the fact that the POI data are large in sample size and wide in coverage range, each sub-region can be semantically identified by analyzing and processing the POI data, and the main function of each sub-region can be identified.
Optionally, all the POIs may be classified into five types, namely, residence, work, entertainment, shopping and others, and if the ratio of the number of POIs belonging to a certain type in a sub-region to the number of all POIs in the sub-region is the largest and exceeds a preset ratio, the semantic label corresponding to the type is assigned to the sub-region to indicate the function of the sub-region.
Further, in order to improve the user travel experience, after a user enters a sub-region, optionally, all the interest points belonging to the type corresponding to the semantic tag in the sub-region are pushed to the user according to the semantic tag of the sub-region to which the user belongs.
The embodiment of the invention provides a method for determining a user area, which comprises the following steps: acquiring information of a base station cell corresponding to each base station in a target area; dividing the target area into a plurality of continuous but non-overlapping sub-areas according to the information of the base station cell corresponding to each base station, wherein the base stations contained in any two sub-areas are different, and establishing a mapping relation between the identifier of the sub-area and the identifier information of all the base stations in the sub-area aiming at any sub-area; acquiring position information of a user; and determining the sub-area to which the user belongs according to the position information of the user. By the method, an API (application program interface) of the third-party map does not need to be called in the process of determining the area to which the user belongs each time, so that the cost for determining the area of the user is reduced.
Fig. 6 is a schematic diagram of an apparatus for determining a user area according to an embodiment of the present invention, and with reference to fig. 6, the apparatus includes: a first acquisition unit 61, a dividing unit 62, a second acquisition unit 63, and a determination unit 64;
the first obtaining unit 61 is configured to obtain information of a base station cell corresponding to each base station in a target area;
the dividing unit 62 is configured to divide the target area into a plurality of continuous but non-overlapping sub-areas according to information of a base station cell corresponding to each base station, where any two sub-areas include different base stations, and a mapping relationship between an identifier of the sub-area and identifier information of all base stations in the sub-area is established for any sub-area;
the second obtaining unit 63 is configured to obtain location information of the user;
the determining unit 64 is configured to determine a sub-area to which the user belongs according to the location information of the user.
Optionally, the location information of the user is mobile signaling information generated by communication between the user and a mobile communication network, and the determining unit 64 is configured to:
acquiring the latest mobile signaling corresponding to the user according to the timestamp information contained in the mobile signaling information, and acquiring the cell identification code information of the base station corresponding to the latest mobile signaling;
determining the identification information of the base station connected with the user according to the cell identification code information of the base station corresponding to the latest mobile signaling;
and determining the sub-area to which the user belongs according to the identification information of the base station connected with the user and the mapping relation between the identification of the sub-area and the identification information of all base stations in the sub-area.
Optionally, the location information of the user is mobile signaling information generated by communication between the user and a mobile communication network, and the determining unit 64 is configured to:
according to the timestamp information contained in the mobile signaling information, sequencing a plurality of pieces of mobile signaling information corresponding to the user according to the sequence of the occurrence time from first to last, and reading three latest mobile signaling, wherein the three mobile signaling sequentially comprise a first signaling, a second signaling and a third signaling according to the sequence of the occurrence time from first to last;
obtaining a time difference between the first signaling and the second signaling
Figure 878203DEST_PATH_IMAGE001
Time difference between the second signaling and the third signaling
Figure 991653DEST_PATH_IMAGE002
And a preset time threshold T;
if it is
Figure 103834DEST_PATH_IMAGE001
Is less than the preset time threshold T, and
Figure 328142DEST_PATH_IMAGE002
if the time is less than the preset time threshold T, the base station corresponding to the first signaling and the third signaling is a first base station, the first base station belongs to a first sub-area, the base station corresponding to the second signaling is a second base station, and the second base station belongs to a second sub-area, the sub-area to which the user belongs is determined to be the first sub-area.
Optionally, the location information of the user is longitude and latitude information of the user, and the first obtaining unit 61 is further configured to:
acquiring boundary information of each subregion;
the determining, according to the location information of the user, the sub-area to which the user belongs includes:
and determining the sub-area to which the user belongs according to the longitude and latitude information of the user and the boundary information of each sub-area.
Optionally, the first obtaining unit 61 is configured to, the obtaining boundary information of each sub-region includes:
for any sub-region, determining polygons forming the sub-region;
and acquiring a linear function corresponding to each edge in the polygon in a preset map coordinate system and the longitude and latitude of each vertex of the polygon to obtain a boundary constraint condition corresponding to the sub-region.
Optionally, the apparatus is further configured to:
dividing all interest points in the target area into a plurality of types, wherein the interest points contained in any two types are different;
aiming at any sub-region, acquiring all interest points in the sub-region, and sequentially determining the type of each interest point;
calculating the ratio of the number of the interest points of each type to the number of all the interest points in the sub-area in sequence to obtain the type with the maximum ratio;
and establishing a semantic label for the sub-region, wherein the semantic label is used for expressing the type with the maximum ratio.
Optionally, the apparatus is further configured to:
and pushing all interest points belonging to the type corresponding to the semantic label in the sub-area to the user according to the semantic label of the sub-area to which the user belongs.
The embodiment of the invention provides a device for determining a user area, which is used for: acquiring information of a base station cell corresponding to each base station in a target area; dividing the target area into a plurality of continuous but non-overlapping sub-areas according to the information of the base station cell corresponding to each base station, wherein the base stations contained in any two sub-areas are different, and establishing a mapping relation between the identifier of the sub-area and the identifier information of all the base stations in the sub-area aiming at any sub-area; acquiring position information of a user; and determining the sub-area to which the user belongs according to the position information of the user. By the method, an API (application program interface) of the third-party map does not need to be called in the process of determining the area to which the user belongs each time, so that the cost for determining the area of the user is reduced.
Fig. 7 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 7, the terminal device 7 of this embodiment includes: a processor 70, a memory 71 and a computer program 72, e.g. a program for determining a region, stored in said memory 71 and executable on said processor 70. The processor 70, when executing the computer program 72, performs the steps in the various embodiments of the method of determining a user area described above, such as steps 101 to 104 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 61 to 64 shown in fig. 6.
Illustratively, the computer program 72 may be partitioned into one or more modules/units, which are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 72 in the terminal device 7.
The terminal device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a terminal device 7 and does not constitute a limitation of the terminal device 7, and may include more or fewer components than shown, or some of the components may be combined, or different components, e.g. the terminal device may also include input output devices, network access devices, buses, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing the computer programs and other programs and data required by the terminal device. The memory 71 may also be used to temporarily store data that has been output or is to be output.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the method for determining a user area according to any one of the above embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above-mentioned embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A method of determining a user area, the method comprising:
acquiring information of a base station cell corresponding to each base station in a target area;
dividing the target area into a plurality of continuous but non-overlapping sub-areas according to the information of the base station cell corresponding to each base station, wherein the base stations contained in any two sub-areas are different, and establishing a mapping relation between the identifier of the sub-area and the identifier information of all the base stations in the sub-area aiming at any sub-area;
acquiring position information of a user;
determining a sub-area to which the user belongs according to the position information of the user;
wherein, the location information of the user is mobile signaling information generated by communication between the user and a mobile communication network, and the determining the sub-area to which the user belongs according to the location information of the user includes:
according to the timestamp information contained in the mobile signaling information, sequencing a plurality of pieces of mobile signaling information corresponding to the user according to the sequence of the occurrence time from first to last, and reading three latest mobile signaling, wherein the three mobile signaling sequentially comprise a first signaling, a second signaling and a third signaling according to the sequence of the occurrence time from first to last;
obtaining a time difference between the first signaling and the second signaling
Figure 91340DEST_PATH_IMAGE001
Time difference between the second signaling and the third signaling
Figure 426507DEST_PATH_IMAGE002
And a preset time threshold T;
if it is
Figure 342379DEST_PATH_IMAGE001
Is less than the preset time threshold T, and
Figure 421193DEST_PATH_IMAGE002
if the time threshold T is smaller than the preset time threshold T, the base station corresponding to the first signaling and the third signaling is a first base station, and the first base station belongs to a first sub-area, and the base station corresponding to the second signaling is a second base station, and the second base station belongs to a second sub-area, it is determined that the sub-area to which the user belongs is the first sub-area.
2. The method according to claim 1, wherein the location information of the user is mobile signaling information generated by the user communicating with a mobile communication network, and the determining the sub-area to which the user belongs according to the location information of the user comprises:
according to the timestamp information contained in the mobile signaling information, acquiring the latest mobile signaling corresponding to the user, and acquiring the cell identification code information of the base station corresponding to the latest mobile signaling;
determining the identification information of the base station connected with the user according to the cell identification code information of the base station corresponding to the latest mobile signaling;
and determining the sub-area to which the user belongs according to the identification information of the base station connected with the user and the mapping relation between the identification of the sub-area and the identification information of all base stations in the sub-area.
3. The method of claim 1, wherein the location information of the user is latitude and longitude information of the user, the method further comprising:
acquiring boundary information of each subregion;
the determining, according to the location information of the user, the sub-area to which the user belongs includes:
and determining the sub-area to which the user belongs according to the longitude and latitude information of the user and the boundary information of each sub-area.
4. The method of claim 3, wherein the obtaining the boundary information of each sub-area comprises:
for any sub-region, determining polygons forming the sub-region;
and acquiring a linear function corresponding to each edge in the polygon in a preset map coordinate system and the longitude and latitude of each vertex of the polygon to obtain a boundary constraint condition corresponding to the sub-region.
5. The method of determining a user area according to any of claims 1 to 4, further comprising:
dividing all interest points in the target area into a plurality of types, wherein the interest points contained in any two types are different;
aiming at any sub-region, acquiring all interest points in the sub-region, and sequentially determining the type of each interest point;
calculating the ratio of the number of the interest points of each type to the number of all the interest points in the sub-area in sequence to obtain the type with the maximum ratio;
and establishing a semantic label for the sub-region, wherein the semantic label is used for expressing the type with the maximum ratio.
6. The method of determining a user area of claim 5, further comprising:
and pushing all interest points belonging to the type corresponding to the semantic label in the sub-area to the user according to the semantic label of the sub-area to which the user belongs.
7. An apparatus for determining a user area, the apparatus comprising: the device comprises a first acquisition unit, a dividing unit, a second acquisition unit and a determining unit;
the first obtaining unit is used for obtaining the information of the base station cell corresponding to each base station in the target area;
the dividing unit is configured to divide the target area into a plurality of continuous but non-overlapping sub-areas according to information of a base station cell corresponding to each base station, where any two sub-areas include different base stations, and a mapping relationship between an identifier of the sub-area and identifier information of all base stations in the sub-area is established for any sub-area;
the second acquisition unit is used for acquiring the position information of the user;
the determining unit is used for determining a sub-area to which the user belongs according to the position information of the user;
wherein the location information of the user is mobile signaling information generated by communication between the user and a mobile communication network, and the determining unit is specifically configured to:
according to the timestamp information contained in the mobile signaling information, sequencing a plurality of pieces of mobile signaling information corresponding to the user according to the sequence of the occurrence time from first to last, and reading three latest mobile signaling, wherein the three mobile signaling sequentially comprise a first signaling, a second signaling and a third signaling according to the sequence of the occurrence time from first to last;
obtaining a time difference between the first signaling and the second signaling
Figure 919171DEST_PATH_IMAGE001
Time difference between the second signaling and the third signaling
Figure 628501DEST_PATH_IMAGE002
And a preset time threshold T;
if it is
Figure 579139DEST_PATH_IMAGE001
Is less than the preset time threshold T, and
Figure 648595DEST_PATH_IMAGE002
if the time is less than the preset time threshold T, the base station corresponding to the first signaling and the third signaling is a first base station, the first base station belongs to a first sub-area, the base station corresponding to the second signaling is a second base station, and the second base station belongs to a second sub-area, the sub-area to which the user belongs is determined to be the first sub-area.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a method according to any one of claims 1 to 6.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor, a computer program being stored on the memory and being executable on the processor, the processor implementing the steps of the method according to any of the claims 1 to 6 when executing the computer program.
CN201910215996.0A 2019-03-21 2019-03-21 Method for determining user area, computer readable storage medium and terminal device Active CN110035388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910215996.0A CN110035388B (en) 2019-03-21 2019-03-21 Method for determining user area, computer readable storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910215996.0A CN110035388B (en) 2019-03-21 2019-03-21 Method for determining user area, computer readable storage medium and terminal device

Publications (2)

Publication Number Publication Date
CN110035388A CN110035388A (en) 2019-07-19
CN110035388B true CN110035388B (en) 2022-12-16

Family

ID=67236427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910215996.0A Active CN110035388B (en) 2019-03-21 2019-03-21 Method for determining user area, computer readable storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN110035388B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112752222B (en) * 2019-10-30 2022-06-28 中移(苏州)软件技术有限公司 Behavior recognition method and device, electronic equipment and computer storage medium
WO2021109026A1 (en) * 2019-12-04 2021-06-10 哈尔滨海能达科技有限公司 Scheduling system resource tree generation method and apparatus, and scheduling apparatus and computer storage medium
CN111065115B (en) * 2019-12-04 2023-03-14 哈尔滨海能达科技有限公司 Resource tree generation method for scheduling system, scheduling device and computer storage medium
CN112785310A (en) * 2020-07-24 2021-05-11 上海芯翌智能科技有限公司 Identity recognition system and method, and storage medium
CN112469073B (en) * 2020-11-24 2021-07-09 中国信息通信研究院 Method, apparatus and storage medium for determining ping-pong effect number in communication network
CN114978382A (en) * 2021-02-22 2022-08-30 华为技术有限公司 Data processing method and communication device based on space division
CN113709006B (en) * 2021-10-29 2022-02-08 上海闪马智能科技有限公司 Flow determination method and device, storage medium and electronic device
CN114302326B (en) * 2021-12-24 2023-05-23 珠海优特电力科技股份有限公司 Positioning area determining method, positioning device and positioning equipment
CN114302327B (en) * 2021-12-24 2023-06-23 珠海优特电力科技股份有限公司 Method, device, equipment, positioning system and storage medium for switching positioning areas
CN114339603B (en) * 2021-12-24 2023-08-25 珠海优特电力科技股份有限公司 Method, device, equipment and storage medium for switching positioning area

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631343A (en) * 2008-07-14 2010-01-20 中国移动通信集团河南有限公司 Method and device for identifying mobile user affiliation region
CN104848848A (en) * 2015-03-30 2015-08-19 北京云迹科技有限公司 Robot map drafting and positioning method based on wireless base station and laser sensor as well as system thereof
US9307360B1 (en) * 2015-01-09 2016-04-05 NinthDecimal, Inc. Systems and methods to identify a predefined geographical region in which a mobile device is located

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631343A (en) * 2008-07-14 2010-01-20 中国移动通信集团河南有限公司 Method and device for identifying mobile user affiliation region
US9307360B1 (en) * 2015-01-09 2016-04-05 NinthDecimal, Inc. Systems and methods to identify a predefined geographical region in which a mobile device is located
CN104848848A (en) * 2015-03-30 2015-08-19 北京云迹科技有限公司 Robot map drafting and positioning method based on wireless base station and laser sensor as well as system thereof

Also Published As

Publication number Publication date
CN110035388A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN110035388B (en) Method for determining user area, computer readable storage medium and terminal device
CN107295609B (en) Network slice processing method and device, terminal and base station
US10098007B2 (en) Coverage management for wireless communication network
JP5479601B2 (en) Method and apparatus for supporting social network analysis in a communication network
US10911888B1 (en) Pattern matching in point-of-interest (POI) traffic analysis
CN107135090B (en) Method and device for realizing network poor quality problem positioning
CN109842886B (en) Frequency-reducing network-quitting method and device for communication network
WO2021129446A1 (en) Network searching method and device, and storage medium
US20170061533A1 (en) Method and device for security assessment
CN109286902B (en) Method and device for acquiring pedestrian volume of scenic spot tourists
CN110012436B (en) User position determination method, device, equipment and computer readable storage medium
CN114782219A (en) Personnel flow data analysis method and device
CN113573334B (en) Method and device for determining resident area of user
CN108008973B (en) Method, device and server for associating application program
CN109168127A (en) Resource recommendation method, device, electronic equipment and computer-readable medium
CN105335313A (en) Basic data transmission method and apparatus
CN109345947B (en) Work area division method based on data correlation analysis and terminal equipment
CN108234471B (en) Group entry verification method, group entry verification device, computer device and computer-readable storage medium
US20100113012A1 (en) System and method for identifying status of a mobile phone
CN111935772A (en) Method and device for determining value of service area
CN114928849A (en) Base station deployment method and device, electronic equipment and storage medium
CN110708665B (en) Method and device for determining home area of access network equipment
CN111328013B (en) Mobile terminal positioning method and system
CN113923666A (en) Method and device for identifying over-coverage base station, electronic equipment and storage medium
CN112307075B (en) User relationship identification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant