Summary of the invention
Object of the present invention is intended at least solve one of above-mentioned technological deficiency.
For achieving the above object, one aspect of the present invention proposes a kind of method that the Internet service that position is relevant is provided, comprise the following steps: S1: create regional relation table and service relation table, and area data and Internet service data are stored into respectively in described regional relation table and described service relation table, wherein, described area data comprises geographical explanation data and geological information data, and described Internet service data comprise the position data of described Internet service; S2: the position data to described Internet service and described area data are carried out the first comparing calculation, determine the region of described Internet service, and by the result store of described the first comparing calculation in service-regional relation table; S3: obtain user's locator data, the locator data to described user and described area data are carried out the second comparing calculation, determine described user's region, and by the result store of described the second comparing calculation in user-regional relation table; And S4: determine user-service relation table according to described service-regional relation table and described user-regional relation table, and provide Internet service according to described user-service relation table to described user.
In one embodiment of the invention, describedly also comprise: according to described area data, determine one or more regions that are associated; Create system realm according to described one or more regions that are associated, the area data of wherein said system realm comprises geography explanation data and the geological information data in each region being associated.
According to embodiments of the invention, described method also comprises: select one or more described system realms; Create user area according to described one or more system realms, the area data of wherein said user area comprises geography explanation data and the geological information data of each described system realm.
In one embodiment of the invention, the area data of described system realm is stored with hierarchical structure, and wherein said hierarchical structure is continent-country-province-city-district-postcode.
In one embodiment of the invention, described method also comprises, creates User relationship table, and described user data and locator data are stored in described User relationship table.
According to the method that the Internet service that position is relevant is provided of the embodiment of the present invention, Internet service is associated with user's position, and according to user's mobility feature, real-time update locator data, therefore, user can obtain the Internet service associated with position by inquiry easily, and service provider also can provide the Internet service relevant to position according to the user data of storage to user easily, thereby promote user's experience, reduced the waste of resource.In addition,, by the design of system realm and user area, can provide distinctive Internet service.
The present invention also proposes a kind of system that the Internet service that position is relevant is provided on the other hand, comprise: creation module, be used for creating regional relation table and service relation table, and area data and Internet service data are stored into respectively in described regional relation table and described service relation table, wherein, described area data comprises geographical explanation data and geological information data, and described Internet service data comprise the position data of described Internet service; Locating module, for obtaining user's position data; Computing module, carry out the first comparing calculation for position data and described area data to described Internet service, determine the region of described Internet service, and by the result store of described the first comparing calculation in service-regional relation table, and user's locator data of obtaining and described area data are carried out to the second comparing calculation, determine described user's region, and by the result store of described the second comparing calculation in user-regional relation table; Output module, for determining user-service relation table according to described service-regional relation table and described user-regional relation table, and provides Internet service according to described user-service relation table to described user.
In one embodiment of the invention, described system also comprises system realm determination module, for determining one or more regions that are associated according to described area data, and creating system realm according to described one or more regions that are associated, the area data of wherein said system realm comprises geography explanation data and the geological information data in each region being associated.
According to embodiments of the invention, described system also comprises user defined logic interface, be used for selecting one or more described system realms, and creating user area according to described one or more system realms, the area data of wherein said user area comprises geography explanation data and the geological information data of each described system realm.
In one embodiment of the invention, the area data of described system realm is stored with hierarchical structure, and wherein said hierarchical structure is continent-country-province-city-district-postcode.
In one embodiment of the invention, described creation module is also for creating User relationship table, and described user data and locator data are stored in described User relationship table.
According to the system that the Internet service that position is relevant is provided of the embodiment of the present invention, can realize Internet service and user's zone association, and can real-time update user locator data, therefore, can obtain the Internet service associated with position by inquiry easily.And, utilizing the self-defined user area of native system energy, service provider can, according to self-defining user area, provide distinctive Internet service.In addition, utilize the general-purpose platform of native system, can eliminate the development of the unnecessary repetition of different application, reduce the new required time and efforts of location application of exploitation.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.
The method flow diagram of the Internet service that position is relevant that what Fig. 1 was one embodiment of the invention provide.As shown in Figure 1, provide according to an embodiment of the invention the method for the Internet service that position is relevant, comprise the following steps:
Step S101, create regional relation table and service relation table, and area data and Internet service data are stored into respectively in regional relation table and service relation table, wherein, area data comprises geographical explanation data and geological information data, and Internet service data comprise the position data of Internet service.
Particularly, in regional relation table, can comprise region ID, geographical explanation and geological information etc.For example, the region ID that store in regional relation table " Wuxi " is Z1, geographical explanation data are Wuxi, geological information data comprise accurate GIS (Geographic Information System GIS-Geographic Information System) data and the geometry thereof of Wuxi Area, and geometry shows in the mode of similar map.
In service relation table, can comprise service ID, title, type, provider, order, parameter and position etc.Wherein, position data can be the position data of a point in the region at Internet service place, comprises accurate GIS data.Type and provider can create according to concrete service provider.Order and parameter are for sending service to mobile subscriber.For example, the service ID that the data of the Internet public transport service are stored in service relation table is S1, and name is called public transport, and position is certain concrete place, Wuxi.
Step S102, the position data to Internet service and area data are carried out the first comparing calculation, determine the region of Internet service, and by the result store of the first comparing calculation in service-regional relation table.
Geological information data in the precise information of service position point and region list are carried out to comparing calculation, Dynamic Recognition goes out to serve the region at place, thus, the position data in service relation table can with regional relation table in geological information data (as commerce area, center, city, airport, shopping center, subregion, postcode, area code and administrative division etc.) be associated.
Particularly, this comparing calculation can be undertaken by canonical algorithm, and main GIS all provides the built-in function of these basic calculation functions.
The related information that these standard operations of carrying out to region from point obtain can be used for setting up the incidence relation in service-region, and create service-regional relation table according to the incidence relation in service-region, wherein, service-regional relation table comprises region ID and service ID.
Both calculated in advance having stored of the incidence relation that should be understood that service-region, also dynamic calculation when needed.For services equipment, location point can only carry out once the contrast in region, and comparing result can be recorded in service-regional relation table in advance, avoids thus double counting, quickening process.For Information Mobile Service equipment, the position data of location can be carried out regularly or dynamically update according to GPS or the positioning service data based on base station or other available resources.
If there is no the precise information of location point in a corresponding service relation table of Internet service, this service can be placed in to one or more regions of storage, approximate its position.
Step S103, obtains user's locator data, and the locator data to user and area data are carried out the second comparing calculation, determine user's region, and by the result store of the second comparing calculation in user-regional relation table.
User's locator data comprises the accurate GIS data of user position.
Geological information data in the precise information of user location point and region list are carried out to comparing calculation, Dynamic Recognition goes out the region at user place, thus, location data can with regional relation table in geological information data (as commerce area, center, city, airport, shopping center, subregion, postcode, area code, administrative division etc.) be associated.
Similarly, this comparing calculation also can be undertaken by canonical algorithm, and main GIS all provides the built-in function of these basic calculation functions.
The related information that these standard operations of carrying out to region from point obtain can be used for setting up the incidence relation in user-region.And create user-regional relation table according to the incidence relation in user-region, wherein, user-regional relation table comprises user ID and region ID.
Both calculated in advance having stored of the incidence relation that should be understood that user-region, also dynamic operation when needed.For user, generally there is mobile device, locator data can be carried out regularly or dynamically update according to GPS or the positioning service data based on base station or other available resources.
In one embodiment of the invention, also can create User relationship table, user ID and location data etc. are stored in User relationship table.For example, create a User relationship table, User relationship table comprises user ID, name, user data and position data.For example, a user that name is Zhang San, the user ID of storage is 1, name is Zhang San, position is Zhang San's current location, and wherein Zhang San's current location can be a certain point with accurate longitude and latitude in Wuxi according to concrete navigation system location Zhang San's current location.
In the time there is no the precise information of user location point in User relationship table, user can be positioned oneself the determined position in certain address or crossing space by hand, or will own be associated with a certain region in region list.
Step S104, determines user-service relation table according to service-regional relation table and user-regional relation table, and provides Internet service according to user-service relation table to user.
Contrast inquiry according to user-regional relation table and service-regional relation table, determine the relevant Internet service that the position at user place can get, and store in user-agent list.Wherein, user-service relation table comprises user ID, service ID and position.
According to user-agent list, user can inquire about and obtain the Internet service that specific position is relevant, or service provider can be to the relevant Internet service of user-provided location.
In one embodiment of the invention, also can determine one or more regions that are associated according to area data, and create system realm according to one or more regions that are associated, wherein the area data of system realm comprises geography explanation data and the geological information data in each region being associated.
Particularly, to the area data in regional relation table, carry out the system realm modeling in multiple regions according to administrative division, the system realm of structure comprises the geography explanation data in the region of each association, is convenient to user and browses whole system region.For example, belong to the feature in " Jiangsu Province " according to the area data of regional relation table " Wuxi ", " Nanjing " etc., set up the system realm in " Jiangsu Province ", " Jiangsu Province " system realm has comprised geography explanation data and the geological information data in each subordinate city.
In addition, user also can select one or more system realms to create user area, and wherein the area data of user area comprises geography explanation data and the geological information data of each system realm.Thus, can conveniently realize the relevant Internet service in position of the user-defined characteristic having.
For example, a travel information service, this travel information service is mainly the visitor who enters the Yangtze River Delta region travel information is provided, select Jiangsu, Zhejiang and three, Shanghai system realm, three system realms are combined, be defined as " Yangtze River Delta region ", set up user area, the geographical descriptive information of user area may be defined as " Yangtze River Delta region ", geological information data can be according to the geological information data of Jiangsu, three system realms in Zhejiang and Shanghai by calculating, and the built-in function that computational methods provide according to generalized information system particularly calculates.
In one embodiment of the invention, the area data of system realm is stored with hierarchical structure, for example continent-country-province-city-district-postcode.According to the hierarchical structure feature of system realm, every service can be associated with a geographic area in " system realm ".
It should be understood that user's locator data comprises each user's last locator data and historical location data, each user's last locator data and historical location data can be stored in database.Particularly, can carry out comparing calculation according to each user's last locator data and area data, determine user's region, and last locator data is marked in region and stored in add list.For example, comparing result may be " cellphone subscriber's current position of mobile phone 13801015555 is within postcode 214043 " or " current position of client A is apart from 50 kilometers of Wuxi Citys " etc.Thus, can realize the function of following the tracks of user.
According to the method that the Internet service that position is relevant is provided of the embodiment of the present invention, Internet service is associated with user's position, and according to user's mobility feature, real-time update locator data, therefore, user can obtain the Internet service associated with position by inquiry easily, and service provider also can provide the Internet service relevant to position according to the user data of storage to user easily, thereby promote user's experience, reduced the waste of resource.In addition,, by the design of system realm and user area, also can provide distinctive Internet service.
For realizing above-described embodiment, a kind of Internet service system that position is relevant that provides is also provided in the present invention.
Fig. 2 is the structural representation that passes through the Internet service system that position is relevant of one embodiment of the invention.As shown in Figure 2, this system comprises: creation module 100, locating module 200, computing module 300 and output module 400.
Wherein, creation module 100 is for creating regional relation table and service relation table, and area data and Internet service data are stored into respectively in regional relation table and service relation table, wherein, area data comprises geographical explanation data and geological information data, and Internet service data comprise the position data of Internet service.Locating module 200 is for obtaining user's position data.Computing module 300 carries out the first comparing calculation for the position data to Internet service and area data, determine the region of Internet service, and by the result store of the first comparing calculation in service-regional relation table, and user's locator data of obtaining and area data are carried out to the second comparing calculation, determine user's region, and by the result store of the second comparing calculation in user-regional relation table.Output module 400 is for determining user-service relation table according to service-regional relation table and user-regional relation table, and provides Internet service according to user-service relation table to user.
Particularly, locating module 200 is for providing positioning service to moving target and static object.Can be GPS to the mode of Moving objects location, or positioning service based on mobile base station, or indoor positioning service, can be also the combination of several different positioning services.These services both can provide the position of moving target, the positional information of also can updating the equipment according to demand continuous or periodicly.These locator datas are stored in User relationship table, are associated with a user ID key value.
In one embodiment of the invention, this system also can comprise system realm determination module 500.System realm determination module 500 is for determining one or more regions that are associated according to area data, and create system realm according to one or more regions that are associated, wherein the area data of system realm comprises geography explanation data and the geological information data in each region being associated.The area data of system realm can be stored with hierarchical structure, for example continent-country-province-city-district-postcode.
According to embodiments of the invention, this system also can comprise user defined logic interface 600.User defined logic interface 600 is for selecting one or more system realms, and according to one or more system realms establishments user area, wherein the area data of user area comprises geography explanation data and the geological information data of each system realm.
In one embodiment of the invention, creation module 100 also can be used for creating User relationship table, and user data and locator data are stored in User relationship table.
According to the system that the Internet service that position is relevant is provided of the embodiment of the present invention, can realize Internet service and user's zone association, and can real-time update user locator data, therefore, can obtain the Internet service associated with position by inquiry easily.And, utilizing the self-defined user area of native system energy, service provider can, according to self-defining user area, provide distinctive Internet service.In addition, utilize the general-purpose platform of native system, can eliminate the development of the unnecessary repetition of different application, reduce the new required time and efforts of location application of exploitation.
The method and system of the embodiment of the present invention are described for several concrete examples below.By the description of concrete example, it is more obvious that aspects and advantages of the present invention will become.
Embodiment 1
Fig. 3 is the schematic diagram of setting up the mobile phone travel information service that position is relevant of one embodiment of the invention.As shown in Figure 3, in the time that client Zhang San travels in Wuxi, use mobile phone access system of the present invention, the service showing comprises the briefing at Tortoise Head Garden scenic spot, (1) public transport (2) food and drink (3) Wuxi Linshan giant Buddha scenic spot (4), in the time that Zhang San arrives Suzhou, what system showed is the briefing at Suzhou Amusement Park scenic spot, scenic spot, (1) public transport (2) food and drink (3) Huqiu, Suzhou (4).Wherein, public transport and food and drink are location-independent services, and to introduce be all location-based service scenic spot below.
Embodiment 2
Use system of the present invention to provide the alerting service that region is relevant for user.For example someone invites friend to act as a guest to home, in order there to be sufficient time, can to arrange and arrive while leaving home the scope of 5 kilometers as friend, sends an alarm message from trend mobile phone.Similarly alerting service also can be applicable to the monitoring to hazardous environment, secret important place etc.
Embodiment 3
Use system of the present invention to provide the inquiry service that region is relevant for client.For example, can inquire about according to a location of mobile users service of its periphery, or other users of periphery; Or given optional position, can return to all movements and static target with a certain distance from this position; Or a given mobile subscriber's ID, can return to all services in associated region, the current place of this mobile subscriber; Or given any one region ID, can return to all users and the service that in this region, meet certain attribute.
Should be understood that and use native system to provide the API that region is relevant for user, utilize API can facilitate application program that positioning service, Event Service and inquiry service etc. are provided, can be applied in various application program.By public standard DLL (dynamic link library) is provided, can eliminate the development of the unnecessary repetition of different application, reduce the new required time and efforts of location-aware applications of exploitation.
At least there is following beneficial effect according to the method and system that the Internet service that position is relevant is provided of the embodiment of the present invention:
(1) can obtain the Internet service associated with position by inquiry easily, service provider also can provide location-based service according to the user data of storage easily, realize the dynamic characteristic of location dependant services, thereby promote user's experience, reduce the waste of resource, and can design distinctive Internet service.
(2) can eliminate the development of the unnecessary repetition of different application, reduce the new required time and efforts of location application of exploitation.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, amendment, replacement and modification to these embodiment, scope of the present invention is by claims and be equal to and limit.