CN109857823A - Map point of interest acquisition methods, device, computer equipment and storage medium - Google Patents

Map point of interest acquisition methods, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109857823A
CN109857823A CN201910008116.2A CN201910008116A CN109857823A CN 109857823 A CN109857823 A CN 109857823A CN 201910008116 A CN201910008116 A CN 201910008116A CN 109857823 A CN109857823 A CN 109857823A
Authority
CN
China
Prior art keywords
map
interest
matrix
point
map matrix
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.)
Pending
Application number
CN201910008116.2A
Other languages
Chinese (zh)
Inventor
贾克尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910008116.2A priority Critical patent/CN109857823A/en
Publication of CN109857823A publication Critical patent/CN109857823A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention provides a kind of map point of interest acquisition methods, device, computer equipment and storage mediums.This method is applied to data and crawls technical field, mainly includes generating map matrix according to preset origin coordinates and preset end coordinate;Judge whether the corresponding map point of interest quantity of the map matrix is less than preset amount threshold;If the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, cutting is carried out to the map matrix, the step of whether corresponding map point of interest quantity of the map matrix is less than preset amount threshold judged to generate multiple map matrixes, and continue to execute;If the corresponding map point of interest quantity of the map matrix is less than the preset amount threshold, the corresponding map point of interest of the map matrix is stored to local file.Implement the embodiment of the present invention, is conducive to the operation for simplifying map point of interest, promotes the acquisition efficiency of map point of interest.

Description

