CN112507051B - Administrative division identification method, apparatus, device and computer readable storage medium - Google Patents

Administrative division identification method, apparatus, device and computer readable storage medium Download PDF

Info

Publication number
CN112507051B
CN112507051B CN202011409123.2A CN202011409123A CN112507051B CN 112507051 B CN112507051 B CN 112507051B CN 202011409123 A CN202011409123 A CN 202011409123A CN 112507051 B CN112507051 B CN 112507051B
Authority
CN
China
Prior art keywords
target vehicle
target
information
administrative division
boundary position
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
CN202011409123.2A
Other languages
Chinese (zh)
Other versions
CN112507051A (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.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology 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 Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202011409123.2A priority Critical patent/CN112507051B/en
Publication of CN112507051A publication Critical patent/CN112507051A/en
Application granted granted Critical
Publication of CN112507051B publication Critical patent/CN112507051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Navigation (AREA)

Abstract

The application discloses a method, a device and equipment for identifying administrative division and a computer readable storage medium, belonging to the technical field of vehicle management. The method comprises the following steps: acquiring current geographic position information of a target vehicle, wherein the current geographic position information comprises longitude information of the target vehicle and latitude information of the target vehicle; determining an area code of an area where the target vehicle is located based on longitude information of the target vehicle and latitude information of the target vehicle; and determining the target administrative division in which the target vehicle is located based on the region codes of the regions in which the target vehicle is located and an administrative division data table, wherein the administrative division data table comprises the region codes of the internal regions included in each administrative division. According to the method, all administrative divisions are not required to be traversed, the target administrative division where the target vehicle is located can be identified, the time for identifying the target administrative division is shortened, and the identification efficiency of the target administrative division is improved.

Description

Administrative division identification method, apparatus, device and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of vehicle management, in particular to a method, a device and equipment for identifying administrative regions and a computer readable storage medium.
Background
With the popularization of vehicles and the continuous development of vehicle management technologies, the efficient and accurate identification of administrative divisions of vehicles is becoming a research hotspot for vehicle technology researchers.
In the related art, current geographic position information of a target vehicle is acquired, rays are taken as a starting point by taking the current geographic position information of the target vehicle as a starting point, and an intersection point of the rays and each administrative division is determined. Based on the number of intersections of the ray with each administrative division, it is determined in which administrative division the target vehicle is. For example, the number of intersection points of the ray and the administrative division one is 3, the number of intersection points of the ray and the administrative division two is 4, and the administrative division one where the vehicle is determined according to the principle of a ray method.
However, the above method for identifying an administrative division needs to traverse all administrative divisions, determine the number of intersections between the ray and each administrative division, and waste more time to identify the administrative division where the vehicle is located, so that the identifying efficiency of the administrative division is low, and the accuracy of the identified administrative division is reduced.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a computer readable storage medium for identifying administrative division, which can be used for solving the problems in the related art. The technical scheme is as follows:
In one aspect, an embodiment of the present application provides a method for identifying an administrative division, where the method includes:
Acquiring current geographic position information of a target vehicle, wherein the current geographic position information comprises longitude information of the target vehicle and latitude information of the target vehicle;
Determining an area code of an area where the target vehicle is located based on the longitude information of the target vehicle and the latitude information of the target vehicle;
And determining the target administrative division in which the target vehicle is located based on the region code of the region in which the target vehicle is located and an administrative division data table, wherein the administrative division data table comprises the region codes of the internal regions included in each administrative division.
In one possible implementation manner, the determining, based on the region code and the administrative division data table of the region where the target vehicle is located, the target administrative division where the target vehicle is located includes:
And determining the administrative division corresponding to the target internal area as the target administrative division in which the target vehicle is located in response to the existence of the target internal area consistent with the area code of the area in which the target vehicle is located in the administrative division data table.
In a possible implementation manner, the administrative division data table further includes boundary position points of the administrative divisions, and correspondence between direction information of the boundary position points and the administrative divisions;
The determining the target administrative division in which the target vehicle is located based on the region code and the administrative division data table of the region in which the target vehicle is located includes:
Responding to the fact that no target internal area consistent with the area code of the area where the target vehicle is located exists in the administrative division data table, and acquiring a target circle by taking the current geographic position information of the target vehicle as a circle center and the target length as a radius;
determining a plurality of target boundary position points of a target in the target circle;
Determining direction information of the target vehicle based on the geographic position information of the target boundary position point and the geographic position information of the target vehicle;
and determining the target administrative division in which the target vehicle is located based on the target boundary position point, the direction information of the target vehicle, the boundary position points of the administrative divisions, and the correspondence between the direction information of the boundary position points and the administrative divisions.
In one possible implementation manner, before the determining the target administrative division in which the target vehicle is located based on the area code and the administrative division data table of the area in which the target vehicle is located, the method further includes:
Acquiring area codes of internal areas included in a plurality of administrative areas;
determining boundary position points of each administrative division, and corresponding relation between direction information of the boundary position points and the administrative division;
And determining the administrative division data table based on the administrative divisions, the area codes of the internal areas included in each administrative division, and the boundary position points of each administrative division, and the corresponding relation between the direction information of the boundary position points and the administrative divisions.
In one possible implementation manner, the determining the direction information of the target vehicle based on the geographic position information of the target boundary position point and the geographic position information of the target vehicle includes:
based on the geographic position information of the target boundary position point and the geographic position information of the target vehicle, determining a vector cross product value corresponding to the target vehicle by adopting a vector machine principle;
and determining the direction information of the target vehicle based on the vector cross value corresponding to the target vehicle.
In one possible implementation manner, the determining the direction information of the target vehicle based on the vector cross value corresponding to the target vehicle includes:
Determining the direction information of the target vehicle as a first direction in response to the vector cross value corresponding to the target vehicle being a positive value;
determining the direction information of the target vehicle as a second direction in response to the vector cross value corresponding to the target vehicle being a negative value;
Determining the direction information of the target vehicle as a third direction in response to the vector cross value corresponding to the target vehicle being zero;
wherein the first direction, the second direction, and the third direction are different directions.
In one possible implementation manner, the determining, based on the target boundary position point, the direction information of the target vehicle, and the boundary position points of the respective administrative divisions, the correspondence between the direction information of the boundary position point and the administrative divisions, includes:
determining at least one candidate administrative division based on the target boundary position point, the boundary position points of each administrative division and the corresponding relation between the direction information of the boundary position points and the administrative division;
and determining a target administrative division in which the target vehicle is located in the at least one candidate administrative division based on the direction information of the target vehicle.
In one possible implementation manner, the determining the area code of the area where the target vehicle is located based on the longitude information of the target vehicle and the latitude information of the target vehicle includes:
Determining a binary value corresponding to the longitude information of the target vehicle based on the longitude information of the target vehicle and the longitude interval information of the earth;
determining a binary value corresponding to the latitude information of the target vehicle based on the latitude information of the target vehicle and the latitude interval information of the earth;
Determining a binary value corresponding to current geographic position information of the target vehicle based on the binary value corresponding to longitude information of the target vehicle and the binary value corresponding to latitude information of the target vehicle;
And determining the region code of the region where the target vehicle is located based on the binary value corresponding to the current geographic position information of the target vehicle and the target code form.
In one possible implementation manner, after the determining, based on the region code and the administrative division data table of the region where the target vehicle is located, the target administrative division where the target vehicle is located, the method further includes:
Acquiring a target service corresponding to the target administrative division;
And displaying the target service.
In another aspect, an embodiment of the present application provides an apparatus for identifying an administrative division, where the apparatus includes:
the acquisition module is used for acquiring current geographic position information of a target vehicle, wherein the current geographic position information comprises longitude information of the target vehicle and latitude information of the target vehicle;
The determining module is used for determining an area code of an area where the target vehicle is located based on the longitude information of the target vehicle and the latitude information of the target vehicle;
The determining module is further configured to determine a target administrative division in which the target vehicle is located based on a region code of a region in which the target vehicle is located and an administrative division data table, where the administrative division data table includes region codes of internal regions included in each administrative division.
In one possible implementation manner, the determining module is configured to determine, in response to the existence of a target internal area in the administrative division data table, where the area code of the area where the target vehicle is located is consistent with an area code of the area where the target vehicle is located, an administrative division corresponding to the target internal area as a target administrative division where the target vehicle is located.
In a possible implementation manner, the administrative division data table further includes boundary position points of the administrative divisions, and correspondence between direction information of the boundary position points and the administrative divisions;
The determining module is used for obtaining a target circle by taking the current geographic position information of the target vehicle as a circle center and taking the target length as a radius in response to the fact that an internal area consistent with the area code of the area where the target vehicle is located does not exist in the administrative division data table;
determining a plurality of target boundary position points of a target in the target circle;
Determining direction information of the target vehicle based on the geographic position information of the target boundary position point and the geographic position information of the target vehicle;
and determining the target administrative division in which the target vehicle is located based on the target boundary position point, the direction information of the target vehicle, the boundary position points of the administrative divisions, and the correspondence between the direction information of the boundary position points and the administrative divisions.
In a possible implementation manner, the obtaining module is further configured to obtain a plurality of administrative regions and region codes of internal regions included in the administrative regions;
The determining module is further used for determining boundary position points of each administrative division and the corresponding relation between the direction information of the boundary position points and the administrative division;
And determining the administrative division data table based on the administrative divisions, the area codes of the internal areas included in each administrative division, and the boundary position points of each administrative division, and the corresponding relation between the direction information of the boundary position points and the administrative divisions.
In one possible implementation manner, the determining module is configured to determine a vector cross product value corresponding to the target vehicle by using a vector machine principle based on the geographic position information of the target boundary position point and the geographic position information of the target vehicle;
and determining the direction information of the target vehicle based on the vector cross value corresponding to the target vehicle.
In one possible implementation manner, the determining module is configured to determine, in response to a vector cross value corresponding to the target vehicle being a positive value, direction information of the target vehicle to be a first direction;
determining the direction information of the target vehicle as a second direction in response to the vector cross value corresponding to the target vehicle being a negative value;
Determining the direction information of the target vehicle as a third direction in response to the vector cross value corresponding to the target vehicle being zero;
wherein the first direction, the second direction, and the third direction are different directions.
In a possible implementation manner, the determining module is configured to determine at least one candidate administrative division based on the target boundary position point and the boundary position points of the administrative divisions, and the correspondence between the direction information of the boundary position points and the administrative divisions;
and determining a target administrative division in which the target vehicle is located in the at least one candidate administrative division based on the direction information of the target vehicle.
In one possible implementation manner, the determining module is configured to determine a binary value corresponding to the longitude information of the target vehicle based on the longitude information of the target vehicle and longitude interval information of the earth;
determining a binary value corresponding to the latitude information of the target vehicle based on the latitude information of the target vehicle and the latitude interval information of the earth;
Determining a binary value corresponding to current geographic position information of the target vehicle based on the binary value corresponding to longitude information of the target vehicle and the binary value corresponding to latitude information of the target vehicle;
And determining the region code of the region where the target vehicle is located based on the binary value corresponding to the current geographic position information of the target vehicle and the target code form.
In a possible implementation manner, the obtaining module is further configured to obtain a target service corresponding to the target administrative division;
The apparatus further comprises:
And the display module is used for displaying the target service.
In another aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor, so as to implement the method for identifying an administrative division described in any one of the above.
In another aspect, there is provided a computer readable storage medium having at least one program code stored therein, the at least one program code loaded and executed by a processor to implement the method for identifying an administrative division as described in any one of the above.
In another aspect, a computer program or computer program product is provided, in which at least one computer instruction is stored, loaded and executed by a processor, to implement the method for identifying any one of the administrative divisions described above.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
According to the technical scheme provided by the embodiment of the application, the area code of the area where the target vehicle is located is determined based on the current geographic position information of the target vehicle, and the area code of the internal area included in each administrative division is included in the administrative division data table, so that the internal area consistent with the area code of the area where the target vehicle is located is determined in the administrative division data table based on the area code of the area where the target vehicle is located, and the target administrative division where the target vehicle is located is identified. According to the method, all administrative divisions are not required to be traversed, the target administrative division where the target vehicle is located can be identified, the time for identifying the target administrative division is shortened, the identification efficiency of the target administrative division is improved, and the accuracy of the identified target administrative division can be improved to a certain extent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of an implementation environment of a method for identifying an administrative division according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for identifying an administrative division according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an acquiring process of an administrative division data table according to an embodiment of the present application;
FIG. 4 is a schematic view of a target circle according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an identifying device for administrative division according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a method for identifying an administrative division according to an embodiment of the present application, where, as shown in fig. 1, the implementation environment includes: an electronic device 101.
The electronic apparatus 101 is an in-vehicle terminal installed and operated in a target vehicle, or other types of electronic apparatuses such as remote control, and the product form of the electronic apparatus 101 is not limited in the embodiment of the present application. The electronic device 101 is provided with and runs with a navigation device, and the electronic device 101 is used for executing the identification method of the administrative division provided by the embodiment of the application. Of course, the electronic device 101 may also have other functions in order to provide a more comprehensive and diversified service.
The electronic device 101 may refer broadly to one of a plurality of electronic devices, with the present embodiment being illustrated only by the electronic device 101. Those skilled in the art will appreciate that the number of electronic devices 101 described above may be greater or lesser. For example, the electronic device 101 may be only one, or the electronic device 101 may be more than one, which is not limited by the number and type of the electronic devices according to the embodiments of the present application.
Based on the above implementation environment, the embodiment of the present application provides a method for identifying an administrative division, taking a flowchart of the method for identifying an administrative division provided in the embodiment of the present application shown in fig. 2 as an example, where the method may be executed by the electronic device 101 in fig. 1. As shown in fig. 2, the method comprises the steps of:
in step 201, current geographic position information of a target vehicle is acquired, the current geographic position information including longitude information of the target vehicle and latitude information of the target vehicle.
In an exemplary embodiment of the application, a global positioning system (Global Positioning System, GPS) is installed and operated in the electronic device, and the GPS is used to determine geographic location information of the target vehicle at each moment. Optionally, after acquiring the geographic location information of the target vehicle at each moment, the electronic device may further store the geographic location information of each moment in the storage space of the electronic device.
In one possible implementation, to accurately determine the administrative division in which the target vehicle is currently located, the electronic device invokes the GPS to acquire current geographic location information of the target vehicle, where the current geographic location information includes current longitude information and current latitude information of the target vehicle.
For example, the current geographic location information of the target vehicle obtained by the electronic device is [121.43960190000007, 31.1932993], that is, the longitude information of the current location of the target vehicle is 121.43960190000007 degrees, and the latitude information of the current location of the target vehicle is 31.1932993 degrees.
In step 202, an area code of an area in which the target vehicle is located is determined based on longitude information of the target vehicle and latitude information of the target vehicle.
In one possible implementation manner, the process of determining the area code of the area where the target vehicle is located based on the longitude information of the target vehicle and the latitude information of the target vehicle determined in the above step 201 includes the following steps 1 to 4.
Step 1, determining a binary value corresponding to the longitude information of the target vehicle based on the longitude information of the target vehicle and the longitude zone information of the earth.
In one possible implementation, the longitude zone information of the earth is [ -180,180], the longitude zone information of the earth is divided into two zones, respectively [ -180,0] and [0, 180], the longitude information of the target vehicle is determined to be in a left zone or a right zone, the binary result is taken to be 0 if in the left zone, and the binary result is taken to be 1 if in the right zone. For example, if the longitude information of the target vehicle is in the right section, the binary result is taken as 1, the right section is continuously divided into two sections, namely [0,90] and [90,180], and whether the longitude information is in the left section or the right section is continuously judged until the target number of binary results is obtained. And forming binary values corresponding to the longitude information of the target vehicle by the obtained target number of binary results.
Illustratively, taking the longitude information of the target vehicle obtained in the step 201 as 121.43960190000007 degrees, and taking the target number as 15 as an example, the binary result corresponding to the longitude information is determined as shown in the following table one.
List one
Based on the 15 binary results obtained in the first table, a binary value corresponding to the longitude information of the target vehicle is 110101100101101.
Of course, the target value may be another value, and the embodiment of the present application only uses the target value of 15 as an example and is not limited to the value of the target value.
And 2, determining a binary value corresponding to the latitude information of the target vehicle based on the latitude information of the target vehicle and the latitude interval information of the earth.
In one possible implementation, the latitude interval information of the earth is [ -90,90], the latitude interval information of the earth is divided into two intervals, namely [ -90,0] and [0, 90], the latitude information of the target vehicle is determined to be in a left interval or a right interval, if the latitude information of the target vehicle is in the left interval, the binary result is 0, and if the latitude information of the target vehicle is in the right interval, the binary result is 1, for example, the latitude information of the target vehicle is in the right interval, the binary result is 1, the right interval is continuously divided into two intervals, namely [0, 45] and [45, 90], and the judgment of the latitude information is continuously performed on the left interval or the right interval until a target number of binary results are obtained. And forming binary values corresponding to the latitude information of the target vehicle by the obtained target number of binary results.
Illustratively, taking the latitude information of the target vehicle obtained in the step 201 as 31.1932993 degrees, and taking the target number as 15 as an example, the binary result corresponding to the latitude information is determined as shown in the following table two.
Watch II
And obtaining a binary value corresponding to the latitude information of the target vehicle to be 101011000101110 based on the 15 binary results obtained in the table II.
And 3, determining the binary value corresponding to the current geographic position information of the target vehicle based on the binary value corresponding to the longitude information of the target vehicle and the binary value corresponding to the latitude information of the target vehicle.
In one possible implementation manner, based on the binary value corresponding to the longitude information of the target vehicle determined in the step 1 and the binary value corresponding to the latitude information of the target vehicle determined in the step 2, the binary value corresponding to the current geographic position information of the target vehicle is determined according to the rule that the longitude is placed by the even number bit and the latitude is placed by the odd number bit.
Illustratively, based on the binary value 110101100101101 corresponding to the longitude information of the target vehicle determined in the above step 1, the binary value 101011000101110 corresponding to the latitude information of the target vehicle determined in the above step 2, the binary value corresponding to the current geographic position information of the target vehicle is determined to be 111001100111100000110011110110 according to the rule of placing the longitude by even digits and placing the latitude by odd digits.
It should be noted that, the binary value corresponding to the current geographic position information of the target vehicle may be determined according to the rules of the even-numbered latitude and the odd-numbered longitude.
And 4, determining the area code of the area where the target vehicle is located based on the binary value corresponding to the current geographic position information of the target vehicle and the target code form.
In one possible implementation, the shape of the area where the target vehicle is located may be S2 block, or may be another shape, which is not limited in the embodiment of the present application. The shape of the S2 block is rectangular, and the size of the S2 block is arbitrary, which is not limited in the embodiment of the present application.
In one possible implementation, the common target coding form is base 32 coding and base 36 coding, and the present application is described by taking the target coding form as base 32 coding as an example, however, the target coding form may also be base 36 coding, which is not limited in this embodiment of the present application. The following table three shows the target coding forms provided by the embodiments of the present application.
Watch III
Decimal value 0 1 2 3 4 5 6 7 8 9 10
Encoding 0 1 2 3 4 5 6 7 8 9 b
Decimal value 11 12 13 14 15 16 17 18 19 20 21
Encoding c d e f g h j k m n p
Decimal value 22 23 24 25 26 27 28 29 30 31
Encoding q r s t u v w x y z
In the third table, when the decimal value is 0, the corresponding code is 0; when the decimal value is 1, the corresponding code is 1; when the decimal value is other values, see the above table three in detail, and the details are not repeated here.
In one possible implementation manner, the binary value corresponding to the current geographic position information of the target vehicle determined in the step3 is converted into a decimal value, and the area code of the area where the target vehicle is located is determined based on the decimal value and the target code form.
Illustratively, the binary value corresponding to the current geographic position information of the target vehicle determined in the step 3 is converted into a decimal value, which is 28, 25, 28, 3, 7, 22. Based on the decimal value and the target coding form shown in the table three, determining that the region code of the region where the target vehicle is located is wtw q, namely, the region where the target vehicle is located is the region with the region code of wtw q.
In step 203, the target administrative division in which the target vehicle is located is determined based on the area code and the administrative division data table of the area in which the target vehicle is located.
In one possible implementation, the administrative division data table is acquired before determining the target administrative division in which the target vehicle is located based on the area code and the administrative division data table of the area in which the target vehicle is located. The administrative division data table is obtained as follows: acquiring area codes of internal areas included in a plurality of administrative areas; determining the corresponding relation between the direction information of the boundary position points of each administrative division and the administrative division; an administrative division data table is determined based on a plurality of administrative divisions, area codes of an internal area included in each administrative division, boundary position points of each administrative division, and correspondence of direction information of the boundary position points and the administrative divisions.
The shape of the internal area included in each administrative division may be an S2 block, or may be other shapes, which is not limited in the embodiment of the present application. When the shape of the internal area included in each administrative division is S2 blocks, the size of the internal area included in each administrative division is uniform, that is, the size of the internal S2 blocks included in each administrative division is uniform.
In one possible implementation, the administrative division is adjacent to the administrative division, or the administrative division is connected to another country. When the administrative division is adjacent to the administrative division, a boundary line shared between the administrative division is an administrative division intersection line, and when the administrative division is adjacent to another country, a boundary line shared between the administrative division and the other country is a national border line.
As shown in fig. 3, two administrative divisions are shown in fig. 3, and the codes are 110106 and 110108, respectively, and the two administrative divisions are adjacent administrative divisions, so that the two administrative divisions share a boundary line, and a plurality of boundary position points exist on the boundary line, and in fig. 3, only a few boundary position points are shown for more visual clarity of the display, but the number of boundary position points on the boundary line is not limited in the embodiment of the present application.
In fig. 3, administrative division 110106 includes four internal areas, and the area codes of the four internal areas are respectively: 6800672846847500901, 6800672847201462931, 6800672846905692159 and 6793685308260372277. Administrative division 110108 includes ten interior regions, the region codes of which are :814275847807041152、814275700792246009、814275758271606040、814276284126781579、814275733618461729、814275869848734964、814275820709156091、814276037053730418、814275767960612621 and 814275718991735561, respectively. Boundary position point 1, boundary position point 2, boundary position point 3, and boundary position point 4 exist on a boundary line shared in administrative division 110106 and administrative division 110108.
When the direction information from the boundary position point 1 to the boundary position point 2 is clockwise, the corresponding administrative division is 110106, and when the direction information from the boundary position point 1 to the boundary position point 2 is anticlockwise, the corresponding administrative division is 110108; when the direction information from the boundary position point 2 to the boundary position point 3 is clockwise, the corresponding administrative division is 110106, and when the direction information from the boundary position point 2 to the boundary position point 3 is anticlockwise, the corresponding administrative division is 110108; when the direction information from the boundary position point 3 to the boundary position point 4 is clockwise, the corresponding administrative division is 110106, and when the direction information from the boundary position point 3 to the boundary position point 4 is counterclockwise, the corresponding administrative division is 110108. When the direction information from the boundary position point 4 to the boundary position point 3 is clockwise, the corresponding administrative division is 110108, and when the direction information from the boundary position point 4 to the boundary position point 3 is anticlockwise, the corresponding administrative division is 110106; when the direction information from the boundary position point 3 to the boundary position point 2 is clockwise, the corresponding administrative division is 110108, and when the direction information from the boundary position point 3 to the boundary position point 2 is anticlockwise, the corresponding administrative division is 110106; when the direction information from the boundary position point 2 to the boundary position point 1 is clockwise, the corresponding administrative division is 110108, and when the direction information from the boundary position point 2 to the boundary position point 1 is counterclockwise, the corresponding administrative division is 110106.
The determination process of the area code of the internal area of the other administrative division and the correspondence between the boundary position point and the direction information of the boundary position point and the administrative division is identical to the determination process of the area code of the internal area of the administrative division 110106 and the administrative division 110108 in fig. 3 and the correspondence between the boundary position point and the direction information of the boundary position point and the administrative division is not described in detail herein. A technician needs to traverse all administrative regions, determine the area codes of the internal areas of all administrative regions and the corresponding relations between the boundary position points and the direction information of the boundary position points and the administrative regions, and determine an administrative region data table based on the area codes of the internal areas of all administrative regions and the corresponding relations between the boundary position points and the direction information of the boundary position points and the administrative regions.
An example of an administrative division data table provided by an embodiment of the present application is shown in table four, which includes only the area codes of the internal areas of the administrative division 110106 and the administrative division 110108 and the correspondence between the boundary position points, the direction information of the boundary position points, and the administrative division.
Table four
In table four, (1, list (2,110106,110108)) is used for indicating that when the direction information from the boundary position point 1 to the boundary position point 2 is clockwise, the corresponding administrative division is 110106, and when the direction information from the boundary position point 1 to the boundary position point 2 is counterclockwise, the corresponding administrative division is 110108; (2, list (1,110108,110106)) is used to indicate that when the direction information from the boundary position point 2 to the boundary position point 1 is clockwise, the corresponding administrative division is 110108, and when the direction information from the boundary position point 2 to the boundary position point 1 is counterclockwise, the corresponding administrative division is 110106. The other boundary position points, and the indication information of the correspondence relationship between the direction information of the boundary position points and the administrative division are similar to the indication information of the above (1, list (2,110106,110108)) and (2, list (1,110108,110106)), and will not be described in detail here.
The administrative division data table is a table with huge data volume, and the administrative division data table is stored in the electronic device after being determined, or the administrative division data table is stored in a server connected with the electronic device. When the administrative division where the target vehicle is located needs to be determined, the electronic equipment calls the administrative division data table to determine.
It should be noted that, the correspondence between the boundary position point of the administrative division and the administrative division when the administrative division is adjacent to another country, and the direction information of the boundary position point are identical to the correspondence between the boundary position point of the administrative division and the administrative division when the administrative division is adjacent to the administrative division, and the direction information of the boundary position point is identical to the correspondence between the administrative division and the boundary position point, and are not described herein.
In one possible implementation manner, the administrative division data table includes area codes of internal areas included in each administrative division, and the process of determining the target administrative division in which the target vehicle is located based on the area codes of the areas in which the target vehicle is located and the administrative division data table is as follows: in response to the existence of a target internal region in the administrative division data table that coincides with the region code of the region in which the target vehicle is located, an administrative division corresponding to the target internal region in which the region code of the region in which the target vehicle is located coincides is determined as the target administrative division in which the target vehicle is located.
In one possible implementation, in response to the existence of the target internal region in the administrative division data table that corresponds to the region code of the region in which the target vehicle is located, indicating that the target vehicle is present in the internal region of one of the administrative divisions, the administrative division corresponding to the target internal region in which the region code of the region in which the target vehicle is located is determined as the target administrative division in which the target vehicle is located.
Illustratively, the area code of the area where the target vehicle is located is 814275847807041152, the administrative division data table has a target internal area 814275847807041152, and the administrative division corresponding to the target internal area is an administrative division 110108, and the administrative division 110108 corresponding to the target internal area 814275847807041152 is determined as the target administrative division where the target vehicle is located, and since the administrative division corresponding to the administrative division 110108 is a beijing city lake area, the position where the target vehicle is determined as the beijing city lake area.
In one possible implementation manner, the administrative division data table further includes boundary position points of each administrative division, and correspondence between direction information of the boundary position points and the administrative division. And in response to the fact that the administrative division data table does not have the target internal area consistent with the area code of the area where the target vehicle is located, indicating that the target vehicle is located in the edge area of one administrative division, and determining the target administrative division where the target vehicle is located according to the current geographic position information of the target vehicle and the corresponding relation between the boundary position point of each administrative division and the direction information of the boundary position point and the administrative division.
In one possible implementation manner, the following steps 1 to 4 are performed to determine a target administrative division package in which the target vehicle is located according to the current geographic location information of the target vehicle and the boundary location points of each administrative division, and the correspondence between the direction information of the boundary location points and the administrative division.
And step 1, acquiring a target circle by taking the current geographic position information of the target vehicle as a circle center and the target length as a radius.
In one possible implementation manner, the target circle is made with the current geographic position information of the target vehicle as a circle center and the target length as a radius, and the obtained target circle comprises at least two boundary position points. Fig. 4 is a schematic diagram of a target circle provided by an embodiment of the present application, in fig. 4, the target circle is obtained by taking the current geographical position information of the target vehicle as a center and taking the target length of 200 meters as a radius, and the target circle includes four boundary position points, namely, a boundary position point 1, a boundary position point 2, a boundary position point 3 and a boundary position point 4.
It should be noted that the target length may be other values, and the embodiment of the present application only uses the target length of 200 meters as an example for illustration, and does not limit the value of the target length.
When the target length is insufficient, that is, when the number of boundary position points included in the target circle obtained by rounding the target length with the target length as a radius is smaller than 2, the target length may be enlarged until the number of boundary position points included in the target circle obtained by rounding the target length with the target length as a radius is equal to or greater than 2.
And 2, determining a first numerical value target boundary position point in the target circle.
In one possible implementation manner, after determining the target circle, obtaining geographic position information of a plurality of boundary position points included in the target circle, and determining distances from the target vehicle to the boundary position points respectively based on the geographic position information of the target vehicle and the geographic position information of the plurality of boundary position points included in the target circle; and determining the boundary position points with the distances meeting the target requirements as target boundary position points.
For example, taking the target circle shown in fig. 4 as an example, the target circle includes four boundary position points, geographical position information of the four boundary position points is obtained, distances from the target vehicle to the four boundary position points are determined based on the geographical position information of the target vehicle and the geographical position information of the four boundary position points, four distances are obtained, and the two boundary position points with the smallest distance are determined to be the target boundary position point.
In the present application, since the triangular vector method is adopted in determining the administrative division corresponding to the target vehicle, the value of the first numerical value is 2.
And 3, determining the direction information of the target vehicle based on the geographic position information of the target boundary position point and the current geographic position information of the target vehicle.
In one possible implementation, the process of determining the direction information of the target vehicle based on the geographic position information of the target boundary position point and the current geographic position information of the target vehicle is as follows: based on the geographic position information of the target boundary position point and the geographic position information of the target vehicle, a vector machine principle is adopted to determine a vector cross value corresponding to the target vehicle, and based on the vector cross value corresponding to the target vehicle, the direction information of the target vehicle is determined.
The method comprises the steps of responding to a vector cross multiplication value corresponding to a target vehicle to be a positive value, and determining direction information of the target vehicle to be a first direction; determining the direction information of the target vehicle as a second direction in response to the vector cross value corresponding to the target vehicle being a negative value; and determining the direction information of the target vehicle as a third direction in response to the vector cross value corresponding to the target vehicle being zero, wherein the first direction, the second direction and the third direction are different directions.
Illustratively, the first direction is a clockwise direction, and when the vector cross value corresponding to the target vehicle is a positive value, the direction information of the target vehicle is determined to be the clockwise direction; when the vector cross multiplication value corresponding to the target vehicle is a negative value, determining that the direction information of the target vehicle is a counterclockwise direction; the third direction is the boundary line direction, and the direction information of the target vehicle is determined to be the boundary line direction when the vector cross value corresponding to the target vehicle is zero.
And 4, determining the target administrative division in which the target vehicle is located based on the target boundary position point, the direction information of the target vehicle, the boundary position points of all administrative divisions and the corresponding relation between the direction information of the boundary position point and the administrative division.
In one possible implementation manner, at least one candidate administrative division is determined based on the corresponding relationship between the target boundary position point and the boundary position point of each administrative division, and the direction information of the boundary position point and the administrative division; and determining a target administrative division corresponding to the target vehicle in the at least one candidate administrative division based on the direction information of the target vehicle.
Illustratively, the target boundary position points are boundary position point 2 and boundary position point 3, and the direction information corresponding to the target vehicle is clockwise. Candidate administrative division is determined as administrative division 110106 and administrative division 110108 based on the boundary position point 2 and boundary position point 3 and the boundary position points of the respective administrative divisions, and the correspondence between the direction information of the boundary position points and the administrative division. Since the direction information corresponding to the target vehicle is clockwise and the administrative division corresponding to the direction information from the boundary position point 2 to the boundary position point 3 is clockwise is administrative division 110106, the target administrative division in which the target vehicle is located is determined to be administrative division 110106. Since administrative division 110106 is used to indicate beijing city Fengtai, the target administrative division in which the target vehicle is located is determined to be beijing city Fengtai.
In one possible implementation manner, in response to the vector cross value corresponding to the target vehicle being zero, the direction information of the target vehicle is the boundary line direction, that is, the target vehicle is running on the boundary line, then any one of the two administrative regions corresponding to the boundary line may be determined as the target administrative region in which the target vehicle is located.
Illustratively, when the vector cross value corresponding to the target vehicle is zero, which indicates that the target vehicle is traveling on the boundary line, either one of the two administrative divisions 110106 and 110108 corresponding to the boundary line is determined as the target administrative division in which the target vehicle is located. For example, administrative division 110106 is determined as the target administrative division in which the target vehicle is located. For another example, administrative division 110108 is determined as the target administrative division in which the target vehicle is located.
In one possible implementation manner, after determining the target administrative division in which the target vehicle is located, the target service corresponding to the target administrative division may also be acquired, and the target service may be displayed. The target services include, but are not limited to, weather services, video push services.
For example, it is determined that the target administrative division where the target vehicle is located is the beijing city Fengtai area, weather data of the beijing city Fengtai area is obtained, and the weather data of the beijing city Fengtai area is displayed on the display interface of the electronic device.
For another example, it is determined that the target administrative division where the target vehicle is located is the beijing city Fengtai area, the hotspot video of the beijing city Fengtai area is obtained, and when the related person (driver or passenger taking the target vehicle) of the target vehicle clicks the video applet, the hotspot video of the beijing city Fengtai area is pushed to the related person.
It should be noted that, the target service corresponding to the target administrative division may also be other types of services, which are not limited in the embodiment of the present application.
According to the method, the area code of the area where the target vehicle is located is determined based on the current geographic position information of the target vehicle, and the area code of the internal area included in each administrative division is included in the administrative division data table, so that the internal area consistent with the area code of the area where the target vehicle is located is determined in the administrative division data table based on the area code of the area where the target vehicle is located, and the target administrative division where the target vehicle is located is identified. According to the method, all administrative divisions are not required to be traversed, the target administrative division where the target vehicle is located can be identified, the time for identifying the target administrative division is shortened, the identification efficiency of the target administrative division is improved, and the accuracy of the identified target administrative division can be improved to a certain extent.
Fig. 5 is a schematic structural diagram of an administrative division recognition device according to an embodiment of the present application, where, as shown in fig. 5, the device includes:
An obtaining module 501, configured to obtain current geographic location information of a target vehicle, where the current geographic location information includes longitude information of the target vehicle and latitude information of the target vehicle;
a determining module 502, configured to determine an area code of an area where the target vehicle is located based on longitude information of the target vehicle and latitude information of the target vehicle;
The determining module 502 is further configured to determine a target administrative division in which the target vehicle is located based on a region code of a region in which the target vehicle is located and an administrative division data table, where the administrative division data table includes region codes of internal regions included in each administrative division.
In a possible implementation manner, the determining module 502 is configured to determine, as the target administrative division in which the target vehicle is located, an administrative division corresponding to the target internal area in response to the existence of the target internal area in the administrative division data table, where the area code of the area in which the target vehicle is located is consistent.
In one possible implementation manner, the administrative division data table further includes boundary position points of the respective administrative divisions, and correspondence between direction information of the boundary position points and the administrative divisions;
The determining module 502 is configured to obtain a target circle by taking current geographic location information of the target vehicle as a center of a circle and a target length as a radius in response to the administrative division data table not having a target internal area consistent with an area code of an area where the target vehicle is located;
Determining a plurality of target boundary position points of a target in the target circle;
determining direction information of the target vehicle based on the geographic position information of the target boundary position point and the geographic position information of the target vehicle;
and determining the target administrative division in which the target vehicle is located based on the target boundary position point, the direction information of the target vehicle, the boundary position points of the administrative divisions, and the correspondence between the direction information of the boundary position points and the administrative divisions.
In a possible implementation manner, the obtaining module 501 is further configured to obtain a plurality of administrative regions and region codes of the internal regions included in the administrative regions;
the determining module 502 is further configured to determine boundary position points of the administrative division, and correspondence between direction information of the boundary position points and the administrative division;
The administrative division data table is determined based on the plurality of administrative divisions, the area codes of the internal area included in each administrative division, and the boundary position points of each administrative division, and the correspondence of the direction information of the boundary position points and the administrative divisions.
In a possible implementation manner, the determining module 502 is configured to determine a vector cross product value corresponding to the target vehicle based on the geographic location information of the target boundary location point and the geographic location information of the target vehicle by using a vector machine principle;
And determining the direction information of the target vehicle based on the vector cross value corresponding to the target vehicle.
In one possible implementation manner, the determining module 502 is configured to determine, in response to the vector cross value corresponding to the target vehicle being a positive value, the direction information of the target vehicle to be a first direction;
determining the direction information of the target vehicle as a second direction in response to the vector cross value corresponding to the target vehicle being a negative value;
Determining the direction information of the target vehicle as a third direction in response to the vector cross value corresponding to the target vehicle being zero;
wherein the first direction, the second direction and the third direction are different directions.
In a possible implementation manner, the determining module 502 is configured to determine at least one candidate administrative division based on the target boundary position point and the boundary position points of each administrative division, and the correspondence between the direction information of the boundary position points and the administrative division;
And determining a target administrative division in which the target vehicle is located in the at least one candidate administrative division based on the direction information of the target vehicle.
In one possible implementation, the determining module 502 is configured to determine, based on the longitude information of the target vehicle and the longitude interval information of the earth, a binary value corresponding to the longitude information of the target vehicle;
Determining a binary value corresponding to the latitude information of the target vehicle based on the latitude information of the target vehicle and the latitude interval information of the earth;
determining a binary value corresponding to the current geographic position information of the target vehicle based on the binary value corresponding to the longitude information of the target vehicle and the binary value corresponding to the latitude information of the target vehicle;
And determining the area code of the area where the target vehicle is located based on the binary value corresponding to the current geographic position information of the target vehicle and the target code form.
In a possible implementation manner, the obtaining module 501 is further configured to obtain a target service corresponding to the target administrative division;
The apparatus further comprises:
and the display module is used for displaying the target service.
The device determines the area code of the area where the target vehicle is located based on the current geographic position information of the target vehicle, and the administrative division data table comprises the area codes of the internal areas included in each administrative division, and determines the internal area consistent with the area code of the area where the target vehicle is located based on the area code of the area where the target vehicle is located in the administrative division data table, so that the target administrative division where the target vehicle is located is identified. According to the method, all administrative divisions are not required to be traversed, the target administrative division where the target vehicle is located can be identified, the time for identifying the target administrative division is shortened, the identification efficiency of the target administrative division is improved, and the accuracy of the identified target administrative division can be improved to a certain extent.
It should be understood that, in implementing the functions of the apparatus provided in fig. 5, only the division of the functional modules is illustrated, and in practical application, the functional modules may be allocated to different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Fig. 6 shows a block diagram of an electronic device 600 according to an exemplary embodiment of the application. The electronic device 600 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Electronic device 600 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the electronic device 600 includes: a processor 601 and a memory 602.
Processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 601 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). Processor 601 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 601 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 602 is used to store at least one instruction for execution by processor 601 to implement the method of identifying an administrative division provided by an embodiment of the method of the present application.
In some embodiments, the electronic device 600 may further optionally include: a peripheral interface 603, and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 603 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 604, a display 605, a camera assembly 606, audio circuitry 607, a positioning assembly 608, and a power supply 609.
Peripheral interface 603 may be used to connect at least one Input/Output (I/O) related peripheral to processor 601 and memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 601, memory 602, and peripheral interface 603 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 604 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 604 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (WIRELESS FIDELITY ) networks. In some embodiments, the radio frequency circuit 604 may further include NFC (NEAR FIELD Communication) related circuits, which is not limited by the present application.
The display screen 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 605 is a touch display, the display 605 also has the ability to collect touch signals at or above the surface of the display 605. The touch signal may be input as a control signal to the processor 601 for processing. At this point, the display 605 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 605 may be one, disposed on the front panel of the electronic device 600; in other embodiments, the display screen 605 may be at least two, respectively disposed on different surfaces of the electronic device 600 or in a folded design; in other embodiments, the display 605 may be a flexible display disposed on a curved surface or a folded surface of the electronic device 600. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 605 may be made of LCD (Liquid CRYSTAL DISPLAY), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 606 is used to capture images or video. Optionally, the camera assembly 606 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing, or inputting the electric signals to the radio frequency circuit 604 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple and separately disposed at different locations of the electronic device 600. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 607 may also include a headphone jack.
The location component 608 is utilized to locate the current geographic location of the electronic device 600 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 608 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, or the Galileo system of Russia.
The power supply 609 is used to power the various components in the electronic device 600. The power source 609 may be alternating current, direct current, disposable battery or rechargeable battery. When the power source 609 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 600 further includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensor 611, gyroscope sensor 612, pressure sensor 613, fingerprint sensor 614, optical sensor 615, and proximity sensor 616.
The acceleration sensor 611 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the electronic device 600. For example, the acceleration sensor 611 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 601 may control the display screen 605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 611. The acceleration sensor 611 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 612 may detect a body direction and a rotation angle of the electronic device 600, and the gyro sensor 612 may cooperate with the acceleration sensor 611 to collect a 3D motion of the user on the electronic device 600. The processor 601 may implement the following functions based on the data collected by the gyro sensor 612: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 613 may be disposed at a side frame of the electronic device 600 and/or at an underlying layer of the display 605. When the pressure sensor 613 is disposed on a side frame of the electronic device 600, a grip signal of the user on the electronic device 600 may be detected, and the processor 601 performs a left-right hand recognition or a shortcut operation according to the grip signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed at the lower layer of the display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 605. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 614 is used to collect a fingerprint of a user, and the processor 601 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 614 may be disposed on the front, back, or side of the electronic device 600. When a physical key or vendor Logo is provided on the electronic device 600, the fingerprint sensor 614 may be integrated with the physical key or vendor Logo.
The optical sensor 615 is used to collect ambient light intensity. In one embodiment, processor 601 may control the display brightness of display 605 based on the intensity of ambient light collected by optical sensor 615. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 605 is turned up; when the ambient light intensity is low, the display brightness of the display screen 605 is turned down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 based on the ambient light intensity collected by the optical sensor 615.
A proximity sensor 616, also referred to as a distance sensor, is typically provided on the front panel of the electronic device 600. The proximity sensor 616 is used to capture the distance between the user and the front of the electronic device 600. In one embodiment, when the proximity sensor 616 detects a gradual decrease in the distance between the user and the front of the electronic device 600, the processor 601 controls the display 605 to switch from the bright screen state to the off screen state; when the proximity sensor 616 detects that the distance between the user and the front of the electronic device 600 gradually increases, the processor 601 controls the display screen 605 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 6 is not limiting of the electronic device 600 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In an exemplary embodiment, there is also provided a computer readable storage medium having stored therein at least one program code loaded and executed by a processor to implement the method of identifying any one of the administrative sections described above.
Alternatively, the above-mentioned computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Read-Only optical disk (Compact Disc Read-Only Memory, CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program or computer program product is also provided, in which at least one computer instruction is stored, which is loaded and executed by a processor to implement a method of identifying any one of the administrative regions described above.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The foregoing description of the exemplary embodiments of the application is not intended to limit the application to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the application.

Claims (10)

1. A method of identifying an administrative division, the method comprising:
Acquiring current geographic position information of a target vehicle, wherein the current geographic position information comprises longitude information of the target vehicle and latitude information of the target vehicle;
Determining an area code of an area where the target vehicle is located based on the longitude information of the target vehicle and the latitude information of the target vehicle;
In response to the fact that no target internal area consistent with the area code of the area where the target vehicle is located exists in the administrative division data table, acquiring a target circle by taking the current geographic position information of the target vehicle as a circle center and the target length as a radius, wherein the target circle comprises at least two boundary position points; determining distances from the target vehicle to the boundary position points respectively based on the current geographic position information of the target vehicle and geographic position information of a plurality of boundary position points included in the target circle; determining the boundary position points with the distances meeting the target requirements as target boundary position points; determining a vector cross multiplication value corresponding to the target vehicle by adopting a vector machine principle based on the geographic position information of the target boundary position point and the current geographic position information of the target vehicle; determining the direction information of the target vehicle based on the vector cross value corresponding to the target vehicle; and determining the target administrative division in which the target vehicle is positioned based on the target boundary position point, the direction information of the target vehicle, the boundary position points of all administrative divisions and the corresponding relation between the direction information of the boundary position points and the administrative divisions, wherein the administrative division data table comprises the area codes of the internal areas included by all the administrative divisions and the corresponding relation between the boundary position points of all the administrative divisions and the direction information of the boundary position points and the administrative divisions.
2. The method according to claim 1, wherein the method further comprises:
And determining the administrative division corresponding to the target internal area as the target administrative division in which the target vehicle is located in response to the existence of the target internal area consistent with the area code of the area in which the target vehicle is located in the administrative division data table.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
Acquiring area codes of internal areas included in a plurality of administrative areas;
determining boundary position points of each administrative division, and corresponding relation between direction information of the boundary position points and the administrative division;
And determining the administrative division data table based on the administrative divisions, the area codes of the internal areas included in each administrative division, and the boundary position points of each administrative division, and the corresponding relation between the direction information of the boundary position points and the administrative divisions.
4. The method of claim 1, wherein the determining the direction information of the target vehicle based on the vector cross value corresponding to the target vehicle comprises:
Determining the direction information of the target vehicle as a first direction in response to the vector cross value corresponding to the target vehicle being a positive value;
determining the direction information of the target vehicle as a second direction in response to the vector cross value corresponding to the target vehicle being a negative value;
Determining the direction information of the target vehicle as a third direction in response to the vector cross value corresponding to the target vehicle being zero;
wherein the first direction, the second direction, and the third direction are different directions.
5. The method of claim 1, wherein the determining the target administrative division in which the target vehicle is located based on the target boundary position point, the direction information of the target vehicle, and the boundary position points of the respective administrative divisions, the correspondence between the direction information of the boundary position point and the administrative division, comprises:
determining at least one candidate administrative division based on the target boundary position point, the boundary position points of each administrative division and the corresponding relation between the direction information of the boundary position points and the administrative division;
and determining a target administrative division in which the target vehicle is located in the at least one candidate administrative division based on the direction information of the target vehicle.
6. The method of claim 1, wherein the determining the area code of the area in which the target vehicle is located based on the longitude information of the target vehicle and the latitude information of the target vehicle comprises:
Determining a binary value corresponding to the longitude information of the target vehicle based on the longitude information of the target vehicle and the longitude interval information of the earth;
determining a binary value corresponding to the latitude information of the target vehicle based on the latitude information of the target vehicle and the latitude interval information of the earth;
Determining a binary value corresponding to current geographic position information of the target vehicle based on the binary value corresponding to longitude information of the target vehicle and the binary value corresponding to latitude information of the target vehicle;
And determining the region code of the region where the target vehicle is located based on the binary value corresponding to the current geographic position information of the target vehicle and the target code form.
7. The method of any of claims 1-2 and 4-6, wherein after the determining the target administrative division in which the target vehicle is located, the method further comprises:
Acquiring a target service corresponding to the target administrative division;
And displaying the target service.
8. An apparatus for identifying an administrative division, the apparatus comprising:
the acquisition module is used for acquiring current geographic position information of a target vehicle, wherein the current geographic position information comprises longitude information of the target vehicle and latitude information of the target vehicle;
The determining module is used for determining an area code of an area where the target vehicle is located based on the longitude information of the target vehicle and the latitude information of the target vehicle;
The determining module is further configured to obtain a target circle with current geographic location information of the target vehicle as a center and a target length as a radius in response to the fact that a target internal area consistent with an area code of an area where the target vehicle is located does not exist in the administrative division data table, where the target circle includes at least two boundary location points; determining distances from the target vehicle to the boundary position points respectively based on the current geographic position information of the target vehicle and geographic position information of a plurality of boundary position points included in the target circle; determining the boundary position points with the distances meeting the target requirements as target boundary position points; determining a vector cross multiplication value corresponding to the target vehicle by adopting a vector machine principle based on the geographic position information of the target boundary position point and the current geographic position information of the target vehicle; determining the direction information of the target vehicle based on the vector cross value corresponding to the target vehicle; and determining the target administrative division in which the target vehicle is positioned based on the target boundary position point, the direction information of the target vehicle, the boundary position points of all administrative divisions and the corresponding relation between the direction information of the boundary position points and the administrative divisions, wherein the administrative division data table comprises the area codes of the internal areas included by all the administrative divisions and the corresponding relation between the boundary position points of all the administrative divisions and the direction information of the boundary position points and the administrative divisions.
9. An electronic device comprising a processor and a memory, wherein the memory has stored therein at least one program code that is loaded and executed by the processor to implement the method of identifying an administrative division according to any one of claims 1 to 7.
10. A computer readable storage medium having stored therein at least one program code, the at least one program code being loaded and executed by a processor to implement the method of identifying an administrative division according to any one of claims 1 to 7.
CN202011409123.2A 2020-12-03 2020-12-03 Administrative division identification method, apparatus, device and computer readable storage medium Active CN112507051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011409123.2A CN112507051B (en) 2020-12-03 2020-12-03 Administrative division identification method, apparatus, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011409123.2A CN112507051B (en) 2020-12-03 2020-12-03 Administrative division identification method, apparatus, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112507051A CN112507051A (en) 2021-03-16
CN112507051B true CN112507051B (en) 2024-06-28

Family

ID=74971753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011409123.2A Active CN112507051B (en) 2020-12-03 2020-12-03 Administrative division identification method, apparatus, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112507051B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274732A (en) * 2018-09-05 2019-01-25 北京达佳互联信息技术有限公司 Geographical location acquisition methods, device, electronic equipment and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59132099A (en) * 1983-01-17 1984-07-30 株式会社デンソー Running information system for vehicle
CN1329712C (en) * 2004-01-08 2007-08-01 陈阿林 Method of proceeding coding designation against city and peripheral region geographical addressing object
CN103377585B (en) * 2012-04-25 2017-02-08 腾讯科技(深圳)有限公司 Method for locating administrative division based on longitude and latitude
CN103914457B (en) * 2012-12-31 2017-06-20 北京中交兴路信息科技有限公司 A kind of method for exhibiting data and data display systems
KR102039741B1 (en) * 2013-02-15 2019-11-01 한국전자통신연구원 Method and apparatus for image warping
KR101546710B1 (en) * 2013-11-14 2015-08-24 현대자동차주식회사 A navigation apparatus, a vehicle in which the navigation apparatus is installed in and a method of input an address of the navigation apparatus
CN107911793B (en) * 2017-10-30 2020-03-31 东南大学 Unmanned aerial vehicle arbitrary figure no-fly zone identification navigation system
CN108647332B (en) * 2018-05-11 2021-12-14 北京大学 Administrative division space information organization method based on global grid
CN110928964A (en) * 2018-09-20 2020-03-27 百度在线网络技术(北京)有限公司 Administrative region positioning method and device, computer equipment and storage medium
CN110909260B (en) * 2019-11-12 2023-03-07 浙江大搜车软件技术有限公司 Vehicle display method, device, computer readable storage medium and computer equipment
CN111581471B (en) * 2020-05-09 2023-11-10 北京京东振世信息技术有限公司 Regional vehicle checking method, device, server and medium
CN111881248A (en) * 2020-09-28 2020-11-03 蘑菇车联信息科技有限公司 Mark display method and device and related equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274732A (en) * 2018-09-05 2019-01-25 北京达佳互联信息技术有限公司 Geographical location acquisition methods, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112507051A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN110095128B (en) Method, device, equipment and storage medium for acquiring missing road information
CN111754386B (en) Image area shielding method, device, equipment and storage medium
CN110738185B (en) Form object identification method, form object identification device and storage medium
CN112989198B (en) Push content determination method, device, equipment and computer-readable storage medium
CN110990728B (en) Method, device, equipment and storage medium for managing interest point information
CN111754564B (en) Video display method, device, equipment and storage medium
CN112365088B (en) Method, device and equipment for determining travel key points and readable storage medium
CN111984755B (en) Method and device for determining target parking spot, electronic equipment and storage medium
CN112507051B (en) Administrative division identification method, apparatus, device and computer readable storage medium
CN113742430B (en) Method and system for determining number of triangle structures formed by nodes in graph data
CN112818243B (en) Recommendation method, device, equipment and storage medium of navigation route
CN113408989B (en) Automobile data comparison method and device and computer storage medium
CN112990421B (en) Method, device and storage medium for optimizing operation process of deep learning network
CN111984738B (en) Data association method, device, equipment and storage medium
CN111125095B (en) Method, device, electronic equipment and medium for adding data prefix
CN113590877B (en) Method and device for acquiring annotation data
CN113722827B (en) CAD data creation method, device and computer storage medium
CN111382152B (en) Data table processing method, device and storage medium
CN112214645B (en) Method and device for storing track data
CN112329355B (en) Method and device for determining single-well control area, computer equipment and storage medium
CN113129221B (en) Image processing method, device, equipment and storage medium
CN113590669B (en) Method and device for generating cost report forms and computer storage medium
CN112686942B (en) Method and device for determining target address of drilling platform
CN111795697B (en) Equipment positioning method and device, electronic equipment and storage medium
CN112308587B (en) Natural gas peak valley month sales quantity determining method, device and storage medium

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