Background technology
Location-based business (Location Based Services, be called for short LBS), claim shift position business or positioning service again, be meant that the mobile network obtains the geographical location information (latitude and longitude coordinates) of portable terminal by specific location technology, offer mobile subscriber, communication system or third party, and by the support of certain electronic map information, for the mobile subscriber provides calling or the non-calling class service relevant with its position.The application of positioning service can be divided into several types such as the location triggered class is used, the positional information class is used, the tracking class is used, the application of rescue class.
Be illustrated in figure 1 as the network structure of mobile communication network system navigation system, navigation system comprises traditional network entity and the entity that increases newly, the former mainly comprises travelling carriage, mobile switching centre and attaching position register, and the latter mainly comprises mobile positioning center, position determining entity and location services clients machine etc.
Travelling carriage (Mobile Station is called for short MS) is the ustomer premises access equipment of positioning service, and major function provides the relevant metrical information in location of portable terminal, and the application of finishing the part positioning service simultaneously realizes.
Mobile positioning center (Mobile Position Center is called for short MPC) is the kernel entity that positioning service realizes.Major function is the control position fixing process, with each entity interaction, and stores and provide user position information etc.Mobile positioning center also can be called GMLC (Gateway Mobile Location Center is called for short GMLC).
The function of position determining entity (Position Determining Entity is called for short PDE) mainly is that the information that travelling carriage is delivered to network side is handled, thereby calculates the position of portable terminal, and the auxiliary positioning data of mobile position estimation is provided.Position determining entity also can be called Serving Mobile Location Center (Serving Mobile Location Center is called for short SMLC).
Location services clients machine (Location Service Client is called for short LCS Client) is a service application entity.The position that it obtains the user by mobile positioning center provides different location services according to customer location again.This entity can be deployed in the network by service provider (SP), also may operate in such as on the terminals such as travelling carriage or PDA.
GIS-Geographic Information System (Geography Information System is called for short GIS) provides the system of geography information such as map, and it provides the information relevant with geography information to the location services clients machine.
Travelling carriage, mobile positioning center, navigation system, location services clients machine and GIS-Geographic Information System are connected by TCP/IP or No. 7 signaling network.Communication between mobile positioning center and mobile switching centre, the attaching position register is undertaken by the Signaling System Number 7 net.During physics realization, two or more entities in the network configuration can be merged into an entity.
According to the relevant laws and regulations of China man, real longitude and latitude positional information and real cartographic information belong to controlled information, do not allow the location services clients machine to obtain real map datum, also do not allow it to preserve the real trace information of terminal that is positioned.Therefore, map that uses in the location service and position data all must be through special conversions.
At present, China's National Bureau of Surveying and Mapping provides the unique legal unit of map datum Transformation Service and position data transfer algorithm.Each GIS provides all must be through the conversion of China's National Bureau of Surveying and Mapping as commercial map.Corresponding, position data also must be done conversion process, otherwise, use non-switched position data to get map, bigger deviation will take place, can not satisfy professional demand.If it is be that each location services clients machine all increases a cover position change server newly, very high from the angle cost of the whole network.And be unfavorable for the protection of transfer algorithm.Therefore, how on the existing network foundation of mobile communication navigation system with less cost, make up the position Transformation Service, be the problem that must solve.
Summary of the invention
The object of the present invention is to provide a kind of in mobile positioning service system the method for dislocation information, on the basis of existing mobile communication positioning service network, solve the technical problem of position data conversion.
Technical scheme of the present invention is as follows:
A kind of in mobile positioning service system the method for dislocation information, said method comprising the steps of:
A), set in advance a transfer algorithm in the change server of position, change server inside, described position comprises the algorithmic function of a kind of position conversion, handles the transfer algorithm function correspondence of cartographic information among this algorithmic function and the GIS-Geographic Information System GIS;
B), the location services clients machine obtains to be positioned after the location information of terminals, judges that whether the own map that uses is the map datum through conversion, if map not through conversion, then directly get map and finish this flow process to GIS-Geographic Information System GIS; If map was converted, turn to step c;
C), described location services clients machine initiates the position conversion request to described position change server, comprises the position data that is converted in the request message;
D), described position change server receives described position conversion request, and requestor's identity is authenticated, and message content is carried out preliminary treatment, call described transfer algorithm and carry out conversion process;
E), described position change server will be changed back position data packing and return to described location services clients machine;
F), described location services clients machine uses the position data after changing to ask and obtain map to GIS-Geographic Information System GIS.
Described method, wherein, described position change server also writes down each change event in described step e).
Described method, wherein, described position change server also externally provides an interface that is used for for external entity use location translation function.
Described method, wherein, described interface is based on Socket or HTTP.
Described method, wherein, described request message adopts the XML form.
Described method wherein, is also weaved into group with latitude and longitude information to be converted in the described request message, once to change many pair warp and wefts degree.
Fast method, wherein, described request message also comprises the sign and the encrypted message of location services clients machine, is used for the location services clients machine is carried out authentication and charging.
Described method wherein, also is provided with a position transcoding proxy server, and described location services clients prow is linked into local position transcoding proxy server earlier, carry out authentication processing after, be transmitted to described position change server again.
Described method, wherein, described position transcoding proxy server also carries out authentication to the location services clients machine of this locality, the identity information of each location services clients machine that configuration is local; And when transmitting request, use self identity information to replace the identity information of the location services clients machine in the former request message to described position change server.
Provided by the present invention a kind of in mobile positioning service system the method for dislocation information, on the basis of existing network, increase by a cover position change server, by in original operation flow, increasing the method for position conversion process, with less cost, the needs that needs that geographic information data maintains secrecy and mobile communication positioning service are carried out have smoothly been satisfied.
Embodiment
Below with reference to accompanying drawing,, make technical scheme of the present invention and beneficial effect thereof apparent by description to each preferred embodiment of the present invention.
Of the present invention in mobile positioning service system the method for dislocation information, mainly may further comprise the steps:
1. in existing network, dispose a position change server, be connected with the communication of at least one location services clients machine; Change server inside, described position comprises specific transfer algorithm, and this algorithm is corresponding with the algorithm that map is changed;
2. after the location services clients machine obtains to be positioned location information of terminals, judge whether the map that oneself uses is the map datum of process conversion, if not, directly get map or do other processing;
3. the location services clients machine is initiated the position conversion request to the position change server, comprises the position data that is converted in the request message.
4. described position change server receiving position conversion request authenticates requestor's identity, and message content is carried out preliminary treatment, and the calling station transfer algorithm carries out conversion process then.
5. described position change server will be changed back position data packing and return to the location services clients machine, and write down this change event.
6. the location services clients machine uses the position data after changing to obtain map.
Be the networking schematic diagram of a preferred embodiment of the present invention as shown in Figure 2, omitted the network entity that does not have direct relation among prior art such as Fig. 1 with the present invention among the figure, increased the position change server.
Change server inside, described position comprises the algorithmic function of a kind of position conversion, the transfer algorithm function of handling cartographic information in this algorithmic function and the GIS-Geographic Information System is corresponding, that is to say, latitude and longitude information by such position transfer function is handled can get access to correct map from GIS-Geographic Information System.
Described position change server also needs externally to provide a kind of interface, for the function of external entity use location conversion.Interface shape without limits can be based on Socket or HTTP.The describing mode of message generally adopts the XML form.In request message, comprise at least longitude to be converted, latitude, highly, position acquisition time etc.Latitude and longitude information to be converted group can also be weaved in the request message, many pair warp and wefts degree can be once changed like this; The sign and the encrypted message that can also comprise the location services clients machine are used for carrying out authentication and charging.In the response message, comprise longitude, latitude after success or failure flags, the conversion at least, a plurality of longitudes and latitudes can also be weaved into group, disposable returning.
The operation flow of the present embodiment of being introduced as shown in Figure 3, its step comprises:
301. the location services clients machine is to the position of mobile positioning center request travelling carriage.
302. mobile positioning center passes through mutual, calculating with position determining entity, travelling carriage, the position that obtains travelling carriage returns to the location services clients machine.
303. the location services clients machine is initiated conversion request to the position change server, at least comprise positional information to be converted in the request, the identification information and the password that can also comprise this location services clients machine are used for carrying out authentication at the position change server.Can also once comprise a plurality of positional informations to be converted in the request.
304. the position change server is received the position conversion request, at first parses each parameter in the message.If the position change server is configured to and need authenticates request, then take out the identify label and the password of the location services clients machine in the message, compare with the local corresponding information of preserving of position change server, if identical then continue; If it is inequality then return failure response.Then, the position change server uses transfer algorithm, treats the dislocation data and changes.At last, the position change server carries out the message encapsulation with transformation result according to the response message format of interface definition, returns to the location services clients machine, and to this conversion transaction journal daily record.Daily record can be used for debugging, charges or statistics.
After 305. the location services clients machine is received positional information after the conversion, to GIS-Geographic Information System request map.Comprise positional information in the request message through the travelling carriage of conversion.
306. the positional information that was converted that GIS-Geographic Information System is received generates map and returns to the location services clients machine.Because the positional information of travelling carriage and cartographic information all pass through corresponding conversion, so the relative position of travelling carriage and other object of reference is to be consistent with their physical location on the map.
In the above embodiments, each location services clients machine all will be initiated request to the position change server, if location services clients machine quantity is big, it is wide to distribute, and will cause decreased performance, and the operation difficulty strengthens.The networking schematic diagram of another kind of embodiment of the present invention has been described as shown in Figure 4.On the basis of last embodiment, present embodiment has increased the position translation proxy, described position translation proxy can be deployed in the whole nation different province or Da Qu, the location services clients prow is linked into local position translation proxy earlier, after the processing such as this agency authenticates, be transmitted to the position change server again and handle.
Between position translation proxy and position change server, still can adopt the mode of HTTP+XML to transmit position conversion request and position transformation result.But, when the traffic carrying capacity of conversion request is very big, can adopt the long ways of connecting carrying of TCP XML message content between the two.
The position translation proxy needs the identity information of each local location services clients machine of configuration for can the location services clients machine of this locality be carried out authentication.The position translation proxy uses self identity information to replace the identity information of the location services clients machine in the former request message when transmitting request to the position change server.Therefore, the position change server no longer needs to dispose the identity information of all location services clients machines, and the identity information that only needs to dispose each position translation proxy gets final product.In addition, because the IP address relative fixed of position translation proxy, the position change server can also authenticate requestor's IP.
In the practical position business network, have the local position connecting system, the purchase of property affair middleware of ascending the throne in some province.The local position connecting system is responsible for receiving the Location Request of local location services clients machine, and transmits to mobile positioning center; The local position connecting system also is responsible for receiving the geographic information services request of local location services clients machine, and transmits to the GIS-Geographic Information System of this locality or the GIS-Geographic Information System in other places.Therefore, in reality is built, position translation proxy and local position connecting system can be built jointly.
Described the main flow process of this embodiment as shown in Figure 5, specifically comprised:
501. the location services clients machine is to the position of described mobile positioning center request travelling carriage; Or by the position of local position connecting system to mobile positioning center request travelling carriage.
502. mobile positioning center passes through mutual, calculating with position determining entity, travelling carriage, the position that obtains travelling carriage returns to the location services clients machine; Or return to the location services clients machine by the local position connecting system.
503. the location services clients machine is initiated conversion request to the position translation proxy, comprises positional information to be converted in the request at least, can also comprise the identification information and the password of this location services clients machine, is used for carrying out authentication at the position translation proxy.The positional information a plurality of to be converted that can also once comprise in the request.
504. the position translation proxy is received the position conversion request, at first parses each parameter in the message header.If the position translation proxy is configured to and need authenticates request, then take out the identify label and the password of the location services clients machine in the message, compare with the local corresponding information of preserving of described position change server, if identical then continue; If it is inequality then return failure response.Then, the position translation proxy uses the identity information of self to substitute the identity information of location services clients machine in the former request message, and this request message is transmitted to position translation proxy device.
Transmit the position conversion request of coming 505. described position change server is received, at first parse each parameter in the message.If the position change server is configured to and need authenticates request, then take out the identify label and the password of the position translation proxy in the message, compare with the local corresponding information of preserving of position change server, if identical then continue; If it is inequality then return failure response.If desired, can also continue to verify the IP address of position translation proxy.Then, described position change server uses transfer algorithm, treats the dislocation data and changes.At last, the position change server carries out the message encapsulation with transformation result according to the response message format of interface definition, returns to the position translation proxy, and to this conversion transaction journal daily record.Daily record can be used for debugging, charges or statistics.
506. described position transcoding proxy server is received response message, parses each parameter in the message header, returns this response message to the location services clients machine then, and this is transmitted the transaction journal daily record.Daily record can be used for debugging, charges or statistics.
After 507. the location services clients machine is received positional information after the conversion, directly to GIS-Geographic Information System request map, or by the local position connecting system indirectly to GIS-Geographic Information System request map.Comprise positional information in the request message through the travelling carriage of conversion.
508. the positional information that was converted that GIS-Geographic Information System is received generates map and directly or by the local position connecting system returns to the location services clients machine indirectly.Because the positional information of travelling carriage and cartographic information all pass through corresponding conversion, so the relative position of travelling carriage and other object of reference is to be consistent with their physical location on the map.
Although embodiment has above carried out specific description to the systematic networking method of disclosed position conversion, those skilled in the art can understand, under the situation that does not depart from scope and spirit of the present invention, can carry out all conspicuous modification of form and details to it.
Therefore, embodiment described above is illustrative and not restrictive, and under the situation that does not break away from the spirit and scope of the present invention, all variations and modification are all within the scope of the present invention.