Map point of interest acquisition methods, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer data processing more particularly to a kind of map point of interest acquisition methods, device, calculating Machine equipment and computer readable storage medium.
Background technique
With the continuous development of computer technology, electronic map is gradually popularized in people's daily life and is answered extensively With.Map point of interest (POI, Point of Interest) is the important component in electronic map, be a house, One retail shop, a mailbox, a bus station etc..The acquisition of point of interest can be carried out by ground mapping personnel by special equipment It obtains, can also be directly acquired by way of invocation map data-interface on the spot.If passing through the side of invocation map data-interface Formula directly acquires map point of interest, and because of the limitation of third party's data-interface, the data volume returned every time is needed there are quantity limitation Constantly modification call parameters, it is not only cumbersome, but also inefficiency.
Summary of the invention
The embodiment of the invention provides a kind of map point of interest acquisition methods, device, computer equipment and storage medium, purports In solving map point of interest acquisition process the problems such as cumbersome, low efficiency.
In a first aspect, the embodiment of the invention provides a kind of map point of interest acquisition methods comprising: according to preset Beginning coordinate and preset end coordinate generate map matrix;Whether judge the corresponding map point of interest quantity of the map matrix Less than preset amount threshold;If the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, right The map matrix carries out cutting and judges that the corresponding map of the map matrix is emerging to generate multiple map matrixes, and continue to execute The step of whether interest point quantity is less than preset amount threshold;If the corresponding map point of interest quantity of the map matrix is less than institute Preset amount threshold is stated, the corresponding map point of interest of the map matrix is stored to local file.
Second aspect, the embodiment of the invention provides a kind of map point of interest acquisition device comprising:
First generation unit, for generating map matrix according to preset origin coordinates and preset end coordinate;
First judging unit, for judging whether the corresponding map point of interest quantity of the map matrix is less than preset number Measure threshold value;
Second generation unit, if being not less than preset quantity threshold for the corresponding map point of interest quantity of the map matrix Value carries out cutting to the map matrix and judges that the map matrix is corresponding to generate multiple map matrixes, and continue to execute The step of whether map point of interest quantity is less than preset amount threshold;
Storage element, if being less than the preset quantity threshold for the corresponding map point of interest quantity of the map matrix Value, the corresponding map point of interest of the map matrix is stored to local file.
The third aspect, the embodiment of the present invention provide a kind of computer equipment again comprising memory, processor and storage On the memory and the computer program that can run on the processor, wherein the processor executes described program The above-mentioned map point of interest acquisition methods of Shi Shixian.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, wherein the computer can It reads storage medium and is stored with computer program, it is above-mentioned that the computer program when being executed by a processor executes the processor Map point of interest acquisition methods.
The embodiment of the present invention provides a kind of map point of interest acquisition methods, device, computer equipment and computer-readable deposits Storage media.This method includes generating map matrix according to preset origin coordinates and preset end coordinate;Judge describedly Whether the corresponding map point of interest quantity of figure matrix is less than preset amount threshold;If the corresponding map interest of the map matrix Point quantity is not less than preset amount threshold, carries out cutting to the map matrix to generate multiple map matrixes, and continue to hold Row judges the step of whether corresponding map point of interest quantity of the map matrix is less than preset amount threshold;If the map The corresponding map point of interest quantity of matrix is less than the preset amount threshold, by the corresponding map point of interest of the map matrix It stores to local file.Implement the embodiment of the present invention, is conducive to the operation for simplifying map point of interest, promotes obtaining for map point of interest Take efficiency.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram for map point of interest acquisition methods that one embodiment of the invention provides;
Fig. 2 is a kind of flow diagram for map point of interest acquisition methods that one embodiment of the invention provides;
Fig. 3 is a kind of flow diagram for map point of interest acquisition methods that one embodiment of the invention provides;
Fig. 4 is a kind of flow diagram for map point of interest acquisition methods that one embodiment of the invention provides;
Fig. 5 is a kind of flow diagram for map point of interest acquisition methods that one embodiment of the invention provides;
Fig. 6 is a kind of schematic block diagram for map point of interest acquisition device that one embodiment of the invention provides;
Fig. 7 is a kind of another schematic block diagram for map point of interest acquisition device that one embodiment of the invention provides;
Fig. 8 is a kind of another schematic block diagram for map point of interest acquisition device that one embodiment of the invention provides;
Fig. 9 is a kind of another schematic block diagram for map point of interest acquisition device that one embodiment of the invention provides;
Figure 10 is a kind of another schematic block diagram for map point of interest acquisition device that one embodiment of the invention provides;
Figure 11 is a kind of schematic block diagram for computer equipment that one embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more other spies are not precluded Sign, entirety, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
Fig. 1 is please referred to, for a kind of flow diagram for map point of interest acquisition methods that one embodiment of the invention provides. The map point of interest acquisition methods are applied to terminal, and terminal can be smart phone, tablet computer, laptop, desktop Brain, personal digital assistant and wearable device etc. have the electronic equipment of communication function.
Wherein, which includes but is not limited to step S110-S140.
S110 generates map matrix according to preset origin coordinates and preset end coordinate.
Specifically, by using preset origin coordinates and preset end coordinate as diagonal line in map matrix Two endpoints, with formation zone range, and to the regional scope carry out cutting to generate map matrix.For example, by preset Origin coordinates is as map matrix lower-left angular coordinate, using preset end coordinate as map matrix upper right angular coordinate.
In some embodiments, as shown in Fig. 2, step S110 includes step S111-S113.
S111 determines regional scope according to preset origin coordinates and preset end coordinate.
Specifically, preset origin coordinates and preset end coordinate are inputted according to user demand.According to default Origin coordinates and preset end determined by the shape of regional scope can be round, rectangle order.For example, region model It encloses for rectangle, then regional scope is determined according to preset origin coordinates and preset end coordinate specifically: by preset Lower left corner endpoint of the beginning coordinate as regional scope, and using preset end coordinate as the upper right corner endpoint of regional scope; It can determine unique regional scope according to lower left corner endpoint and upper right corner endpoint.
To prevent the map matrix directly generated according to preset origin coordinates and preset end coordinate from being covered Map area is excessive, and then the problem for causing the cutting number for subsequent to map matrix occur excessive, can be according to preset starting Coordinate and preset end coordinate determine regional scope.
S112 obtains the corresponding area type of the regional scope, and determines coordinate granularity according to the area type.
Specifically, area type can be set according to actual needs, such as area type includes coastal region and interior Land region, coastal region can be distinguished with inland area by pre-set line of demarcation.Each area type corresponds to Unique coordinate granularity, such as coastal region correspond to coastal coordinate granularity, and inland area corresponds to inland coordinate granularity.Its In, coastal coordinate granularity is less than inland coordinate granularity.Coordinate granularity is smaller, shows that the coordinate granularity is finer, according to the coordinate The quantity that granularity carries out the map matrix that cutting is obtained to regional scope is more.
S113 carries out cutting to the regional scope according to the coordinate granularity to generate map matrix.
Specifically, if the regional scope that regional scope is covered only exists an area type, directly according to the region class The corresponding coordinate granularity of type carries out cutting to the regional scope to generate map matrix.
If there are at least two area types for the regional scope that regional scope is covered, by comparing different zones type Corresponding coordinate granularity is to determine the maximum area type of coordinate granularity, and according to the seat of the maximum area type of coordinate granularity It marks granularity and cutting is carried out to generate map matrix to the regional scope.
S120, judges whether the corresponding map point of interest quantity of the map matrix is less than preset amount threshold.
Specifically, the corresponding map point of interest of the map matrix and the corresponding map interest of the map matrix are obtained Point quantity can be realized by invocation map data-interface.For example, by by map matrix lower-left angular coordinate and the upper right corner Coordinate receives the interface data of map datum interface return as input parameter invocation map data-interface to obtain and the ground The corresponding map point of interest of figure matrix.Wherein, the interface data that map datum interface returns includes the corresponding map of input parameter Point of interest and map point of interest quantity.
Because map point of interest corresponding with the map matrix acquired in each invocation map data-interface has quantity The upper limit by using the upper limit of the number as preset amount threshold, and judges the corresponding map interest point of the map matrix Whether amount is less than preset amount threshold.For example, passing through the map interest point for calling a map datum interface that can return Measuring the upper limit is 500, then preset amount threshold is set as 500.
S130, if the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, to describedly Figure matrix carries out cutting and judges the corresponding map interest point of the map matrix to generate multiple map matrixes, and continue to execute The step of whether amount is less than preset amount threshold.
Specifically, if the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, show institute Omission may be had because its quantity is greater than the upper limit of the number by obtaining map point of interest, i.e., the corresponding map interest of described map matrix It puts and has not been obtained completely, and then cutting is carried out to generate multiple map matrixes to the map matrix, and continue to execute and judge institute The step of whether corresponding map point of interest quantity of map matrix is less than preset amount threshold stated.
In some embodiments, as shown in figure 3, step S130 includes step S131-S132.
S131, if the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, described in calculating Quantity multiple between the corresponding map point of interest quantity of map matrix and the preset amount threshold.
Specifically, the interface data that map datum interface returns includes the corresponding map point of interest of input parameter and map Point of interest quantity.The corresponding map point of interest of the map matrix is extracted according to the interface data that the map datum interface is returned Quantity.For example, the quantity of the corresponding map point of interest quantity of the map matrix is 1800, and preset amount threshold is 500 A, then the quantity multiple between the corresponding map point of interest quantity of the map matrix and the preset amount threshold is 3.6.
The quantity multiple is carried out rounding processing by S132, and according to the quantity multiple that is rounded that treated to the map Matrix carries out impartial cutting, to generate multiple map matrixes.
Specifically, the quantity multiple is carried out by rounding processing according to the rule to round up, if the quantity multiple is 3.6, then it is 4 by being rounded treated quantity multiple.According to being rounded, treated that quantity multiple carries out the map matrix The map matrix equalization cutting is four parts by impartial cutting, that is, generates four map matrixes.
S140 will be described if the corresponding map point of interest quantity of the map matrix is less than the preset amount threshold The corresponding map point of interest of map matrix is stored to local file.
Specifically, if the corresponding map point of interest quantity of the map matrix is less than preset amount threshold, show basis The obtained map point of interest quantity of map matrix invocation map data-interface is there is no omitting, and then by the map matrix Corresponding map point of interest is stored to local file.
In some embodiments, as shown in figure 4, step S140 includes step S141-S142.
S141 judges describedly if the corresponding map point of interest quantity of the map matrix is less than preset amount threshold Whether the quantity for the administrative region that the corresponding map point of interest of figure matrix is belonged to is equal to one.
Specifically, each map point of interest includes at least following information: title, classification, coordinate, classification.By by institute State the corresponding coordinate of the corresponding map point of interest of map matrix coordinate set corresponding with administrative region compare can determine whether it is described Whether the quantity for the administrative region that the corresponding map point of interest of map matrix is belonged to is equal to one.Wherein, the administrative region Rank can be set according to actual needs, such as the rank of the administrative region may be set to city-level.
S142, if the quantity for the administrative region that the corresponding map point of interest of the map matrix is belonged to is equal to one, root Local file is created according to the corresponding zone name in the administrative region, and the corresponding map point of interest of the map matrix is stored To the local file.
Specifically, it is assumed that the corresponding all map points of interest of the map matrix belong to Shenzhen, it is determined that describedly The quantity for the administrative region that the corresponding map point of interest of figure matrix is belonged to is equal to one, and then using Shenzhen as local file File name, and the corresponding map point of interest of the map matrix is stored to the local file.
In some embodiments, as shown in figure 5, further including step S143-S144 after step S141.
S143, if the administrative region that the corresponding map point of interest of the map matrix is belonged to is not equal to one, according to institute It states the corresponding zone name in administrative region and creates multiple local files, and according to the corresponding Administrative boundaries pair in the administrative region The map matrix is split processing, to obtain the map matrix after dividing processing.
Specifically, the administrative region that the corresponding map point of interest of the map matrix is belonged to is more than or equal to one, The administrative region that the corresponding map point of interest of the map matrix is belonged to shows the map matrix correspondingly not equal to one The administrative region at least two that figure point of interest is belonged to, for convenience of the management of to map point of interest, and then according to the administration The corresponding Administrative boundaries in region are split processing to the map matrix, are carried out with realizing according to Administrative boundaries to map matrix Segmentation.
For example, the corresponding all map point of interest a part of the map matrix belong to Shenzhen, another part is belonged to Dongguan City then creates multiple local files according to the corresponding zone name in the administrative region, that is, the multiple local texts created Part title is respectively " Dongguan City ", " Shenzhen ".
Since the administrative region that the corresponding map point of interest of the map matrix is belonged to is not equal to one, and then according to institute It states the corresponding Administrative boundaries in administrative region and processing is split to the map matrix, to obtain the map square after dividing processing Battle array.For example, the map matrix is split according to Shenzhen and the administrative region boundary of Dongguan City, to obtain dividing processing Map matrix afterwards.
S144, it is corresponding according to the map matrix after the corresponding zone name of the local file and the dividing processing The administrative region that map point of interest is belonged to, by map point of interest corresponding to the map matrix after the segmentation store respectively to The multiple local file.
Specifically, the corresponding zone name of the local file is the file name of the local file.The segmentation portion The corresponding map point of interest of map matrix after reason has the administrative region uniquely belonged to.Assuming that multiple local file titles point It Wei not " Dongguan City ", " Shenzhen " etc.;The row that the corresponding map point of interest of map matrix after the dividing processing is belonged to Administrative division domain is Shenzhen, then it is " deep for saving the corresponding map point of interest of map matrix after the dividing processing to file name The local file of Zhen Shi ".Map point of interest preserving type of other administrative regions and so on, will be after the segmentation with realization Map point of interest corresponding to map matrix is stored respectively to the multiple local file.
Fig. 6 is a kind of schematic block diagram of map point of interest acquisition device 100 provided in an embodiment of the present invention.Such as Fig. 6 institute Show, corresponds to the above map point of interest acquisition methods, the present invention also provides a kind of map point of interest acquisition device 100.The map Point of interest acquisition device 100 includes the unit for executing above-mentioned map point of interest acquisition methods, which can be configured in Terminal, terminal can be smart phone, tablet computer, laptop, desktop computer, personal digital assistant and wearable device Deng the electronic equipment with communication function.
Specifically, referring to Fig. 6, the map point of interest acquisition device 100 judges including the first generation unit 110, first Unit 120, the second generation unit 130 and storage element 140.
First generation unit 110, for generating map matrix according to preset origin coordinates and preset end coordinate.
In some embodiments, as shown in fig. 7, first generation unit 110 includes determination unit 111, acquiring unit 112 and third generation unit 113.
Determination unit 111, for determining regional scope according to preset origin coordinates and preset end coordinate.
Acquiring unit 112 is determined for obtaining the corresponding area type of the regional scope, and according to the area type Coordinate granularity.
Third generation unit 113, for carrying out cutting to the regional scope according to the coordinate granularity to generate map Matrix.
First judging unit 120, for judging it is default whether the corresponding map point of interest quantity of the map matrix is less than Amount threshold.
Second generation unit 130, if being not less than preset number for the corresponding map point of interest quantity of the map matrix Threshold value is measured, cutting is carried out to generate multiple map matrixes to the map matrix, and continue to execute the first judging unit 120.
In some embodiments, as shown in figure 8, second generation unit 130 includes that computing unit 131 and the 4th are raw At unit 132.
Computing unit 131, if being not less than preset quantity threshold for the corresponding map point of interest quantity of the map matrix Value, calculates the quantity multiple between the corresponding map point of interest quantity of the map matrix and the preset amount threshold.
4th generation unit 132, for the quantity multiple to be carried out rounding processing, and according to the quantity that is rounded that treated Multiple carries out impartial cutting to the map matrix, to generate multiple map matrixes, and continues to execute the first judging unit 120.
Storage element 140, if being less than the preset quantity for the corresponding map point of interest quantity of the map matrix Threshold value stores the corresponding map point of interest of the map matrix to local file.
In some embodiments, as shown in figure 9, the storage element 140 includes at second judgment unit 141 and first Manage unit 142.
Second judgment unit 141, if being less than preset quantity for the corresponding map point of interest quantity of the map matrix Threshold value, judges whether the quantity for the administrative region that the corresponding map point of interest of the map matrix is belonged to is equal to one.
First processing units 142, if the administrative region belonged to for the corresponding map point of interest of the map matrix Quantity is equal to one, creates local file according to the corresponding zone name in the administrative region, and the map matrix is corresponding Map point of interest store to the local file.
In some embodiments, as shown in Figure 10, the storage element 140 further includes the second processing unit 143 and Three processing units 144.
The second processing unit 143, if the administrative region belonged to for the corresponding map point of interest of the map matrix is not Equal to one, multiple local files are created according to the corresponding zone name in the administrative region, and according to the administrative region Corresponding Administrative boundaries are split processing to the map matrix, to obtain the map matrix after dividing processing;
The second processing unit 144, after according to the corresponding zone name of the local file and the dividing processing The administrative region that is belonged to of the corresponding map point of interest of map matrix, by map corresponding to the map matrix after the segmentation Point of interest is stored respectively to the multiple local file.
It should be noted that it is apparent to those skilled in the art that, above-mentioned map point of interest obtains dress The specific implementation process of 100 and each unit is set, it can be with reference to the corresponding description in preceding method embodiment, for convenience of description With it is succinct, details are not described herein.
Above-mentioned apparatus 100 can be implemented as a kind of form of computer program, and computer program can be as shown in figure 11 Computer equipment on run.
Figure 11 is please referred to, Figure 11 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.The calculating Machine equipment 500 can be terminal.The terminal can be smart phone, tablet computer, laptop, desktop computer, a number Word assistant and wearable device etc. have the electronic equipment of communication function.
The computer equipment 500 includes processor 520, memory and the network interface connected by system bus 510 550, wherein memory may include non-volatile memory medium 530 and built-in storage 540.
The non-volatile memory medium 530 can storage program area 531 and computer program 532.The computer program 532 It is performed, processor 520 may make to execute a kind of map point of interest acquisition methods.
The processor 520 supports the operation of entire computer equipment 500 for providing calculating and control ability.
The built-in storage 540 provides environment for the operation of the computer program in non-volatile memory medium, the computer When program is executed by processor 520, processor 520 may make to execute a kind of map point of interest acquisition methods.
The network interface 550 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that the calculating The schematic block diagram of machine equipment is only the block diagram of part-structure relevant to the present invention program, is not constituted to the present invention program The restriction for the computer equipment 500 being applied thereon, specific computer equipment 500 may include than as shown in the figure more or Less component perhaps combines certain components or with different component layouts.
Wherein, the processor 520 is for running computer program stored in memory, to implement function such as: Map matrix is generated according to preset origin coordinates and preset end coordinate;Judge that the corresponding map of the map matrix is emerging Whether interest point quantity is less than preset amount threshold;If the corresponding map point of interest quantity of the map matrix is not less than preset Amount threshold carries out cutting to the map matrix and judges the map matrix to generate multiple map matrixes, and continue to execute The step of whether corresponding map point of interest quantity is less than preset amount threshold;If the corresponding map interest of the map matrix Point quantity is less than the preset amount threshold, and the corresponding map point of interest of the map matrix is stored to local file.
In one embodiment, processor 520 execute it is described according to preset origin coordinates and preset end coordinate When generating the step of map matrix, following steps are specifically executed: true according to preset origin coordinates and preset end coordinate Determine regional scope;The corresponding area type of the regional scope is obtained, and coordinate granularity is determined according to the area type;According to The coordinate granularity carries out cutting to the regional scope to generate map matrix.
In one embodiment, if processor 520 is executing the corresponding map point of interest quantity of the map matrix not Less than preset amount threshold, cutting is carried out to generate multiple map matrixes to the map matrix, and continue to execute and judge institute It is specific to execute following step when stating the corresponding map point of interest quantity of map matrix and whether being less than the step of preset amount threshold It is rapid: if the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, to calculate the map matrix pair The quantity multiple between map point of interest quantity and the preset amount threshold answered;The quantity multiple is carried out at rounding Reason, and impartial cutting is carried out to the map matrix according to treated quantity multiple is rounded, to generate multiple map matrixes.
In one embodiment, if processor 520 is small in the corresponding map point of interest quantity of the execution map matrix In the preset amount threshold, when the corresponding map point of interest of the map matrix is stored to the step of local file, tool Body executes following steps: if the corresponding map point of interest quantity of the map matrix is less than preset amount threshold, described in judgement Whether the quantity for the administrative region that the corresponding map point of interest of map matrix is belonged to is equal to one;If the map matrix is corresponding The quantity of administrative region that is belonged to of map point of interest be equal to one, created according to the corresponding zone name in the administrative region Local file, and the corresponding map point of interest of the map matrix is stored to the local file.
In one embodiment, if processor 520 is small in the corresponding map point of interest quantity of the execution map matrix In preset amount threshold, judge the administrative region that the corresponding map point of interest of the map matrix is belonged to quantity whether etc. After one step, following steps are specifically executed: if the administration that the corresponding map point of interest of the map matrix is belonged to Region is not equal to one, creates multiple local files according to the corresponding zone name in the administrative region, and according to the row The corresponding Administrative boundaries in administrative division domain are split processing to the map matrix, to obtain the map matrix after dividing processing;Root Returned according to the corresponding map point of interest of map matrix after the corresponding zone name of the local file and the dividing processing The administrative region of category stores map point of interest corresponding to the map matrix after the segmentation respectively to the multiple local text Part.
It should be appreciated that in embodiments of the present invention, processor 520 can be central first processing units (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
It will be understood by those skilled in the art that the schematic block diagram of the computer equipment 500 is not constituted and is set to computer Standby 500 restriction may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
A kind of computer readable storage medium is provided in another embodiment of the invention, the computer readable storage medium It is stored with computer program.The computer program realizes following steps when being executed by processor: according to preset origin coordinates And preset end coordinate generates map matrix;It is pre- to judge whether the corresponding map point of interest quantity of the map matrix is less than If amount threshold;If the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, to describedly Figure matrix carries out cutting and judges the corresponding map interest point of the map matrix to generate multiple map matrixes, and continue to execute The step of whether amount is less than preset amount threshold;If the corresponding map point of interest quantity of the map matrix is less than described default Amount threshold, the corresponding map point of interest of the map matrix is stored to local file.
In one embodiment, the computer program be executed by processor with realize it is described according to preset origin coordinates with And preset end coordinate is implemented as follows step when generating the step of map matrix: according to preset origin coordinates and Preset end coordinate determines regional scope;The corresponding area type of the regional scope is obtained, and according to the area type Determine coordinate granularity;Cutting is carried out to generate map matrix to the regional scope according to the coordinate granularity.
In one embodiment, if the computer program is executed by processor to realize that the map matrix is corresponding Map point of interest quantity is not less than preset amount threshold, to map matrix progress cutting to generate multiple map matrixes, And continue to execute when judging whether the corresponding map point of interest quantity of the map matrix is less than the step of preset amount threshold, It is implemented as follows step: if the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, calculating Quantity multiple between the corresponding map point of interest quantity of map matrix and the preset amount threshold;By the quantity Multiple carries out rounding processing, and quantity multiple carries out impartial cutting to the map matrix according to being rounded that treated, to generate Multiple map matrixes.
In one embodiment, if the computer program is executed by processor to realize that the map matrix is corresponding Map point of interest quantity is less than the preset amount threshold, and the corresponding map point of interest of the map matrix is stored to local When the step of file, it is implemented as follows step: if the corresponding map point of interest quantity of the map matrix is less than preset number Threshold value is measured, judges whether the quantity for the administrative region that the corresponding map point of interest of the map matrix is belonged to is equal to one;If The quantity for the administrative region that the corresponding map point of interest of the map matrix is belonged to is equal to one, according to the administrative region pair The zone name creation local file answered, and the corresponding map point of interest of the map matrix is stored to the local file.
In one embodiment, if the computer program is executed by processor to realize that the map matrix is corresponding Map point of interest quantity is less than preset amount threshold, judges the administration that the corresponding map point of interest of the map matrix is belonged to Whether the quantity in region is equal to after one step, is implemented as follows step: if the corresponding map of the map matrix is emerging Interest puts belonged to administrative region and is not equal to one, according to the multiple local texts of the corresponding zone name creation in the administrative region Part, and processing is split to the map matrix according to the corresponding Administrative boundaries in the administrative region, to obtain segmentation portion Map matrix after reason;It is corresponding according to the map matrix after the corresponding zone name of the local file and the dividing processing The administrative region that is belonged to of map point of interest, map point of interest corresponding to the map matrix after the segmentation is stored respectively To the multiple local file.
The computer readable storage medium can be USB flash disk, mobile hard disk, read-only memory (ROM, Read- OnlyMemory), the various media that can store computer program such as magnetic or disk.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.It is apparent to those skilled in the art that for convenience of description and simple Clean, the device of foregoing description and the specific work process of unit can refer to corresponding processes in the foregoing method embodiment, herein It repeats no more.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as more than one unit or assembly can To combine or be desirably integrated into another system, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment device can be combined, divided and deleted according to actual needs.
In addition, each functional unit in each embodiment of the present invention can integrate in a first processing units, It can be each unit to physically exist alone, be also possible to two or more units and be integrated in one unit.Above-mentioned collection At unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set Standby (can be personal computer, terminal or the network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of map point of interest acquisition methods, which is characterized in that the described method includes:
Map matrix is generated according to preset origin coordinates and preset end coordinate;
Judge whether the corresponding map point of interest quantity of the map matrix is less than preset amount threshold;
If the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, the map matrix is carried out Cutting judges whether the corresponding map point of interest quantity of the map matrix is less than to generate multiple map matrixes, and continue to execute The step of preset amount threshold;
If the corresponding map point of interest quantity of the map matrix is less than the preset amount threshold, by the map matrix pair The map point of interest answered is stored to local file.
2. the method as described in claim 1, which is characterized in that described to be sat according to preset origin coordinates and preset end Mark generates map matrix, comprising:
Regional scope is determined according to preset origin coordinates and preset end coordinate;
The corresponding area type of the regional scope is obtained, and coordinate granularity is determined according to the area type;
Cutting is carried out to generate map matrix to the regional scope according to the coordinate granularity.
3. the method as described in claim 1, which is characterized in that if the corresponding map point of interest quantity of the map matrix Not less than preset amount threshold, cutting is carried out to generate multiple map matrixes to the map matrix, and continue to execute judgement The step of whether corresponding map point of interest quantity of the map matrix is less than preset amount threshold, comprising:
If the corresponding map point of interest quantity of the map matrix is not less than preset amount threshold, the map matrix pair is calculated The quantity multiple between map point of interest quantity and the preset amount threshold answered;
The quantity multiple is subjected to rounding processing, and according to the quantity multiple that is rounded that treated the map matrix is carried out equal Equal cuttings, to generate multiple map matrixes, and continue to execute and whether judge the corresponding map point of interest quantity of the map matrix The step of less than preset amount threshold.
4. the method as described in claim 1, which is characterized in that if the corresponding map point of interest quantity of the map matrix Less than the preset amount threshold, the corresponding map point of interest of the map matrix is stored to local file, comprising:
If the corresponding map point of interest quantity of the map matrix is less than preset amount threshold, judge that the map matrix is corresponding The quantity of administrative region that is belonged to of map point of interest whether be equal to one;
If the quantity for the administrative region that the corresponding map point of interest of the map matrix is belonged to is equal to one, according to the administration The corresponding zone name in region creates local file, and the corresponding map point of interest of the map matrix is stored to the local File.
5. method as claimed in claim 4, which is characterized in that if the corresponding map point of interest quantity of the map matrix Less than preset amount threshold, judge the administrative region that the corresponding map point of interest of the map matrix is belonged to quantity whether After one, further includes:
If the administrative region that the corresponding map point of interest of the map matrix is belonged to is not equal to one, according to the administrative region Corresponding zone name creates multiple local files, and according to the corresponding Administrative boundaries in the administrative region to the map square Battle array is split processing, to obtain the map matrix after dividing processing;
According to the corresponding map interest of map matrix after the corresponding zone name of the local file and the dividing processing The belonged to administrative region of point, map point of interest corresponding to the map matrix after the segmentation is stored respectively to the multiple Local file.
6. a kind of map point of interest acquisition device, which is characterized in that described device includes:
First generation unit, for generating map matrix according to preset origin coordinates and preset end coordinate;
First judging unit, for judging whether the corresponding map point of interest quantity of the map matrix is less than preset quantity threshold Value;
Second generation unit, if being not less than preset amount threshold for the corresponding map point of interest quantity of the map matrix, Cutting is carried out to the map matrix and judges the corresponding map of the map matrix to generate multiple map matrixes, and continue to execute The step of whether point of interest quantity is less than preset amount threshold;
Storage element will if being less than the preset amount threshold for the corresponding map point of interest quantity of the map matrix The corresponding map point of interest of the map matrix is stored to local file.
7. device as claimed in claim 6, which is characterized in that first generation unit includes:
Determination unit, for determining regional scope according to preset origin coordinates and preset end coordinate;
Acquiring unit determines coordinate grain for obtaining the corresponding area type of the regional scope, and according to the area type Degree;
Third generation unit, for carrying out cutting to the regional scope according to the coordinate granularity to generate map matrix.
8. device as claimed in claim 6, which is characterized in that second generation unit includes:
Computing unit calculates if being not less than preset amount threshold for the corresponding map point of interest quantity of the map matrix Quantity multiple between the corresponding map point of interest quantity of map matrix and the preset amount threshold;
4th generation unit, for the quantity multiple to be carried out rounding processing, and according to the quantity multiple pair that is rounded that treated The map matrix carries out impartial cutting, judges that the map matrix is corresponding to generate multiple map matrixes, and continue to execute The step of whether map point of interest quantity is less than preset amount threshold.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor is realized when executing described program as any in claim 1 to 5 The map point of interest acquisition methods of item.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program execute the processor as described in any one in claim 1-5ly Figure point of interest acquisition methods.
CN201910008116.2A 2019-01-04 2019-01-04 Map point of interest acquisition methods, device, computer equipment and storage medium Pending CN109857823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910008116.2A CN109857823A (en) 2019-01-04 2019-01-04 Map point of interest acquisition methods, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910008116.2A CN109857823A (en) 2019-01-04 2019-01-04 Map point of interest acquisition methods, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109857823A true CN109857823A (en) 2019-06-07

Family

ID=66893870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910008116.2A Pending CN109857823A (en) 2019-01-04 2019-01-04 Map point of interest acquisition methods, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109857823A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112257970A (en) * 2019-07-22 2021-01-22 山东科技大学 Automatic city functional area dividing method based on interest point big data
CN113536153A (en) * 2021-06-30 2021-10-22 北京达佳互联信息技术有限公司 Interest point acquisition method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426022A (en) * 2010-08-18 2012-04-25 哈曼贝克自动系统股份有限公司 System for displaying points of interest
CN103279539A (en) * 2013-06-04 2013-09-04 百度在线网络技术(北京)有限公司 Interest point set displaying method, electronic map displaying method, interest point set displaying device and electronic map displaying device
CN104850649A (en) * 2015-05-29 2015-08-19 苏州大学张家港工业技术研究院 Method and system for sampling points of interest on map
CN108268504A (en) * 2016-12-31 2018-07-10 中国移动通信集团陕西有限公司 A kind of method and apparatus for the region of search for dividing point of interest

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426022A (en) * 2010-08-18 2012-04-25 哈曼贝克自动系统股份有限公司 System for displaying points of interest
CN103279539A (en) * 2013-06-04 2013-09-04 百度在线网络技术(北京)有限公司 Interest point set displaying method, electronic map displaying method, interest point set displaying device and electronic map displaying device
CN104850649A (en) * 2015-05-29 2015-08-19 苏州大学张家港工业技术研究院 Method and system for sampling points of interest on map
CN108268504A (en) * 2016-12-31 2018-07-10 中国移动通信集团陕西有限公司 A kind of method and apparatus for the region of search for dividing point of interest

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112257970A (en) * 2019-07-22 2021-01-22 山东科技大学 Automatic city functional area dividing method based on interest point big data
CN113536153A (en) * 2021-06-30 2021-10-22 北京达佳互联信息技术有限公司 Interest point acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11023534B2 (en) Classification method and a classification device for service data
CN109409902A (en) Risk subscribers recognition methods, device, computer equipment and storage medium
CN108805859A (en) A kind of image detecting method, image detection device and terminal device
CN109961064A (en) Identity card text positioning method, device, computer equipment and storage medium
CN109857823A (en) Map point of interest acquisition methods, device, computer equipment and storage medium
CN104932966A (en) Method and device for detecting false downloading times of application software
CN108814618A (en) A kind of recognition methods of motion state, device and terminal device
CN106980538A (en) The method and device of data processing
CN109858528A (en) Recommender system training method, device, computer equipment and storage medium
CN108734304A (en) A kind of training method of data model, device and computer equipment
CN109285154A (en) A kind of method and device detecting the stone age
CN108345483A (en) A kind of reminding method of notification message, terminal and computer readable storage medium
CN106777086A (en) A kind of webpage buries dynamic management approach and device a little
CN109447689A (en) Consumer's risk portrait generation method, device, equipment and readable storage medium storing program for executing
CN106873857A (en) A kind of application icon autoplacement method and device
CN109324796A (en) Quick interface arrangement method and device
CN110415285A (en) Image processing method, device and electronic equipment
CN106910180B (en) A kind of image quality measure method and device
CN106371614A (en) Gesture recognition optimizing method and device
CN108596052A (en) A kind of articles seeking method, system and terminal device
CN106802750A (en) Realize the exchange method and device of data processing
CN109949897A (en) Display methods, device and the terminal device of monitoring curve
JP2013228701A (en) Map mesh data generation system and mesh data generation method
CN108280154A (en) A kind of map label information displaying method, device, terminal and readable storage medium storing program for executing
CN109829000B (en) Consistency processing method and device for river annual runoff data

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