Distance calculation method and device based on region division and electronic equipment
A technology of area division and calculation method, which is applied in the field of distance calculation, can solve the problems of untimely response, limited real-time data feedback, low efficiency, etc., and achieve the effects of timely response, improved user experience, and high efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] Such as figure 1 As shown, this embodiment provides a distance calculation method based on area division, which is applied to the server, and the server is connected to the client. The method includes:
[0033] Step S101: Obtain the coordinates of the boundary position points of the specific area, and obtain the first result.
[0034] In the actual implementation process, the specific area is a rectangular area, and when the area where the solid is located is an irregular area, the area of the edge is divided to form a rectangular area. Step S101 specifically includes: obtaining the coordinates of the four corner points of the rectangular area, and the first result includes the coordinates of the four corner points.
[0035] As an example, the four corner points of a rectangular area are as follows:
[0036] Corner 1: Latitude Longitude - (39.92300,116.15120)
Embodiment 2
[0182] Based on the same inventive concept as a distance calculation method based on area division in the foregoing embodiments, as figure 2 As shown, this embodiment provides a distance calculation device based on area division, which is applied to a server, and the server is connected to a client. The device includes:
[0183] The first acquiring unit 201 is configured to acquire the coordinates of the boundary position points of the specific area to obtain the first result;
[0184] A dividing unit 202, configured to divide the specific area according to the first result and the target preset unit to obtain a second result, the second result being an area including a plurality of sub-areas;
[0185] The first determination unit 203 is configured to determine the coordinates of the area center position of each sub-area to obtain a third result;
[0186] The second acquiring unit 204 is configured to acquire the distance from the area center position of each sub-area to eac...
Embodiment 3
[0212] Based on the same inventive concept as a distance calculation method based on area division in the foregoing embodiments, as image 3 As shown, the present embodiment provides an electronic device 300, including: a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and operable on the processor 320. When the processor 320 executes the program 311, it can realize The method steps are as follows:
[0213] Obtain the coordinates of the boundary position points of the specific area to obtain the first result; based on the first result and the target preset unit, divide the specific area into an area to obtain the second result, the second result is an area including multiple sub-areas; determine each The coordinates of the area center positions of each sub-area to obtain the third result; based on the third result, obtain the distance from the area center position of each sub-area to each preset target point to obtain the fourth result; obtain ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


