Embodiment
Thought of the present invention is the LBS business development that improves based on the cell phone map platform, be convenient to of the management of Map Services platform provider to portable terminal map platform, overcome owing to there is not unified exploitation inlet, the loaded down with trivial details interface exploitation of bringing for each service provider, overcome simultaneously owing to different mobile terminal operating systems, different versions, the platform release that causes is various, upgrading complexity and customer charge height, therefore introduce the portable terminal map browser, can develop all kinds of LBS business with form of scripts to make things convenient for the service provider.
Cell phone map browser purpose is to take out the overwhelming majority function that need carry out the LBS performance on the cell phone map interface, reduce the degree of dependence of concrete LBS class of business, thereby the LBS that more SP can be developed easily differ from one another uses on cell phone map to mobile phone engine map interior details.
Be illustrated in figure 1 as the structure chart of the embodiment 1 of map browser 10 of the present invention, this map browser 10 comprises:
One data processing module 1 is used to select access point, foundation or disconnects network, transmission data, cache management local data and translation data;
One script parsing module 2 is connected with described data processing module 1, is used to resolve the grammer of the portable terminal map page and put into related data structure;
One subscriber interface module 3 is connected with described script parsing module 2, is used for setting type and the display page element, and process user is selected incident, and the inquiry business function and the page are selected symbol of element table and scheduled for executing corresponding service function.
The major function of data processing module 1: comprise that access point selection, network connection, network disconnection, transfer of data, cache management, data accommodate 6 functions.Access point is selected: the user can specify default WAP access point or select the WAP access point, promptly selects automatically to connect by the GPRS network of CMWAP gateway.Network connects: set up network and connect link; Network disconnects: disconnect network and connect link, handle and transmitted data; Promptly intelligence is created and is closed GPRS and is connected and sets up and close the network of serving with network and be connected as required; Transfer of data: encapsulation packet network form uploads data to server, the server data download; Cache management: the local data cache management guarantees integrity of data transmission; Data are accommodated: separate the packet server data download, and generate the application program using form; The request and the reply data of i.e. transmission and network service.
The major function of script parsing module 2 is as follows: resolve the xHTML pagefile that meets the browser code requirement, analyze out different page representative elements and action labels such as display text, picture, professional execution, and put into related data structure.
The major function of subscriber interface module 3: the composing that subscriber interface module is finished the xHTML page elements shows that process user is selected incident, and the inquiry business function and the page are selected symbol of element table, scheduled for executing corresponding service function.Specifically comprise:
(1) common skip chain connection function
(2) be used to the linking functions that dials
(3) be used to send the link of multimedia message
(4) be used to show link about window
(5) be used for the link that display system is provided with window
(6) be used for the link of on map mark and anchor point
(7) be used for the link of marker location information
(8) be used for point of typing and reentry point coordinate on map
(9) be used for telephone number of typing
Support to import by hand and in telephone directory book, select.
(10) be used for displayed map
(11) set current map
(12) setting navigation path
(13) take a picture
The script that calls out camera program sign is provided.
(14) online download map, cell phone map engine and browser program
Support breakpoint transmission.
(15) operation exchange
A kind of reciprocity city, SPID, the professional ServiceID of the other side's equity of business are set;
(16) downloading service menu script
Download the cell phone map service menu script of given city operator;
(17) send note, multimedia message, email
Can copy text messages such as pasting location, inquiry;
(18) timing automatic executing function being set comprises blanking time, carries out url etc.;
As the structure chart of Fig. 2 for the embodiment 2 of portable terminal map browser of the present invention, on the basis of embodiment 1, increased by a business logic processing module 4, this business logic processing module 4, be connected with data processing module 1 with described script parsing module 2, be used for professional rights of using are identified, chargeed.The function of business logic processing module 4 is as follows: this class development interface belongs to physical layer interface, and the cell phone map browser provides these interfaces to be mainly used at dissimilar middle access platforms and realizes meeting the network associated class function that China Mobile unifies the LSP standard.
(1) provides business to subscribe to SP, and select corresponding charging way
(2) the professional business of the SP that has subscribed to is countermanded
(3) identify whether the user has the authority of a certain business of visit
Be illustrated in figure 3 as a concrete structure of this business logic processing module 4, this business logic processing module 4 comprises:
One Business Processing submodule 41 is connected with described script parsing module 2, is used to obtain the various command message that interface customer incident and control obtains and transmits;
One service authentication submodule 43 is connected with described Business Processing submodule 41, is used to send the service authentication request and resolves the authentication return results;
One upgrades processing sub 42, is connected with data processing module 1 with described Business Processing submodule 41, is used to upgrade the various information that comprise service menu script, map browser version, local basis map version;
One orders or removes order business submodule 44, is connected with described Business Processing submodule 41, is used for the order of business or goes to order.
Map browser is the professional specific URL of appointment of each location-based service of oneself by SP, has only and trigger " access authentication and charging " when this URL is arrived in cell phone map visit (access); At the professional page of SP customization oneself, the link position that can arrange specifically to trigger business function flexibly, browser resolves go out to carry out just triggering " access authentication and charging " behind the URL of function link.The catalogue script can be the concrete professional link of SP, also can be the inlet of SP customized web page.
Be illustrated in figure 4 as the detailed structure view of the subscriber interface module of map browser of the present invention: this subscriber interface module 3 comprises:
One composing rendering submodule 31 is connected with described script parsing module 2, is used for the page elements that parses being set type and showing on screen;
One customer incident control submodule 32 is connected with described script parsing module 2, is used for the process user incident, and the inquiry business function and the page are selected symbol of element table and scheduled for executing corresponding service function.
Be illustrated in figure 5 as the detailed structure view of the data processing module of map browser of the present invention: this data processing module 1 specifically comprises:
One Network Access Point chooser module 11 is used to select Network Access Point;
One network link processing sub 12 is connected with described Network Access Point chooser module 11, is used for connecting or disconnects network connecting link;
One Data Control submodule 13 is connected with described network link processing sub 12, is used for transmission, buffer memory, the corresponding map datum of conversion;
One local file visit submodule 14 is connected with described Data Control submodule 13, is used to insert local map datum.
Be illustrated in figure 6 as the detailed structure view of Data Control submodule in the data processing module of map browser of the present invention, this Data Control submodule 13 comprises:
One data transmission unit 131 is connected with local file visit submodule 14 with described network link processing sub 12, is used for encapsulating, packing, upload and data download;
One data buffer storage unit 132 is connected with described data transmission unit 131, is used for data cached assurance integrity of data transmission;
One Date Conversion Unit 133 is connected with described metadata cache processing unit 132, is used for translation data, separates the packet server data download, and generates the application program using form.
Be illustrated in figure 7 as the script parsing module detailed structure view of map browser 10 of the present invention, this script parsing module 2 specifically comprises:
One page script analyzing sub-module 22 is connected with subscriber interface module with described data processing module, the service end ordinary pages script that the relevant location-based service business that being used for analysis service provider provides is correlated with and the local page script of cell phone map client;
One map script analyzing sub-module 21 is connected with subscriber interface module with described data processing module, is used to resolve and location-based service professional relevant cartographic representation designator and command set
One incident control submodule is connected with subscriber interface module with described data processing module, is used to control the customer incident that obtains.
Wherein, the browser script is divided into catalogue script, service script again; The catalogue script is used for indication and links more detailed catalogue script or service script, the catalogue script can be the concrete professional link of SP, also can be the inlet of SP customized web page, leave the cell phone map client-side usually in, resolve by page script analyzing sub-module 22; Service script is directly used in and is described in the content that will show on the map interface, leaves the SP server side usually in and is resolved by map script analyzing sub-module 21.
Be illustrated in figure 8 as the structure chart of the embodiment 3 of portable terminal map browser of the present invention; For browser and better outward swap data, this map browser also comprises: an interface module 20, be connected with script parsing module 2 with described subscriber interface module 3, and be used for transmission, reception, tissue and resolve command.
These interface module 20 charge map browsers and external program call alternately.Comprise complex interface such as base map operations such as implementing map convergent-divergent, translation, hawkeye, engineer's scale and graphical pointv, line, polygon, demonstration multiple spot, path planning, navigation data.In addition, opened also that browser advances, retreats, homepage, hide, browser self interface operable such as demonstration.
This interface module 20 specifically comprises as shown in Figure 9:
Submodule 201 is accepted in one order, is used to accept the order that start the outside;
One command analysis submodule 202 is accepted submodule 201 with described order and is connected with subscriber interface module 3, is used for resolve command and accepts the concurrent order of losing one's life of order that submodule receives;
One order assembling submodule 203 is connected with script parsing module 2 with described subscriber interface module 3, is used for order and parameter thereof and assembles the formation executable command;
One order sends submodule 204, is connected with described order assembling submodule 53, is used for sending order.
As the structure chart of Figure 10, comprising for the embodiment 4 of portable terminal map browser of the present invention:
One data processing module 1 comprises that a Network Access Point chooser module 11 is connected with a network link processing sub network 12; Data transmission unit 131 in the Data Control submodule 13 and network link processing sub network 12, data buffer storage unit 132, page script analyzing sub-module 22, map script analyzing sub-module 21, be connected with Business Processing submodule 41 in the business logic processing module 4, Date Conversion Unit 133 is connected with data buffer storage unit 132, and Business Processing submodule 43 is with service authentication submodule 41, renewal processing sub 42 and order or go order business submodule 44 to be connected; Event handling submodule 32 in incident control submodule 23 and the subscriber interface module 3 and script are resolved incident control submodule 23 in the control module 2 incident that is connected and are controlled submodule 23 and be connected with Business Processing submodule 41 in the business logic processing module 4; Page script analyzing sub-module 22 and map script analyzing sub-module respectively with subscriber interface module 3 in composing display sub-module 31 be connected simultaneously with order assembling submodule 203 in the interface module 20; Order assembling submodule 203 and order transmission submodule 204 are connected simultaneously with composing display sub-module 31 in the subscriber interface module 3; Order is accepted submodule 201 and is connected with command analysis submodule 2022; Command analysis submodule 202 is connected with subscriber interface module 1.
Can be achieved as follows partial L BS business function by above-mentioned map browser: position display: the map browser script can calculate SP in its concrete business latitude and longitude coordinates is presented on the map interface in the mode of appointment, and can show corresponding information simultaneously; The inquiry amount is calculated: the browser script can provide the attribute information query interface for SP, returns Query Result according to keyword query; Can also calculate function for the SP business provides amount necessary on the map; Base map operation: by with the interface of engine map, can implement base maps operations such as map convergent-divergent, translation, hawkeye, engineer's scale to engine map.The map collection: by the map browser script, can make the user on map, mark point, line, or directly select current map, and for the current map of mark plays a name, the personalized map of customized user, and be saved in this locality or be synchronized to server.The user can browser server on the map preserved of oneself mark, and the same engineer's scale displayed map during according to mark.The user marks point, line can be visited for the third party.The user marks point, line and map (containing information point) all can be kept at this locality.Mark point sum is no more than 500.The map sum is no more than 3.Support the user to mark the server sync of point, line.Dynamic convergent-divergent: can be that effect is switched in the space between the different location on the SP business realizing map, show spatial relation between the diverse location in mode more intuitively; Simulation is advanced: SP specifies terminal on cell phone map, and the cell phone map server calculates a reachable path, and cell phone map can be advanced this path simulation one time; This function belongs to complex function, and the script fragments that adopts a series of script identifier to form realizes between browser and map alternately.The route guiding function is just considered category of roads, forbidden sign, a route very feasible concerning the user of on server, planning, and support GPS.But GPS only is that indicate direction and position, the voice suggestion of current side-play amount.Support the route planning result that SP calculates simultaneously, and can plan to implement at the map patrix.Scheme stacked adding: can show for the different classes of map layer stack of SP business realizing.
The cell phone map browser is from third party's business integration angle, is the set of the related service function that can provide.The cell phone map browser is a kind ofly to expand at cell phone map specially, play up the function except realizing on based on the customization LBS client software of cell phone map engine that conventional page script is explained, can also explain special map performance designator and command set, the invocation map engine carries out the mapable performance of LBS business, and this also is the important difference with conventional browser.
Referring to the structure chart of Figure 11 for an embodiment of cell phone map mobile-terminal platform 100 of the present invention, this platform 1 mainly comprises:
One map browser 10 is used to show and the professional relevant catalogue of location-based service and service page and processing and the professional relevant various data of location-based service; This map browser comprises:
One data processing module 1 is used to select access point, foundation or disconnects network, transmission data, cache management local data and translation data;
One script parsing module 2 is connected with described data processing module 1, is used to resolve the grammer of the relevant map page of portable terminal and ordinary pages and put into related data structure;
One subscriber interface module 3 is connected with described script parsing module 2, is used for setting type and the display page element, and process user is selected incident, and the inquiry business function and the page are selected symbol of element table and scheduled for executing corresponding service function;
One interface module 20 is connected with subscriber interface module 3 with script parsing module 2 in the described map browser 10, is used to send, receive, organize and resolve the order of various relevant location-based service business;
One engine map 30 is connected with described interface module 20, is used to handle and the professional relevant various cartographic informations of location-based service;
One local map data base 40 is connected with described engine map 30, is used to preserve the map datum of the base map layers that comprises the city and suitable information point position information data.
Another embodiment at cell phone map mobile-terminal platform 1 of the present invention is: wherein, this cell phone map mobile-terminal platform 1 also comprises a business logic processing module 4, this business logic processing module 4, be connected with data processing module 3 with script parsing module 2, be used for professional rights of using are identified and chargeed and upgrade corresponding map version, browser version.Wherein the concrete structure of this business logic processing module 4 and annexation reach corresponding hereinbefore described as shown in Figure 3.
Wherein, the structure chart of the map browser 10 in this cell phone map mobile-terminal platform 1 as shown in Figure 1 and corresponding hereinbefore described.Fig. 5 in the interconnecting as mentioned of the concrete structure figure of data processing module 1 and script parsing module 2 and each intermodule in the map browser-shown in Figure 7 and corresponding hereinbefore described; The concrete structure figure of subscriber interface module 3 is shown in Figure 4 as mentioned and corresponding hereinbefore described.
In cell phone map mobile-terminal platform 1, data processing module 1 is selected to set up mobile communications network (for example GPRS) connection behind the access point in the map browser 10, script parsing module 2 obtains from engine map 30 or network side by interface module 20 that diagram page initially shows or the map carried out behind the corresponding operating shows, map datum in 30 pairs of local map data bases 40 of engine map shows the subscriber interface module that the map datum of handling returns to map browser 10 by interface module 20 again after carrying out the function corresponding operation according to the order of sending from map browser 10.Be used for that supporting business upgrades and the pagefile that leaves the update package (service menu, browser, engine, map) on " down loading updating server " in and deposit in the service resolution on the SP server is called in mobile phone terminal by data processing module 1 by browser, resolve by 2 pairs of content for script of script parsing module, generate local browser page.According to page content for script, also can directly produce a succession of operating process on the map interface, promptly map browser 10 is finished various operations to map by invocation map engine 30.Map browser is the professional specific URL of appointment of each location-based service of oneself by SP, has only and trigger " access authentication and charging " when this URL is arrived in cell phone map visit (access); The professional page in SP customization oneself, can arrange specifically to trigger the link position of business function flexibly, browser resolves just triggers the link that " access authentication and charging " catalogue script can be the concrete business of SP after going out to carry out the URL of function link, also can be the inlet of SP customized web page.During each cell phone map mobile-terminal platform software startup, when business logic processing module 4 is initiated authentication request by middle access server authentication, upgrade processing sub 42 and all will initiate request to " down loading updating server ", whether automatic inspection service menu script has latest edition to need to download.If latest edition is arranged, then download to the cell phone map terminal buffers automatically; Otherwise, continue to check cell phone map browser version, cell phone map Engine Version, local basis map version etc.
Referring to Figure 12 is the concrete structure figure of the engine map 30 in this platform, and this engine map 30 comprises: an engine map nucleus module 304 is connected with described interface module 20, the data that are used for loading map datum He organize internal memory, and calculate basic map;
One engine map function computing module 301 is connected with local map data base 40 simultaneously with described engine map nucleus module 304, be used for to map reduce, object location and searching for generally;
One engine map functional control module 302 is connected with local map data base 40 with engine map function computing module 301 simultaneously with described engine map nucleus module 304, is used for map is carried out convergent-divergent, translation, inquiry and demonstration;
The mutual display module 303 of one engine map is connected with local map data base 40 with engine map nucleus module 304 simultaneously with described engine map functional control module 302, is used for demonstration and reinforcement to map and user interface;
One engine map interface module 305 is connected with engine map nucleus module 304 simultaneously with described interface module 20.
Wherein, the major function of engine map nucleus module 304 is: finish the loading of map datum and the data organization in internal memory, calculate basic map.Comprise the management of map datum and the realization of elementary organization's strategy.This module 304 can provide the basic data service, as visit relevant cartographic information, about figure layer information and relevant icon information etc., data asynchronous access mechanism is provided, can realize multi-thread access.
This cartographic information is stored in local map data base and comprises: basic element: the basic element of geometric object is to form geographical geometric basic module, it is the equal of geometric fundamental type, include the set of three class data types: point (X1, Y1), line (X1, Y1, Xn, Yn) and polygon (X1, Y1, Xn, Yn); Geometric object: it has represented a geographical feature, map feature is the base unit of geography information, that is to say that geographical feature is the least unit of geography information, it is that a certain true geographical phenomenon is at the abstract expression of GIS in the real world, and it is made up of one group of well-regulated basic element; Layer: forms by the geometric object of one group of same alike result, layer also representing of spatial data the set of this type of same alike result geometric object; Map: form by the layer that belongs in the same geographic range.The basic operation service is provided, shears as Drawing Object, whether scope is overlapping for object; The management map function is provided, loads, unload, judge the map version, judge whether map exists as map datum; And can finish the calculating distance between two points, calculate the fundamental objects computing functions such as boundary rectangle of line object.Engine map function computing module 301 can finish based on the Drawing Object of engine map core cell 304 reduce, search for generally, basic algorithm such as object location.Detailed functions comprises discharging to be chosen: will remove the selected state of selected object, and the tabulation of deletion selected object; Configuration information: the cell phone map mobile-terminal platform reads the map configuration information that user's last time preserves in local map data base when starting, when this terminal platform withdraws from, can write last map configuration information to local map data base, preserve user modes such as current map; Mark point: increase, revise, delete the mark dot information.Support multipoint operation.Simulation is advanced and is carried out concrete operations such as the inquiry of this place, selected rectangle map inquiry, circular map inquiry and polygon map inquiry at the user by browser.
User functions such as layer control are controlled, are schemed in convergent-divergent, translation, inquiry, demonstration that engine map functional control module 302 is finished at map; Detailed functions comprises convergent-divergent, rotation, and hawkeye shows that engineer's scale shows that the translation state switches, three-dimensional display, the control of figure layer shows; Translation: the object position is moved to center Screen; Translation redirect: jump to given position from the translation of center Screen current location; Demonstration is about window and show help window; The required algorithm that relates to bottom of above function needs invocation map engine function computing module 301.
The mutual display module 303 of engine map can be finished playing up of map and user interface and show; The dynamic mark of the demonstration of realization map datum, convergent-divergent, roaming, rotation, projective transformation, label information, Word message, additional character, icon.It is quick, level and smooth, stepless that the demonstration of figure can reach.Detailed functions comprises: draw: will work as map and be plotted to screen together with information such as label, icon, selected object, compass, engineer's scales, and support the mechanism of regularly drawing.User interface: introduce stylus and keyboard operation, and carry out business according to current system mode and user's request and judge, then function corresponding in the invocation map engine function control module 302 from the user.
Referring to the concrete structure figure of Figure 13 for interface module 20 in the cell phone map mobile-terminal platform of the present invention, this interface module 20 comprises: submodule 201 is accepted in an order, be connected with described engine map interface module 305, be used to accept the order of sending from the engine map nucleus module;
One command analysis submodule 202 is accepted submodule 201 with described order and is connected with described map browser 10, is used for resolve command and accepts the order that submodule 201 sends;
One order assembling submodule 203 is connected with described map browser 10, is used for assembling the formation executable command according to order and parameter thereof that browser 10 sends;
One order sends submodule 204, is connected with engine map interface module 305 with described order assembling submodule 203, is used for sending order.
In order in the interface module 20 assembling submodule 203 and the map browser 10 in the script parsing module 2 each concrete submodule all be connected with 3 whiles of subscriber interface module.Interface module 20 is identical with the concrete annexation of script parsing module 2 and subscriber interface module 3 among the annexation of interface module 20 and Figure 10.
Referring to the concrete structure figure of Figure 14 for engine map nucleus module in the engine map in the cell phone map mobile-terminal platform of the present invention, this engine map nucleus module 304 comprises:
One map datum calls submodule 3041, is used to call the cartographic information that comprises figure layer information, icon information;
One map fundamental objects calculating sub module 3042, call submodule 3041 with described map datum and be connected, be used to the various basic calculation that comprise that map object is sheared, judged whether object range is overlapping, calculates distance between two points and calculate the boundary rectangle of line object;
One map datum loads submodule 3043, is connected with engine map function computing module 301 with described map fundamental objects calculating sub module 3042, is used for loading and unloading map datum and inquiry map version information, judges whether map exists.
Referring to the concrete structure figure of Figure 15 for engine map function computing module in the cell phone map mobile-terminal platform engine map of the present invention, this module comprises:
One image discharges chooses submodule, is connected with described engine map nucleus module, is used for removing the selected state of the selected object of map, and the tabulation of deletion selected object;
One image information configuration submodule is connected with described engine map nucleus module, and be used to read configuration information and write configuration information, and the user mode information of preserving current map;
One map datum mark submodule is connected with described engine map nucleus module, is used to increase, revise and/or deletes the location point information that marks on the map;
One map datum inquiry submodule is connected with described engine map nucleus module, is used to inquire about this place, rectangle, circle and polygon.
Referring to the concrete structure figure of Figure 16 for engine map functional control module in the cell phone map mobile-terminal platform engine map of the present invention, this module 302 comprises:
One window display sub-module 3021 is connected with described engine map nucleus module 304, is used to produce supplementary;
One map datum function control submodule 3022, be connected with the mutual display module 303 of described engine map nucleus module 304 and engine map, be used to control convergent-divergent, rotation, hawkeye demonstration, engineer's scale demonstration, the switching of translation state, three-dimensional display, the control of figure layer demonstration, translation and the translation redirect of map.
Be the mutual display module concrete structure of engine map figure in the cell phone map mobile-terminal platform engine map of the present invention referring to Figure 17, this module 303 comprises:
One mapping submodule 3031 is connected with engine map nucleus module 304 with described engine map functional control module 302, is used for label, icon, selected object, compass, engineer's scale information are combined with cartographic information;
One calls submodule 3032, is connected with engine map nucleus module 304 with described engine map functional control module 302, is used to call described engine map functional control module 302.
Be engine map interface module in the cell phone map mobile-terminal platform engine map of the present invention referring to Figure 18, this module 305 comprises:
Submodule 3053 is accepted in one engine map order, is connected with order sending module 204 in the described interface module 20, is used to accept the order of sending by described interface module from described map browser;
One engine map command analysis submodule 3054 is accepted submodule 3053 with described order and is connected with engine map nucleus module 304, is used for resolve command and accepts the order of submodule transmission and this order is sent to the engine map nucleus module;
One engine map order assembling submodule 3051 is connected with described engine map nucleus module 304, is used for that the order and the parameter thereof of engine nucleus module are assembled the formation executable command according to the map;
One engine map order sends submodule 3052, is connected simultaneously with order assembling submodule 3051 with the order receiver module 201 of described interface module 20, is used for sending the interface module 20 of order.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.