Summary of the invention
The purpose of this invention is to provide a kind of hand held based on map browser, this browser with map for browsing the basis, in conjunction with hand held mobile device movability, uncertainty, group collaboration and intelligent characteristics, for the user brings better user experience.
The object of the present invention is achieved like this:
A kind of hand held is based on map browser, and this browser comprises:
A graphical user interface (GUI) that connects the user and can realize man-machine interaction;
Automatically the network selector judging network parameter and connect graphical user interface (GUI);
A user's request manager that uses custom script (Script) script, operating parameter, script (Script) to call the respective application module and connect network selector according to graphical user interface (GUI):
The user management module, location-based service module, Yellow Page search module, community's collaboration module, intelligent service module and the path navigation module that connect the user's request manager respectively and carry out mutual communication with interface, object;
Automatically a self-defined message bag that generates by above-mentioned six modules;
A map analytics engine that is received from the definition message bag and extracts saleable vector graphics (SVG) map datum, stack saleable vector graphics (SVG) map datum and local base map, the final displayed map of generation;
A text resolution engine that is received from the definition message bag and extracts text message, judgement text message kind.
Described network selector adopts Wireless Fidelity (WIFI), general packet radio service (GPRS) or CDMA (CDMA) to network.
Described self-defined message bag adopts extend markup language (XML) form, comprises packet header and inclusion; Its middle wrapping head comprise the operation number and length; Inclusion comprises all kinds of parameters; The operation species of operation number definition application; Length defines the byte number of whole self-defined bag; Parameter in the inclusion comprises two kinds: a kind of is all parameters of passing to server according to the disparate modules content; Another kind be server according to request, return the response parameter that all need.
Described map analytics engine comprises that base map is resolved and personalized map is resolved.
Described base map is resolved and is comprised:
The first step: from the parameter of self-defined message bag, extract saleable vector graphics (SVG) data;
Second step: generate base map according to saleable vector graphics (SVG) data that extract, this base map is enlarging or reducing and drag;
The 3rd step: the base map that generates is passed to GUI show, simultaneously this map is kept at the local increment storage that realizes.
Described personalized map is resolved and is comprised:
The first step: saleable vector graphics (SVG) data and the personalized object attribute data that from the parameter of self-defined message bag, extract base map;
Second step: the personalized object according to obtaining, read the personalized object icon in corresponding this locality; Personalized object properties are composed the corresponding object icon of one of them object to personalized object icon; Simultaneously, according to saleable vector graphics (SVG) data of the base map of receiving, generate base map;
The 3rd step: call local hosts applications DLL (dynamic link library) (API), for each personalized object icon that comprises object properties adds click event;
The 4th step: after the incident interpolation is finished, all individual icons that have respective attributes and corresponding click event are integrated, generated personalized figure layer;
The 5th step: personalization figure layer and the base map that has generated are superposeed, generate final personalized map;
The 6th step: the personalized map that will generate is passed to GUI and is shown, preserves personalized map simultaneously in this locality, to realize the increment storage.
Described personalized object properties comprise two classes, and a class is good friend's longitude and latitude, cell-phone number and an email address; Another kind of is longitude and latitude, title, phone and the address of Yellow Page object; Wherein: the Yellow Page object comprises existing all yellow page information at present, as restaurant, school and market etc.
Described click event comprises make a phone call (Dial), send short messages (SMS), transfer immediate news (IM) and send out a mail (Email).
Described text resolution engine comprises text message, chat message and inquiry message.
Advantage of the present invention:
1., when base map is provided, also provide personalized map, provide corresponding map layer, reduce the map redundancy, improve the map availability according to user preference.
2., all operations that provides traditional map to browse, comprise convergent-divergent map, moving map, provide every communication operation for having shown good friend and Yellow Page object on the map, comprise IM, SMS, Dial and Email.
3., direct consumer positioning position, the good friend of peripheral friend present position and care or the positional information of group member.Understand other people position in real time.
4., user and good friend's dating site can be set, or with the assembly place of group, for user, good friend, member are provided to the path map directly perceived of dating site or assembly place, reduce the interaction times of user and browser, abundant, useful cartographic information is provided.
5., can the Real time identification photo site or the picture stored, by the picture recognition place, solve non-keyword inquiry of the yellow page problem.
6., the intelligent recommendation route, do not need the user any mutual, browser query history knowledge base, current location, current time and present speed provide to meet the path map of demand at that time most, realize real-time navigation.
Embodiment
The present invention needs to be decided to be system (GPS) and to possess on the mobile device of intelligence computation and implement containing the whole world.Be example with smart mobile phone (Smartphone) below, the invention will be further described in conjunction with the accompanying drawings.
Consult Fig. 1, among the structural framing figure of the present invention:
(1), GUI designs the connection user according to the man-machine interaction principle;
(2), network selector: judge network parameter automatically, preferentially select WIFI, if no WIFI then selects GPRS or CDMA;
(3), the user's request manager: self-defined Script script, according to the operating parameter that GUI transmits, Script calls the application corresponding module;
(4), application module has 6 kinds: user management module, location-based service module, Yellow Page search module, community's collaboration module, intelligent service module, path navigation module.Each intermodule communicates with one another with interface and object.
I), user management module: comprise registration, login, information correction, customer documentation management.The customer documentation management comprises user's static data and dynamic data, all is stored among the SQL Server CE.Static data comprises the hobby that the user selects when registration, dynamic data comprises the current time that application programming interface (API) provides, current longitude and latitude, movement velocity that the location-based service module provides, the path map of past request and the hobby of search.
Ii), location-based service module: comprise two kinds, after the user logins browser, automatically open GPS, obtain current longitude and latitude and present speed, current longitude and latitude and present speed are write self-defined location object (Location Object) store, and under user's enabled condition, upgraded once current longitude and latitude and present speed every 5 minutes; Can't obtain to import the current address by the user under the situation of GPS, report the current address, and upgrade self-defined location object.
Iii), inquiry of the yellow page module: comprise four kinds of query interfaces, common inquiry, perimeter query, recommendation query and based on the inquiry of picture.Common inquiry is passed to the self-defining message bag with XML with the key word in the text box; Perimeter query is with the kind of query object, and the distance range of user's current location and inquiry (according to the distance range of current location) is passed to the self-defining message bag with XML; The personal interest hobby of storing among the interest class (as restaurant, amusement, shopping etc.) that recommendation query is selected the user and the SQL Server CE compares, the interest class is filtered, filter out the point of interest that meets user interest most, garbled point of interest and current location information are passed to the self-defining message bag with XML; Inquiry based on picture at first obtains picture, and picture obtains that dual mode is arranged, and calls local API, open local folders and select photo, or call the trustship API pictures taken of smart machine, picture selected is changed into binary data stream after, put into the self-defined message bag;
Iv), community's collaboration module: comprise the two large divisions, good friend's cooperation and group collaboration.
A, good friend's cooperation comprise location-based service between basic operation, basic communication and good friend.Good friend's basic operation comprises adds good friend, deletion good friend, the both passes to the self-defined message bag with the number of operation accordingly with good friend's account number, the message bag via mobile communication network, is passed to server by transmission control protocol (the TCP)/Internet protocol (IP) of message transport layer.Good friend's basic communication comprises IM, SMS, Dial and Email, during IM transmission message the message of input is passed to the self-defining message bag with XML.SMS, Dial do not need to Enter Number, and directly to server requests good friend cell-phone number, utilize the Managed Code of smart machine to walk traditional communication channel, realize sending short messages and making a phone call.Email directly utilizes the Managed Code API of smart machine to realize that mail sends to server requests good friend email.Location-based service comprises location good friend's dating site setting between the friend of becoming reconciled between the good friend.The location good friend passes to the self-defining message bag with XML with the operation of Location Request number and good friend's account number, and the message bag via mobile communication network, is passed to server by the ICP/IP protocol of message transport layer.Dating site setting between the good friend is provided with requested operation number, good friend's account number, user's current location with dating site and passes to the self-defined message bag, and the message bag via mobile communication network, is passed to server by the ICP/IP protocol of message transport layer.
B, group collaboration comprise that group's basic operation, basic communication and group assembly place are provided with.Group's basic operation comprises to be created group, search for group, adds group, withdraws from group and dismisses group's five generic operations, and every generic operation is passed to the self-defined message bag by corresponding icon (Icon) trigger event of GUI with the number of operation accordingly; The basic communication of group comprises group chatting, when sending message the message of input is passed to the self-defining message bag with XML.The group assembly place is provided with, and three kinds of modes are arranged, and assembles automatically, votes and assemble and manually assemble.When assembling automatically, select the interim group of part or all of member composition in the group, give the name of temporarily all rising, and a concluding time is set, pass to the self-defined message bag assembling operation number, the member who selects, interim group's name, concluding time and user's current location automatically.When ballot is assembled and is manually assembled, select the interim group of part or all of member composition in the group, give the name of temporarily all rising, and be set a concluding time, the assembly place title is set, automatically assembles operation number, the member who selects, interim group's name, concluding time, assembly place title and user's current location and pass to the self-defined message bag.
V), intelligent service module: comprise three kinds of intelligence services, self-adaptation screen size, the plan appointments in browser in the displaying calendar (Calendar), intelligent route are recommended.The self-adaptation screen size, it is long and wide that the local API of browser utilization reads screen, will grow with wide and predefined script and mate, and selects the display mode of coupling.Whether the plan in the displaying calendar calls Managed Code API, reads the appointment in the calendar, judge and had an appointment the same day, if having an appointment, then shows the envelope icon of flicker on GUI, and icon is clicked, then triggers click event, shows appointment arrangement.The intelligence route is recommended, and the customer documentation of invoke user administration module reads current location, speed and time, this three and predefine script are mated, if meet a certain in the script, then recommend to meet the route of current environment, this route is that the user once inquired about.For example, script is judged speed, is the speed of driving, and then recommends to drive route; Be the speed of walking, minimal path etc. then;
Vi), the path navigation module: open GPS, will the number of operation, starting point, final position pass to the self-defined message bag.
(5), self-defined message bag: adopt the XML form, comprise packet header and inclusion.Its middle wrapping head comprise the operation number and length.Inclusion comprises all kinds of parameters.The operation species of operation number definition application.Length defines the byte number of whole self-defined bag.Parameter in the inclusion comprises two kinds, and a kind of is all parameters of passing to server according to the disparate modules content; Another kind be server according to request, return the response parameter that all need.Self-defined bag is generated automatically by above-mentioned six modules (user management module, location-based service module, Yellow Page search module, community's collaboration module, intelligent service module, path navigation module).
(6), message transport layer: socket (Socket) connects the present invention and server end, adopts ICP/IP protocol.
(7), server layer: receive the XML self-defined message bag that message transport layer transmits, analyzing XML message bag extracts operation number, determines operation species.If receive the inquiry of the yellow page generic operation, the search key and the Yellow Page database that receive are mated, the results list is returned to browser, receive the final Yellow Page object of determining, inquiry geographical data bank (PostgreSQL), generation is the SVG map datum at center with the object search, and the SVG map datum is with XML form storage data.If receive community cooperation generic operation, judge whether alternately with the good friend, if need the inquiry good friend, inquiry message is put in the self-defined message bag, pass to good friend's browser, receive the confirmation message after, carry out corresponding operating.Good friend's dating site is provided with, server calculates user and good friend's center position earlier according to central point algorithm, inquire about geographical data bank again, for user and good friend are generated to the path map of central point respectively, map datum is placed in the self-defined message bag and passes browser back.The assembly place is provided with, server is according to the assembly place kind, the center of at first calculating interim all members of group when assembling automatically, generate the path map of a width of cloth for every member then to the position, assembly place, ballot is assembled, and the assembly position that the user is set reports every member, and server receives member's voting results, with the principle that the minority is subordinate to the majority, most agreements then generate the path map of a width of cloth to the position, assembly place for every member; Manually be provided with, with every member of assembly place position informing that the user sets, the member is ready the RX path map, and then server generates the path map of a width of cloth to the position, assembly place for this member.If receive path navigation operation, the inquiry geographical data bank generates from starting point to the terminal point path map, and this map is the SVG form, the longitude and latitude in all centre positions of record between from the starting point to the terminal point.
(8), database layer: comprise Yellow Page database, customer data base and geographical data bank.All Yellow Page data of Yellow Page database storing, all map datums of geodata library storage, subscriber database stores user basic information, user interest, personnel location information.
(9), map analytics engine: be received from the definition message bag, extract the SVG map datum, stack SVG map datum and local base map generate the final map that shows, it comprises that base map is resolved and personalized map is resolved.
Consult Fig. 2, base map is resolved and is comprised:
The first step: from the parameter of self-defined message bag, extract saleable vector graphics (SVG) data;
Second step: generate base map according to saleable vector graphics (SVG) data that extract, this base map is enlarging or reducing and drag;
The 3rd step: the base map that generates is passed to GUI show, simultaneously this map is kept at the local increment storage that realizes.
Consult Fig. 3, personalized map is resolved and is comprised:
The first step: saleable vector graphics (SVG) data and the personalized object attribute data that from the parameter of self-defined message bag, extract base map;
Second step: the personalized object according to obtaining, read the personalized object icon in corresponding this locality; Personalized object properties are composed the corresponding object icon of one of them object to personalized object icon; Simultaneously, according to saleable vector graphics (SVG) data of the base map of receiving, generate base map;
The 3rd step: call local hosts applications DLL (dynamic link library) (API), for each personalized object icon that comprises object properties adds click event;
The 4th step: after the incident interpolation is finished, all individual icons that have respective attributes and corresponding click event are integrated, generated personalized figure layer;
The 5th step: personalization figure layer and the base map that has generated are superposeed, generate final personalized map;
The 6th step: the personalized map that will generate is passed to GUI and is shown, preserves personalized map simultaneously in this locality, to realize the increment storage.
(10), text resolution engine: receive the self-defined message bag that message transport layer is transmitted, extract text message, judge the text message kind, comprise text message, chat message and inquiry message, on GUI, show Panel, chat box and the message box that has text message respectively.