Method and device for displaying associated annotation points on electronic map interface
The application is a divisional application of the invention application with the application number of 201310217909.8, the application date of 2013, 6 and 3 months, and the invention name of 'method and device for displaying associated annotation points on an electronic map interface'.
Technical Field
The invention relates to the field of internet, in particular to a method and a device for displaying associated annotation points on an electronic map interface.
Background
Currently, electronic maps have been able to provide a POI (Point of Interest) search function for users. When a user searches POI through the electronic map, the electronic map client displays each POI obtained through searching on a corresponding position of an electronic map interface in a marking point mode. In the electronic map, one POI may be one bank, one shop, one school, one bus station, and the like.
After the annotation points are displayed on the map interface, the user can find the specific position of the POI to be searched in the displayed annotation points. And when the user moves the cursor to a certain marking point, the marking point can be lightened, so that the user can know the currently selected POI conveniently.
For example, when a keyword searched by a certain user in an electronic map is "bank", the client displays all POIs (such as an industrial and commercial bank, a construction bank, a civil bank, and the like) related to the "bank" in a search area to the user in the form of marked points on the map interface. Wherein each annotation point represents a separate meaning, i.e., each annotation point represents a banking location. When the user moves the cursor to a certain mark point, the mark point is lighted up and displays information such as the identified bank name (for example, the business bank knows the branch of the spring road in china), and the specific reference can be made to the schematic view of lighting up the mark point on the electronic map interface shown in fig. 1. As shown in fig. 1, if a user wants to check a bank (e.g., a business bank) whose periphery is the same as the type of the banking facility, the user needs to click the annotation points one by one to know the bank identified by each annotation point.
In summary, in the prior art, when a user wants to search POIs of the same facility type on an electronic map interface, the user needs to click each of the plurality of label points one by one to search the POIs of the same facility type, so that the searching efficiency of the user is low, and the user experience is poor.
Disclosure of Invention
In view of the above, the present invention provides a method and apparatus for displaying associated annotation points on an electronic map interface, so as to overcome or at least partially solve the above problems.
According to one aspect of the invention, a method for displaying associated annotation points on an electronic map interface is provided, and the method comprises the following steps:
determining the facility type of POI data identified by the marking point currently selected by the user;
in an adjustable area range of an electronic map interface, acquiring a POI association set formed by POI data of which the types are the same as the facility types corresponding to the marking points selected by a user;
and highlighting the marking points corresponding to the POI data in the POI association set on the electronic map interface.
Optionally, the type of the facility to which the POI data belongs is recorded in the POI information of the POI data by a facility type code;
correspondingly, the determining of the facility type to which the POI data identified by the annotation point selected by the current user belongs includes:
the method comprises the steps of obtaining POI information of POI data identified by a marking point currently selected by a user;
and searching the POI information for a facility type code, and determining the facility type to which the POI data selected by the user belongs.
Optionally, the method for acquiring a POI association set includes:
sending a facility type code of POI data at least comprising a marking point selected by a user and an area search request of marking point position information to a database, wherein the POI data which are the same as the facility type code of the POI data selected by the user in an adjustable area range taking the marking point position information as a center are searched in the database, and all the searched POI data form a POI association set;
and acquiring a POI association set returned from the database, wherein the POI association set comprises POI information.
Optionally, the adjustable region range includes a circular region with the position of the currently selected marking point of the user as the center and the adjustable distance as the radius.
Optionally, the manner of highlighting the annotation point at least includes any one of the following: zoom in, change color, change shape, change dynamic effects.
According to one aspect of the invention, an apparatus for displaying associated annotation points on an electronic map interface is provided, and the apparatus comprises:
a user input interface configured to receive an indication of a annotation point currently selected by a user;
the type determiner is configured to determine the facility type of the POI data identified by the marking point currently selected by the user according to the indication;
the set acquirer is configured to acquire a POI association set formed by POI data of which the types are the same as the facility types corresponding to the user-selected marking points in an adjustable area range of the electronic map interface;
and the annotation display is configured to highlight the annotation point corresponding to each POI data in the POI set on the electronic map interface.
Optionally, the type of the facility to which the POI data belongs is recorded in the POI information of the POI data by a facility type code;
the type determiner is further configured to acquire POI information of POI data identified by the marking point currently selected by the user; and
and searching the POI information for a facility type code, and determining the facility type to which the POI data selected by the user belongs.
Optionally, the set obtainer further includes:
the data transmission interface is configured to transmit a facility type code of POI data at least comprising a marking point selected by a user and an area search request of marking point position information to the database, wherein the POI data which are in an adjustable area range taking the marking point position information as a center and are the same as the facility type code of the POI data selected by the user are searched in the database, and the searched POI data form a POI association set;
and the data receiving interface is configured to acquire a POI association set returned from the database, wherein the POI association set comprises each POI information.
Optionally, the adjustable region range includes a circular region with the position of the currently selected marking point of the user as the center and the adjustable distance as the radius.
Optionally, the manner of highlighting the annotation point on the annotation display at least includes any one of the following:
zoom in, change color, change shape, change dynamic effects.
The invention provides a method and a device for displaying associated annotation points on an electronic map interface. According to the invention, when a user selects any one of the marking points on the map interface, the client can acquire the facility type of the POI data identified by the marking point, search the POI data with the same facility type as the POI data through the database, and further highlight the marking point identifying the POI data. Therefore, by the method and the device provided by the invention, the user can quickly and accurately directionally search the target POI through the marked points highlighted on the electronic map, the POI is conveniently searched by the user, the searching efficiency is improved, and the user experience is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram illustrating a highlight on an electronic map interface;
FIG. 2 illustrates a flow diagram of a method for displaying associated annotation points on an electronic map interface, in accordance with one embodiment of the present invention;
FIG. 3 illustrates a flow diagram of a method for displaying associated annotation points on an electronic map interface in accordance with another embodiment of the present invention;
FIG. 4 is a diagram illustrating the effect of highlighting the annotation point according to an embodiment of the present invention;
FIG. 5 illustrates a schematic diagram of a callout point before it is highlighted, according to one embodiment of the invention; and
FIG. 6 is a block diagram of an apparatus for displaying associated annotation points on an electronic map interface according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are illustrated in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
The embodiment of the invention provides a method for displaying associated annotation points on an electronic map interface. The method improves the client side supporting the display of the associated annotation points on the electronic map. For example, the client in this embodiment may be a user terminal device such as a PC (Personal Computer), a mobile phone, and a handheld Computer.
Fig. 2 is a flowchart illustrating a method for displaying an associated annotation point on an electronic map interface according to an embodiment of the present invention, which includes steps S202 to S206.
S202, determining the facility type of the POI data identified by the marking point currently selected by the user.
S204, in the adjustable area range of the electronic map interface, a POI association set formed by POI data of which the types are the same as the facility types corresponding to the marking points selected by the user is obtained.
And S206, highlighting the marking points corresponding to the POI data in the POI association set on the electronic map interface.
The embodiment of the invention provides a method for displaying associated annotation points on an electronic map interface. By the method, when a user selects any one of the marking points on the map interface, the client can acquire the facility type of the POI data identified by the marking point, search the POI data with the same facility type as the POI data through the database, and further highlight the marking point identifying the POI data. Therefore, by the method provided by the embodiment, the user can quickly and accurately directionally search the target POI through the marked points highlighted on the electronic map, the POI is conveniently searched by the user, the searching efficiency is improved, and the user experience is improved.
Example two
The embodiment is a specific application scenario of the first embodiment, and the method provided by the present invention can be more clearly and specifically explained through the embodiment.
Fig. 3 is a flowchart illustrating a method for displaying an associated annotation point on an electronic map interface according to an embodiment of the present invention. The method specifically includes steps S301 to 306.
S301, the client acquires the currently selected annotation point on the electronic map.
In this embodiment, on the electronic map on which the plurality of annotation points are displayed, the user may move the cursor to the annotation point to be selected, where the annotation point is the annotation point currently selected by the user and acquired by the client.
After acquiring the annotation point selected by the user, the client executes step S302, that is, acquires the facility type to which the POI data identified by the annotation point belongs.
It should be noted that, in this embodiment, the POI marked in the electronic map is a specific geographic location, and is represented by POI data (i.e., a name of the geographic location to which the POI points), for example, "beijing bank chun road branch," and "beijing medical university third hospital," etc.
Optionally, step S302 may be specifically implemented by the following method:
firstly, the client acquires POI information of POI data identified by the marking point.
Before step S301, the client already acquires POI information of each POI data corresponding to the displayed annotation point when displaying the annotation point. The POI information in this embodiment at least includes location information and a facility type code. For example, for the POI "beijing bank knows the spring road branch", the POI information includes the longitude and latitude of the beijing bank knows the spring road branch and the type code of the beijing bank.
Secondly, the client searches the facility type code in the POI information and determines the facility type of the POI data.
In the present embodiment, a specific field, i.e., a type identification typeId field, is set in the POI information for storing a facility type code for indicating a facility type to which the POI data belongs. For the purpose of management and differentiation, a specific facility type code is set for each different facility type. And a specific facility type code is written in the typeId field of its POI information according to the facility type to which the POI data belongs. For example, when the facility type to which the POI data belongs is "industrial and commercial bank", the facility type code thereof may be set to "b 000001", and when the facility type to which the POI data belongs is "kendiry", the facility type code thereof may be set to "f 000001".
After acquiring the facility type to which the POI data selected by the user belongs, the client performs step S303, that is, sends an area search request to the database, so as to acquire each POI data having the same facility type as the facility type corresponding to the annotation point selected by the user in the adjustable area range.
In this embodiment, the database is located in a peer server of the client. The area search request at least comprises a facility type code corresponding to the marking point selected by the user and the position information of the marking point. Optionally, the location information at least includes a current city name displayed on the electronic map and a location coordinate of the annotation point.
After receiving the area search request, the database performs step S304, that is, the database searches POI data identical to the received facility type code in the adjustable area range according to the area search request, and forms a POI association set with the searched POI data.
In this embodiment, after receiving the area search request, the database may obtain the POI association set in the following manner:
first, an area search request is read and position coordinates and facility type codes of POI data included therein are acquired.
Secondly, the content of the typeId field in the POI information of each POI data is respectively read in a circular area which takes the position coordinate of the marking point as the center and takes the adjustable distance as the radius, and the facility type code is obtained.
In this embodiment, the database stores POI information of each POI data, which is specifically shown in table one.
Watch 1
It should be noted that, in this embodiment, in order to adapt to the displayable range of the display screen of the client, optionally, the adjustable distance may be selected to be 2km, and meanwhile, the search pressure of the database is also moderately reduced.
And thirdly, respectively comparing the facility type codes in each POI information with the received facility type codes, acquiring POI data represented by all the successfully compared facility type codes in the adjustable area, and forming a POI association set. And the POI association set comprises POI information of each POI data.
After the database acquires the POI association set, step S305 is executed, that is, the POI association set is sent to the client.
After the client receives the POI association set, step S306 is executed, that is, the annotation point corresponding to each POI data in the POI association set is highlighted on the electronic map interface.
In this embodiment, the client reads the location information of each piece of POI data in the POI association set, and highlights the annotation point at the corresponding location in the electronic map.
It should be noted that, in order to facilitate the user to distinguish the highlighted annotation point from the non-highlighted annotation point, the client may highlight the annotation point in at least one of the following manners: zoom in, change color, change shape, change dynamic effects. In this embodiment, an enlargement manner is taken as an example, and the marked point is highlighted, and the specific effect is shown in fig. 4.
In order to show the highlighted annotation point more clearly, the embodiment further provides a schematic diagram before highlighting the annotation point, that is, fig. 5. As can be seen from a comparison of fig. 4 and 5, the highlighted annotation points enable the user to more quickly and accurately view POI data having the same facility type in a certain area.
The embodiment of the invention provides a method for displaying associated annotation points on an electronic map interface. By the method, when a user selects any one of the marking points on the map interface, the client can acquire the facility type of the POI data identified by the marking point, search the POI data with the same facility type as the POI data through the database, and further highlight the marking point identifying the POI data. Therefore, by the method provided by the embodiment, the user can quickly and accurately directionally search the target POI through the marked points highlighted on the electronic map, the POI is conveniently searched by the user, the searching efficiency is improved, and the user experience is improved.
EXAMPLE III
Fig. 6 is a block diagram illustrating an apparatus for displaying an associated annotation point on an electronic map interface according to an embodiment of the present invention. The apparatus 600 comprises:
a user input interface 610 configured to receive an indication of a annotation point currently selected by a user;
a type determiner 620, coupled to the user input interface 610, configured to determine, according to the indication, a facility type to which the POI data identified by the annotation point currently selected by the user belongs;
a set acquirer 630, coupled to the type determiner 620, configured to acquire, within an adjustable area of the electronic map interface, a POI association set composed of POI data of the same type as the facility type corresponding to the user-selected annotation point;
and the annotation display 640 is coupled to the set acquirer 630 and configured to highlight the annotation point corresponding to each POI data in the POI set on the electronic map interface.
Optionally, the type of the facility to which the POI data belongs is recorded in the POI information of the POI data by a facility type code;
the type determiner 620 is further configured to obtain POI information of the POI data identified by the annotation point currently selected by the user; and
and searching the POI information for a facility type code, and determining the facility type to which the POI data selected by the user belongs.
Optionally, the set acquirer 630 further includes:
a data transmitting interface 631 configured to transmit an area search request including at least a facility type code of POI data of a mark point selected by a user and mark point position information to the database 800, wherein POI data identical to the facility type code of the POI data selected by the user in an adjustable area range with the mark point position information as a center are searched in the database 800, and each of the searched POI data constitutes a POI association set;
the data receiving interface 632 is configured to obtain a POI association set returned from the database 800, where the POI association set includes information of each POI.
Optionally, the adjustable region range includes a circular region with the position of the currently selected marking point of the user as the center and the adjustable distance as the radius.
Optionally, the manner of highlighting the annotation point by the annotation display 640 at least includes any one of the following:
zoom in, change color, change shape, change dynamic effects.
The embodiment of the invention provides a device for displaying associated annotation points on an electronic map interface. By the device, when a user selects any one marking point on the map interface, the client can acquire the facility type of the POI data identified by the marking point, search the POI data with the same facility type as the POI data through the database, and further highlight the marking point identifying the POI data. Therefore, through the device provided by the embodiment, the user can quickly and accurately directionally search the target POI through the marked points highlighted on the electronic map, the POI is conveniently searched by the user, the searching efficiency is improved, and the user experience is improved
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the apparatus for displaying associated annotation points on an electronic map interface in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.