The method and apparatus for showing point of interest POI in electronic map interface
Technical field
The present invention relates to internet arena, and in particular to a kind of method and apparatus for showing POI in electronic map interface.
Background technology
At present, electronic map has been able to provide the user extensive service, is conveniently gone on a journey instrument as user,
It can not only be realized by the webpage of browser, it is also possible to realized by the map software in mobile phone, met
The demand that user is scanned for by electronic map at any time.User can realize positioning or searching for purpose road by electronic map
Footpath, can also carry out POI by electronic map(Point of Interest, point of interest)Search etc..In electronic map, one
Individual POI can be a bank, retail shop, school, bus station etc..
In the prior art, when user carries out POI search by electronic map, if can represent the POI's to user on the page
Dry bar Search Results, and show corresponding mark point in every Search Results, and these mark points are in a certain order(Such as
Alphabetical order)Arranged.Meanwhile, also each POI is carried out in the form of marking a little on the relevant position of map
Displaying.
Referring specifically to Fig. 1, user, can be in map when it is " bank " that given area is by the keyword that electronic map is searched for
All POIs of this area on " bank " are represented in the form of marking a little to user on interface(Show that it is given tacit consent on mark point
Order identification, such as A, B, C), and the Search Results of each POI are shown simultaneously.Also illustrated in Search Results shown in Fig. 1
With a mark point identical icon shown in map interface, it is easy to user to be found accordingly on map according to Search Results
Position where bank.
But, in the prior art, when Search Results are excessive, because map is excessively single to the display of POI and mark, all
Being bubble icon and sequential letter with identical appearance represents, user needs to rely on to click on one by one just know the category of each POI
Property and details, or with reference to electronic map outside sidebar information can just know details one by one, cause user to be difficult to rapidly lead to
Cross particular location and other information that map interface obtains target POI.
In addition, with the development of mobile terminal, because mobile terminal screen is size-constrained, conventional electronic map interface
(Such as Fig. 1)Can not show completely, especially sidebar content, so simple on the electronic map mark bubble adds lexicographic order
Mode, can not similarly allow user fast and accurately distinguish each POI mark information.
The content of the invention
In view of the above problems, the present invention provide it is a kind of in electronic map interface show POI method and apparatus, so as to gram
Take above mentioned problem or at least in part solve the above problems.
According to one aspect of the present invention, there is provided a kind of method for showing POI in electronic map interface, including:
The POI of each POI corresponding with the query word of input is obtained, wherein, including at least the position of POI in POI
Confidence ceases and name plate information;
For any one POI, the positional information according to the POI carries out POI displayings in electronic map interface, wherein,
POI displayings are included on map interface and are labeled by marking point;
According to the name plate information included in POI, it is determined whether show the nameplate picture of POI on mark point.
Optionally, above-mentioned name plate information includes the first field and the second field, wherein,
First field is used for the nameplate picture for judging whether to need to show the POI;
Second field includes the download URL of the nameplate picture of the POI(Uniform Resource Locator unified resources
Finger URL)Path.
Optionally, according to the name plate information included in POI, it is determined whether show the nameplate figure of POI on mark point
Piece, including:
Read the content of the first field in name plate information;
When the content of the first field is 0, it is defined as to be shown on mark point the nameplate picture of POI;
When the content of the first field is 1, it is defined as the nameplate picture for needing to show POI on mark point.
Optionally, when needing to show the nameplate picture of POI on mark point, also include:
The download URL paths of the nameplate picture of POI are read in the second field;
The nameplate picture of POI is downloaded according to URL paths are downloaded, and the nameplate picture of POI is shown on mark point.
Optionally, when the POI numbers for being shown are no less than two, when POI displayings are carried out, also include:
Default sort is carried out to each POI, the order identification of the mark point is added on the corresponding mark points of each POI.
According to one aspect of the present invention, there is provided a kind of device for showing POI in electronic map interface, including:
User input interface, is configured to receive the query word of user input;
Data obtaining module, is configured to be obtained in database according to query word the POI letters of each POI corresponding with query word
Breath, wherein, the corresponding relation of be stored with database query word and POI, the position in POI including at least POI is believed
Breath and name plate information;
Map drawing module, is configured to map making interface, and according to the POI of each POI in map circle drawn
The mark point for showing each POI is drawn on face respectively;
Map display module, is configured to show map interface, and shown respectively for showing each POI's on map interface
Mark point, and according to the name plate information included in POI, it is determined whether the nameplate picture of POI is shown on mark point.
Optionally, the name plate information that above- mentioned information acquisition module is obtained includes the first field and the second field, wherein,
First field is used for the nameplate picture for judging whether to need to show the POI;
Second field includes the download uniform resource position mark URL path of the nameplate picture of the POI.
Optionally, above-mentioned map display module is further configured to read the content of the first field in name plate information;
When the content of the first field is 0, it is defined as to be shown on mark point the nameplate picture of POI;
When the content of the first field is 1, it is defined as the nameplate picture for needing to show POI on mark point.
Optionally, when map display module determines to show the nameplate picture of POI on mark point, said apparatus are further
Including:
Path read module, is configured to the download URL paths of the nameplate picture of reading POI in the second field;
Picture download module, is configured to according to the nameplate picture for downloading URL paths download POI;And, above-mentioned map denotation
Module is further configured to be shown on mark point the nameplate picture of POI.
Optionally, when the POI numbers that map display module is shown are no less than two, above-mentioned map display module enters one
Step is configured to carry out default sort to each POI, and the order identification of the mark point is added on the corresponding mark points of each POI.
Optionally, above-mentioned database is located at the search engine of server end.
Optionally, the nameplate picture is defined by third party's personalization, and uploads to specified URL roads according to predetermined format
Footpath, and using in the second field of this specified URL paths write-in name plate information as the download URL paths of this nameplate picture.
The invention provides a kind of method and apparatus for showing POI in electronic map interface.By the present invention, make client
End is not only able on map interface show POI by marking point, additionally it is possible to show corresponding to the mark point on mark point
Nameplate picture.It can be seen that, method and apparatus provided by the present invention are allowed users to directly by the nameplate figure on electronic map
Piece fast and accurately distinguishes a type of the marked POI of each mark point, enable a user to it is quick, be accurately positioned
Think the geographical position of the POI of search, improve Consumer's Experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the schematic diagram that prior art shows POI in electronic map;
Fig. 2 shows a kind of method flow for showing POI in electronic map interface according to an embodiment of the invention
Figure;
Fig. 3 shows a kind of method stream for showing POI in electronic map interface in accordance with another embodiment of the present invention
Cheng Tu;
Fig. 4 shows the input field schematic diagram of query word according to an embodiment of the invention;
Fig. 5 shows nameplate picture schematic diagram according to an embodiment of the invention;
Fig. 6 shows another nameplate picture schematic diagram according to an embodiment of the invention;
Fig. 7 shows the mark point schematic diagram of display POI nameplate pictures according to an embodiment of the invention;
Fig. 8 shows that display POI nameplates picture according to an embodiment of the invention and the mark point of order identification are illustrated
Figure;And
Fig. 9 shows a kind of device block diagram for showing POI in electronic map interface according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although illustrating the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without the implementation that should be illustrated here
Example is limited.Conversely, there is provided these embodiments are able to thoroughly understand the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Embodiment one
The embodiment of the invention provides a kind of method for showing POI in electronic map interface.The method is to supporting in electricity
The client for carrying out POI search in sub- map is improved.For example, the client in the present embodiment can be PC
(Personal Computer, personal computer), mobile phone, the subscriber terminal equipment such as HPC.
Fig. 2 shows a kind of method for showing POI in electronic map interface provided according to one embodiment of the invention
Flow chart, the method comprising the steps of S202 to S206.
S202, obtains the POI of each POI corresponding with the query word of input, wherein, POI comprises at least POI's
Positional information and name plate information.
S204, for any one POI, the positional information according to the POI carries out POI displayings on map interface, wherein,
POI displayings are included on map interface and are labeled by marking point.
S206, according to the name plate information included in POI, it is determined whether the nameplate picture of POI is shown on mark point.
The embodiment of the invention provides a kind of method for showing POI in electronic map interface.With it, making client
End is not only able on map interface show POI by marking point, additionally it is possible to show corresponding to the mark point on mark point
Nameplate picture.It can be seen that, the method that the embodiment of the present invention is provided is allowed users to directly by the nameplate figure on electronic map
Piece fast and accurately distinguishes a type of the marked POI of each mark point, enable a user to it is quick, be accurately positioned
Think the geographical position of the POI of search, improve Consumer's Experience.
Embodiment two
The present embodiment is a kind of concrete application scene of above-described embodiment one, by the present embodiment, being capable of clearer, tool
Body ground illustrates method provided by the present invention.
Fig. 3 shows a kind of method for showing POI in electronic map interface provided according to one embodiment of the invention
Flow chart.The method specifically includes step S301 to S307.
S301, client obtains the query word of user input.
Optionally, in order to clearly introduce the concrete mode that client obtains query word, the present embodiment will be with reference to Fig. 4
It is specifically described.Fig. 4 is the input field schematic diagram of query word.
Optionally, in the present embodiment, user can by fig. 4 be located at " 1 " place search column in input inquiry word,
Acknowledgement key is clicked on again, and query word is submitted into client.Such as, query word can be " bank ", " shop ", " dining room " etc..
In addition, user directly selects a certain search terms in can also being in fig. 4 located at the option area at " 2 " place.Such as, user
" cinema " search terms can be clicked directly on, now, the query word acquired in client is " cinema ".
Client performs step S302 after query word is obtained, i.e., obtain corresponding with the query word each in database
The POI of POI.
Optionally, step S302 can specifically be realized in the following way:Client will be looked into after query word is obtained
Ask word and be sent to database, the POI of each POI corresponding with query word is obtained by database, and be returned to client.
It should be noted that above-mentioned database is pre-stored in the search engine of server, is saved in database and looked into
Ask the corresponding relation of word and POI.Specifically as shown in Table 1.Optionally, in order to represent POI more fully hereinafter, in POI
Title, the positional information of POI can be included(Longitude, latitude)And its name plate information.
Table one
In the present embodiment, database, can be by looking into for obtaining in the POI of acquisition each POI corresponding with query word
Ask word and contrasted with the query word for preserving, obtain the POI corresponding to the successful query word of contrast, and take out these POI
Information.
Client performs step S303 after POI is got, i.e., the positional information in POI is in map
Each POI is labeled by marking point on the relevant position at interface.
Client also performs step S304 when each POI is marked by marking point, i.e., for each mark point, go back root
Judge whether to show the nameplate picture of its corresponding POI on the mark point according to name plate information.When judgement need not be in mark point
During upper display nameplate picture, step S305 is continued executing with.When judging to need to show nameplate picture on mark point, continue executing with
Step S306.
Optionally, in the present embodiment, the name plate information of each POI can be represented by two fields, that is, show icon
ShowLogo fields and icon address logoUrl fields.
Wherein, the value of showLogo fields includes 0 or 1, and the nameplate picture of the POI is shown for representing whether.
The content of logoUrl fields includes the download URL paths of the nameplate picture of the POI.
Optionally, in the present embodiment, client can judge whether to show nameplate figure on mark point in the following way
Piece:
The content of showLogo fields in the name plate information of each POI is read respectively.When in showLogo fields
Hold for 0 when, be defined as that the nameplate picture of the POI need not be shown on mark point.When the content of showLogo fields is 1,
It is defined as the nameplate picture for needing to show the POI on mark point.
When step S304 judges that nameplate picture need not be shown on mark point, client executing step S305 exists
Default identification is shown on mark point.
It should be noted that in the present embodiment, when need not show that the POI numbers of nameplate picture are no less than on mark point
At two, in order to allow users to that the mark point for not showing nameplate picture is made a distinction, client on mark point to not showing
Showing each POI of nameplate picture carries out default sort, and the order identification of corresponding POI is shown on mark point.Optionally, this reality
Apply the order label that the order identification in example can be A, B, C or 1,2,3 etc..
When step S304 judges to need to show nameplate picture on mark point, client executing step S306 reads
The content of logoUrl fields in name plate information, obtains the download URL paths of POI nameplate pictures.Afterwards, client is continued executing with
Step S307.
S307, client downloads the nameplate picture of POI according to URL paths are downloaded, and shows POI on corresponding mark point
Nameplate picture.
It should be noted that client downloads the nameplate picture of POI according to download URL paths from server.Optionally,
Nameplate picture can be defined by third party's personalization, and upload to specified URL paths according to predetermined format, and by this specified URL
As the download URL paths of this nameplate picture in the logoUrl fields of path write-in name plate information.The predetermined of picture is such as set
Long and roomy small or Aspect Ratio, file format .jpg/.gif/.bmp/.png of predetermined pictures etc., predetermined pictures file data
Size.
Optionally, in the present embodiment, third party can set when nameplate picture is set for each POI according to belonging to it
Type is applied to be configured.Wherein, establishment type can be divided into bank's class, hotel's class, supermarket's class etc..
Optionally, in order to allow users to promptly tell different POI according to nameplate picture, third party can be by
The known mark of user corresponding to POI is used as its nameplate picture.Below in conjunction with the accompanying drawings, and with establishment type be bank's class to inscription
The selection of board picture is illustrated.
For example, when POI is industrial and commercial bank, its nameplate picture could be arranged to picture as shown in Figure 5.When POI builds
During bank, its nameplate picture could be arranged to picture as shown in Figure 6.Correspondingly, when POI is other banks, can choose
Its corresponding bank's mark is used as nameplate picture.This searches on map target POI for user and obtains its specifying information and provides
Very big convenience.Wherein, the present embodiment is so that POI is as industrial and commercial bank as an example, there is provided the mark point of display POI nameplate pictures is illustrated
Figure, referring specifically to Fig. 7.
Also, it should be noted that in the present embodiment, when needs show that the POI numbers of nameplate picture are no less than on mark point
At two, in order to allow users to showing that the mark point of nameplate picture makes a distinction, client can also be to needing in mark
Each POI of nameplate picture is shown on point carries out default sort, and the order identification of corresponding POI is shown on mark point.It is optional
, order identification can also be the order label of A, B, C or 1,2,3 etc..In addition, the present embodiment is also with POI as industrial and commercial bank
As a example by, there is provided the mark point schematic diagram of display POI nameplates picture and order identification, referring specifically to Fig. 8.
In the present embodiment, after client illustrates each POI on the electronic map, user can be selected POI, and
When cursor to be aligned user the mark point of a certain POI, client can show a suspended frame to user, for representing the POI's
The information such as title, position, facilitate user's further appreciating that for the POI.
The embodiment of the invention provides a kind of method for showing POI in electronic map interface.With it, making client
End is not only able on map interface show POI by marking point, additionally it is possible to show corresponding to the mark point on mark point
Nameplate picture.It can be seen that, the method that the embodiment of the present invention is provided is allowed users to directly by the nameplate figure on electronic map
Piece fast and accurately distinguishes a type of the marked POI of each mark point, enable a user to it is quick, be accurately positioned
Think the geographical position of the POI of search, improve Consumer's Experience.
Embodiment three
Fig. 9 shows a kind of device for showing POI in electronic map interface provided according to one embodiment of the invention
Block diagram.The device 900 includes:
User input interface 910, is configured to receive the query word of user input;
Data obtaining module 920, is coupled with above-mentioned user input interface 910, is configured to according to query word in database
The POI of each POI corresponding with query word is obtained in 800, wherein, be stored with database 800 query word and POI
Corresponding relation, including at least the positional information and name plate information of POI in POI;
Map drawing module 930, is coupled with above- mentioned information acquisition module 920, is configured to map making interface, and according to
The POI of each POI draws the mark point for showing each POI respectively on the map interface drawn;
Map display module 940, is coupled with above-mentioned map drawing module 930, is configured to show map interface, and on ground
The mark point for showing each POI is shown on figure interface respectively, and according to the name plate information included in POI, it is determined that being
The no nameplate picture that POI is shown on mark point.
Optionally, the name plate information that above- mentioned information acquisition module 920 is obtained includes the first field and the second field, wherein,
First field is used for the nameplate picture for judging whether to need to show the POI;Second field includes the nameplate figure of the POI
The download uniform resource position mark URL path of piece.
Optionally, above-mentioned map display module 940 is further configured to read the content of the first field in name plate information;
When the content of the first field is 0, it is defined as to be shown on mark point the nameplate picture of POI;When first
When the content of field is 1, it is defined as the nameplate picture for needing to show POI on mark point.
Optionally, when above-mentioned map display module 940 determines to show the nameplate picture of POI on mark point, above-mentioned dress
Put and further include:
Path read module 950, is coupled with above-mentioned map display module 940, is configured to read POI in the second field
Nameplate picture download URL paths;
Picture download module 960, is coupled with above-mentioned path read module 950 and above-mentioned map display module 940 respectively,
It is configured to according to the nameplate picture for downloading URL paths download POI;And, above-mentioned map display module 940 is further configured to
The nameplate picture of POI is shown on mark point.
Optionally, when the POI numbers that above-mentioned map display module 940 is shown are no less than two, map display module
940 are further configured to carry out default sort to each POI, and the order mark of the mark point is added on the corresponding mark points of each POI
Know.
Optionally, above-mentioned database 800 is located at the search engine of server end.
Optionally, nameplate picture is defined by third party's personalization, and uploads to specified URL paths according to predetermined format, and
Using in the second field of this specified URL paths write-in name plate information as the download URL paths of this nameplate picture.
The embodiment of the invention provides a kind of device for showing POI in electronic map interface.By the device, make client
End is not only able on map interface show POI by marking point, additionally it is possible to show corresponding to the mark point on mark point
Nameplate picture.It can be seen that, the device that the embodiment of the present invention is provided is allowed users to directly by the nameplate figure on electronic map
Piece fast and accurately distinguishes a type of the marked POI of each mark point, enable a user to it is quick, be accurately positioned
Think the geographical position of the POI of search, improve Consumer's Experience.
Algorithm and displaying be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair
Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist
Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requires, makes a summary and accompanying drawing)Disclosed in each feature can carry out generation by the alternative features for providing identical, equivalent or similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed
One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor(DSP)To realize the displaying in electronic map interface according to embodiments of the present invention
The some or all functions of some or all parts in the device of POI.The present invention is also implemented as performing this
In described method some or all equipment or program of device(For example, computer program and computer program
Product).It is such to realize that program of the invention be stored on a computer-readable medium, or can be with one or many
The form of individual signal.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or with
Any other form is provided.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.