WO2019153889A1 - Implementation of geographical location service - Google Patents

Implementation of geographical location service Download PDF

Info

Publication number
WO2019153889A1
WO2019153889A1 PCT/CN2018/121318 CN2018121318W WO2019153889A1 WO 2019153889 A1 WO2019153889 A1 WO 2019153889A1 CN 2018121318 W CN2018121318 W CN 2018121318W WO 2019153889 A1 WO2019153889 A1 WO 2019153889A1
Authority
WO
WIPO (PCT)
Prior art keywords
geographic location
real
time
feature
determining
Prior art date
Application number
PCT/CN2018/121318
Other languages
French (fr)
Chinese (zh)
Inventor
虞金花
华镇
侯培旭
张弓
Original Assignee
北京三快在线科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京三快在线科技有限公司 filed Critical 北京三快在线科技有限公司
Publication of WO2019153889A1 publication Critical patent/WO2019153889A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Definitions

  • the present application relates to the field of computer technology, and in particular to the implementation of geographic location services.
  • O2O Online-to-Offline
  • Geographic location is a basic attribute when the O2O platform provides users with context-related services. For example, when the O2O platform is a service related to a user provider, a straight line distance between the user location and the merchant location or a travel distance between the user location and the merchant location is generally adopted as the location feature, so that the output is closer to the user location. Merchants to enhance the user experience.
  • the application provides a method for implementing a geographic location service.
  • an embodiment of the present application provides a method for implementing a geographic location service, including: determining a target reference geographic location associated with a real-time geographic location specified in a geographic location service request; and determining, according to the request specified in the geographic location service request.
  • the scene information and the feature information of the target reference geographic location determine characteristics of the real-time geographic location to provide a service based on the real-time geographic location according to the feature.
  • the embodiment of the present application provides an apparatus for implementing a geographic location service, including: a reference geographic location determining module, configured to determine a target reference geographic location associated with a real-time geographic location specified in a geographic location service request; a feature determining module, configured to determine, according to the request scenario information specified in the geographic location service request and feature information of the target reference geographic location, a feature of the real-time geographic location, according to the feature of the real-time geographic location A service based on the real-time geographic location is provided.
  • the device further includes a reference geographic location information mining module, configured to determine feature information of the multiple reference geographic locations based on the user historical behavior data, where each of the reference geographic locations is selected from the historical behavior of the user a geographic location in the data, the target reference geographic location being at least one of the reference geographic locations associated with the real-time geographic location of the plurality of reference geographic locations.
  • a reference geographic location information mining module configured to determine feature information of the multiple reference geographic locations based on the user historical behavior data, where each of the reference geographic locations is selected from the historical behavior of the user a geographic location in the data, the target reference geographic location being at least one of the reference geographic locations associated with the real-time geographic location of the plurality of reference geographic locations.
  • the reference geographic location information mining module is further configured to: determine, according to the first geographic location accuracy, a plurality of candidate reference geographic locations; and aggregate the user historical behavior data to the corresponding candidate reference according to the geographic location. a plurality of the reference geographic locations according to the second geographic location accuracy; and the user historical behavior data corresponding to each of the candidate reference geographic locations is aggregated to the corresponding reference geographic location according to the geographic location; Aggregating to the user historical behavior data of each of the reference geographic locations, determining feature information of each of the reference geographic locations; wherein the first geographic location accuracy is less than the second geographic location accuracy.
  • the reference geographic location determining module is further configured to: determine, by using a dynamic circle recall, the target reference geographic location associated with the real-time geographic location; wherein the dynamic circle recall is based on a pre- The evaluation index is adjusted to adjust the geographical area, and the reference geographic location within the geographic area is recalled as the target reference geographic location.
  • the determining, by the dynamic circle recall, the target reference geographic location associated with the real-time geographic location by using the dynamic circle recall including: determining the real-time geographic location. Determining the reference geographic location within a radius; determining the popularity of the real-time geographic location and the merchant density based on at least part of the characteristic information of the reference geographic location within the specified radius; when the heat and the merchant When the density satisfies a preset threshold condition, the reference geographic location within the specified radius is determined as the target reference geographic location associated with the real-time geographic location.
  • determining, by the manner of the dynamic circle recall, the target reference geographic location associated with the real-time geographic location further comprising: when the heat and the merchant density do not satisfy the preset threshold condition, Adjusting the specified radius range according to a preset rule, and repeatedly performing determining the reference geographic location within the specified radius of the real-time geographic location to at least the reference geographic location within the specified radius And the step of determining the popularity of the real-time geographic location and the merchant density.
  • the geographic location feature determining module is further configured to: determine the real-time geographic location according to the requested scenario information specified in the geographic location service request, and at least part of the feature information of the target reference geographic location. Characteristics.
  • the feature of the real-time geographic location includes: a single scene feature or a composite scene feature;
  • the single scene feature includes any one of the following: a popular merchant feature, a propensity radar feature, a heat feature, a merchant density feature, and a geographic location classification.
  • the composite scene features include any of the following: hot time categories of time-divided categories, popular merchant characteristics by time period, popular keyword characteristics by time period, and classification items Popular merchant characteristics, classification target hot keyword characteristics.
  • the propensity radar feature is determined by determining a linear distance and a direction angle of each merchant from the real-time geographic location according to the feature information of the target reference geographic location associated with the real-time geographic location; a straight line distance and a direction angle that maps the merchant to a predetermined sector of the radar map of the real-time geographic location; for each of the sector blocks, by a preset merchant that maps to a merchant on the sector The behavior is aggregated to determine a heat value of the sector; a list of heat values of each of the segments of the radar map is used as a propensity radar feature of the real-time geographic location.
  • the cross-city attribute feature is determined by determining an urban distribution of each of the reference geographic locations according to a preset number of merchant behaviors and a city identifier of all target reference geographic locations associated with the real-time geographic location. a probability; when the urban distribution probability satisfies a preset probability threshold, determining that the real-time geographic location has a cross-city attribute; a list of city identifiers corresponding to the urban distribution probability that meets a preset condition and indicating the real-time geographic location A result identifier having a cross-city attribute as a cross-city attribute feature of the real-time geographic location.
  • an embodiment of the present application further discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the computer program A method for implementing a geographic location service according to an embodiment of the present application.
  • the embodiment of the present application provides a computer readable storage medium, where the computer program is stored, and the program is executed by the processor, and the steps of the method for implementing the geographic location service disclosed in the embodiment of the present application are performed.
  • the method for implementing the geographic location service disclosed in the embodiment of the present application determines a target reference geographic location associated with the real-time geographic location specified in the geographic location service request; and the request scenario information specified in the geographic location service request and the target reference
  • the feature information of the geographic location determines the feature of the real-time geographic location to provide a service based on the real-time geographic location according to the feature, which solves the problem that the method for providing related services based on the geographic location in the prior art is less effective.
  • the method for implementing the geographic location service disclosed in the present application dynamically determines the multi-dimensional geographic location feature on which the geographic location service is provided by combining the feature information of the predetermined reference geographic location and the real-time information of the requested geographic location service, and further Improve the usability and accuracy of geo-location based services.
  • FIG. 1 is a flowchart of a method for implementing a geographic location service according to Embodiment 1 of the present application;
  • FIG. 2 is a flow chart of a specific application embodiment of a method for implementing a geographic location service according to Embodiment 2 of the present application;
  • FIG. 3 is a schematic structural diagram of an apparatus for implementing a geographic location service according to Embodiment 3 of the present application;
  • FIG. 4 is a schematic structural diagram of an apparatus for implementing a geographic location service according to Embodiment 4 of the present application.
  • O2O Online-to-Offline
  • Geographic location is a basic attribute when the O2O platform provides users with context-related services. For example, when the O2O platform is a service related to a user provider, a straight line distance between the user location and the merchant location or a travel distance between the user location and the merchant location is generally adopted as the location feature, so that the output is closer to the user location. Merchants to enhance the user experience.
  • the method includes the following steps: Step 110 to Step 120.
  • Step 110 Determine a target reference geographic location associated with the real-time geographic location specified in the geographic location service request.
  • the real-time location specified in the location service request is the current geographic location of the user contained in the user search request.
  • the platform acquires a real-time geographic location of the user or the application; and then determines a geographic location in the preset range near the real-time geographic location where the preset user behavior occurs , as a target reference geographic location associated with the real-time geographic location.
  • the preset behavior includes but is not limited to any one or more of the following: click, purchase, browse, search.
  • the preset range may be a preset radius range centered on the real-time geographic location, or may be a radius range determined according to a preset index.
  • the preset indicator may be data such as merchant popularity, concentration, and the like within the preset range.
  • each reference geographic location will correspond to a set of feature information; each set of feature information is composed of multiple dimensions; each dimension may be a feature or a feature list.
  • the feature information is statistical information of user behavior and a preset indicator of the merchant determined according to user historical behavior data on each reference geographic location, such as search information, click information, browsing information, business category, and the like.
  • the feature information includes, but is not limited to, any one or more of the following: latitude, longitude, city identity, search keywords in different time periods, number of clicks of search keywords in different time periods, search category identifier, search Category click statistics, business logo, business clicks, merchant orders, business location longitude, business location latitude, 5 star merchants, 4.5 star merchants, 4 star merchants, 3.5 star merchants, 3 Number of star merchants, number of merchants below 3 stars, merchant price, geographical location category, total uv (unique visitor), click uv number, order uv number, total pv (Page View, number of visits), click The number of pv, the number of pv orders, and the like.
  • Step 120 Determine, according to the request scenario information specified in the geographic location service request and the feature information of the reference geographic location, a feature of the real-time geographic location. In this way, a service based on the real-time geographic location can be provided based on the characteristics of the real-time geographic location.
  • the user search request may include request scenario information, where the request scenario information is used to indicate a feature matching condition of the real-time geographic location.
  • the feature matching condition includes a single scene feature extraction condition or a composite scene feature extraction condition.
  • the feature information of the reference geographic location is processed according to the feature matching condition indicated in the request scenario information of the real-time geographic location, such as the feature category to be extracted, the time period of the feature matching, and the like.
  • the feature matching conditions indicated by the request scenario information are different, and the extracted features of the real-time geographic location are also different.
  • the method for implementing a geographic location service disclosed in the embodiment of the present application by determining a target reference geographic location associated with a real-time geographic location specified in a geographic location service request; and requesting scenario information specified in the geographic location service request and the target Referring to the feature information of the geographic location, determining the feature of the real-time geographic location to provide a service based on the real-time geographic location according to the feature of the real-time geographic location, and effectively improving the effect of providing related services based on the geographic location.
  • the method for realizing the geographic location service disclosed in the present application can dynamically determine the multi-dimensional geographic location feature by combining the feature information of the predetermined reference geographic location with the real-time information of the requested geographic location service, thereby effectively improving the geographical location based on the geographic location. The practicality and accuracy of the service.
  • the method for implementing a geographic location service disclosed in this embodiment includes: Step 210 to Step 240.
  • Step 210 Determine feature information of the reference geographic location based on the user historical behavior data.
  • the reference geographic location is selected from a geographic location in the historical behavior data of the user.
  • the feature information is statistical information of user behavior and a preset indicator of the merchant determined according to user historical behavior data on each reference geographic location, such as search information, click information, browsing information, business category, and the like.
  • the geographical location of all users of the platform providing the geographic location service is determined, and the geographical location is filtered and merged according to the historical historical behavior data of the user, and finally the reference geographic location is determined.
  • the feature information for each reference geographic location is then mined as part of the data source for subsequent determination of the characteristics of the real-time geographic location.
  • the candidate reference geographic location is determined according to the first geographic location accuracy.
  • Each piece of user historical behavior data includes a geographic location, which may be represented by latitude and longitude coordinates.
  • the latitude and longitude coordinates can be expressed in different precisions.
  • the first geographical position precision may be set to 10 meters in advance, and then the latitude and longitude coordinates represented by the 10 m precision of the geographical position included in the user history behavior data are determined as the candidate reference geographical position.
  • the user historical behavior data is aggregated to the corresponding candidate reference geographic location.
  • the user historical behavior data corresponding to the same candidate reference geographic location is merged into the user historical behavior data on the candidate reference geographic location, for example,
  • the user historical behavior data of the same merchant is simply superimposed by different users in the same time period corresponding to the same candidate reference geographic location.
  • the first geographical location accuracy is 10 meters
  • the fourth position after the latitude and longitude coordinates represents 10 meters
  • the two user history behavior data corresponding to a merchant A in the candidate reference geographical position of the latitude and longitude (31.2134, 121.4235) respectively correspond to pv ( Page view page views) 1 and 2
  • the merged latitude and longitude (31.2134, 121.4235) candidate reference geographic location has a pv equal to 3 for merchant A.
  • the candidate reference geographic location is cleaned by the heat of the location and the corresponding user historical behavior data sparsity. For example, the candidate reference geographic location whose user history behavior data amount is less than a certain value is deleted, and the candidate reference geographic location whose heat is less than the preset heat threshold is deleted.
  • the reference geographic location is determined according to the second geographic location accuracy.
  • the second geographic location accuracy may be set to 100 meters, and the latitude and longitude coordinates represented by the 100 m precision of each candidate reference geographic location after cleaning may be used as the reference geographic location.
  • the candidate reference geographic location (31.2134, 121.4235) has a corresponding reference geographic location latitude and longitude (31.213, 121.423), that is, 3 decimal places are reserved after the decimal point.
  • the user historical behavior data corresponding to the candidate reference geographic location is aggregated to the corresponding reference geographic location.
  • the candidate reference geographic locations whose heats corresponding to the same reference geographic location are lower than the preset heat value may be determined, and the user historical behavior data on the candidate reference geographic locations may be combined as the user history in the same reference geographic location.
  • Behavioral data For the specific data merging method, refer to the data merging with the first geographical location precision, which will not be described here.
  • the second geographic location accuracy is greater than the first geographic location accuracy.
  • the feature information of the corresponding reference geographic location is determined according to the user historical behavior data aggregated to each of the reference geographic locations.
  • each reference geographic location corresponds to at least one merged user historical behavior data
  • each field in the user historical behavior data represents a user behavior of the reference geographic location corresponding to the user historical behavior data
  • Information such as merchants, such as the time, number of times the user clicks, the popularity of the business, the category attribute, and so on.
  • the feature information of the corresponding reference geographic location is determined according to the user historical behavior data aggregated to each of the reference geographic locations, including: the timestamp according to the historical behavior data of the user is from the first to the last, and is aggregated to each Each user historical behavior data on the reference geographic location sets a credibility weight from small to large; according to each user historical behavior data and corresponding credibility weights in each of the reference geographic locations, respectively Determine the feature information of the corresponding reference geographic location.
  • the timestamps of the historical behavior data of the user are set in a first-to-last order, and a credibility weight from small to large is set for each user historical behavior data corresponding to each reference geographic location. For example, for a business who clicked on a location today and two user behaviors that also clicked on the same business a month ago, when calculating the click behavior score for that location, today’s click behavior scores It is higher than the click behavior of 1 month ago.
  • the feature information of the corresponding reference geographic location is determined respectively.
  • the feature information of each reference geographic location may include, but is not limited to, any one or more of the following: latitude, longitude, city identification, time period 1 search keyword, time period 2 search keyword, time period 3 search keyword, time period 4 search keywords, time period 1 search keyword clicks, time 2 search keyword hits, time 3 search keyword hits, time 4 search keyword hits, search category identification, search category click statistics, merchants Logo, business clicks, merchant orders, business location longitude, business location latitude, 5-star merchants, 4.5-star merchants, 4-star merchants, 3.5-star merchants, 3-star merchants, 3 stars The number of merchants below the rank, merchant price, geographical location category, total uv number, click uv number, order uv number, total pv number, click pv number, order pv number.
  • Step 220 Acquire real-time geographic location and request scenario information specified in the received geographic location service request.
  • the search service platform will receive the geographic location service request sent by the client.
  • the geographic location service request includes a real-time geographic location of the device in which the client is located.
  • the real-time geographic location is a real-time geographic location of a host device (such as a mobile terminal used by the user) acquired by the client by calling the system interface of the client.
  • the real-time geographic location may be represented by latitude and longitude coordinates.
  • the search service platform further needs the client to send the request scenario information of the geographic location service request.
  • the request scenario information is used to indicate a feature matching condition of the real-time geographic location.
  • the feature matching condition includes a single scene feature extraction condition or a composite scene feature extraction condition.
  • the single scene feature includes any one of the following: a popular merchant feature, a propensity radar feature, a heat feature, a merchant density feature, a geographic location classification feature, a cross-city attribute feature, a popular keyword feature, and a popular category feature;
  • the composite scene feature includes any one of the following: superimposing at least two of the single scene features, superimposing at least one of the single scene features, and a time period.
  • the request scenario information is a preset identifier of a popular merchant feature, and is used to indicate that a popular merchant feature of the real-time geographic location is acquired.
  • the request scenario information includes a preset identifier of the time period and the hot category feature, and is used to indicate that the hot category feature of the time zone of the real-time geographic location is acquired.
  • Step 230 Determine a target reference geographic location in the reference geographic location that is associated with the real-time geographic location specified in the geographic location service request.
  • the target reference geographic location associated with the real-time geographic location specified in the geographic service request can be determined by dynamic circle recall.
  • the dynamic circle recall is to adjust a geographic area according to a preset evaluation index, and recall a reference geographic location within the geographic area.
  • the preset evaluation indicators include, but are not limited to, the heat of the real-time geographic location and the merchant density.
  • Determining a target reference geographic location associated with the real-time geographic location specified in the geographic location service request by means of a dynamic circle recall including: determining a reference geographic location within a specified radius of the real-time geographic location specified in the geographic location service request; Determining the heat of the real-time geographic location and the merchant density of the at least part of the feature information of the reference geographic location within the specified radius; determining the specified radius range when the heat and the merchant density satisfy a preset threshold condition The reference geographic location within the reference geographic location associated with the real-time geographic location.
  • the initial value of the specified radius can be preset, for example, the initial value of the specified radius is set to 100 meters.
  • a circular geographic extent is determined by using a real-time geographic location as a center and a specified radius of 100 meters, and the reference geographic location within the circular geographic extent is associated with the real-time geographic location.
  • the target is referenced to the geographic location and is used as part of the data source to extract features of the real-time geographic location.
  • the user data is dense, and the radius of the circle is small to obtain sufficient data amount, so that the acquired data is sufficient to reflect the characteristics of the real-time geographic location.
  • the radius of the circle is relatively large to obtain sufficient data. Therefore, it is necessary to first perform online aggregation based on the data at various points recalled within the initially determined circular geographic range to determine the heat of the circular geographic range and the merchant density, and determine whether to perform a second circle recall and The radius of the circle of the second recall.
  • the heat can be calculated by the following formula:
  • click uv is the sum of the clicks uv of all the reference geographic locations recalled
  • order uv is the sum of the order uvs of all the reference geographic locations recalled.
  • the merchant density can be obtained by counting the total number of merchants of different stars in each reference geographic location, and then dividing the number of merchants by the area of the circular geographic area corresponding to the recall to obtain the merchant density.
  • the specified radius range is adjusted according to a preset rule, such as increasing the radius by 100 meters according to the preset gradient, and repeating the determination within the specified radius of the real-time geographic location requesting the geographic location service according to the specified radius equal to 200 meters. Refer to the geographic location. Then, determining, according to at least part of the feature information of the reference geographic location within the specified radius, the heat of the real-time geographic location and the merchant density, and determining, until the heat and the merchant density meet the pre- Set the threshold condition.
  • the reference geographic location within the specified radius is determined as the target reference geographic location associated with the real-time geographic location.
  • the feature data of the reference geographic location of the current circle recall is sufficient to reflect the feature of the real-time geographic location, and then the feature data of the referenced geographic location may be
  • the request scenario information of the current geographic location service request determines the characteristics of the real-time geographic location.
  • the preset threshold conditions of the heat and merchant density may be determined according to the data distribution of the actual test.
  • the preset rule for adjusting the specified radius may be to increase the radius by 100 meters or other steps.
  • Step 240 Determine, according to the request scenario information specified in the geographic location service request and the feature information of the reference geographic location, a feature of the real-time geographic location. In this way, services based on the real-time geographic location can be provided based on characteristics of the real-time geographic location.
  • the feature of the real-time geographic location includes a single scene feature or a composite scene feature.
  • the present application determines the characteristics of the real-time geographic location by combining the feature data of the reference geographic location within a certain geographic range, so that the rich geographic location feature can be determined for implementing the geographic location-based service.
  • the geographic location feature for requesting the scenario information may be further determined by the request scenario information of the geographic service request.
  • the features of the real-time geographic location include a single scene feature or a composite scene feature.
  • the feature matching condition specified by the request scenario information is a single scene feature extraction condition
  • at least the request scenario information specified in the geographic location service request and the target reference geographic location associated with the real-time geographic location may be at least And the part of the feature information determines a single scene feature of the real-time geographic location.
  • Each merchant's heat score can be calculated by the following formula:
  • Score a*Click pv number+b*click uv number+c* to place a single pv number.
  • a, b, and c are weights of different feature information, which are set according to actual business needs; click pv number, click uv number, and order pv number are corresponding feature information of all target reference geographic locations associated with the real-time geographic location.
  • the propensity radar feature is used to indicate the amount of heat on each sector of the radar chart.
  • the single scene feature includes a propensity radar feature, determining a linear distance and a direction angle of each merchant from the real-time geographic location according to feature information of the target reference geographic location associated with the real-time geographic location; a straight line distance and a direction angle that maps the merchant to a predetermined sector of the radar map of the real-time geographic location; for each of the sector blocks, by a preset merchant that maps to a merchant on the sector The behavior is aggregated to determine a heat value of the sector; a list of heat values of each of the segments of the radar map is used as a propensity radar feature of the real-time geographic location.
  • the preset merchant behavior can be the behavior of clicking, browsing, and purchasing the merchant.
  • the preset merchant behavior of each merchant is determined by accumulating the browsing, clicking, and purchasing behaviors of the same merchant according to the feature information of all the target reference geographic locations associated with the real-time geographic location recalled by the circle. Then, calculating the geographic location of each merchant on the referenced geographic location and the linear distance and direction angle of the real-time geographic location, and mapping each merchant to the real-time geographic location according to the linear distance and the direction angle Centered on the radar chart. Finally, the business and merchant behaviors on each sector of the radar chart are aggregated to obtain a heat value on each sector. The aggregation calculation may be to accumulate preset merchant behaviors of all merchants within the same sector. A list of corresponding heat values on each sector of the radar map is used as the propensity radar feature of the real-time geographic location.
  • the heat characteristics include absolute heat, relative heat, and time-division heat for indicating the heat of the real-time geographic location.
  • the feature information of all target reference geographic locations associated with the real-time geographic location recalled by the circle may be calculated by the following formula:
  • click uv is the sum of the clicks uv of all reference geographic locations
  • order uv is the sum of the order uvs of all reference geographic locations.
  • the absolute heat is the absolute value of the heat.
  • the relative heat is the heat value after the heat value is divided by the overall heat of all the geographical locations of the current city.
  • the heat of the time is the heat value calculated by only counting the data of the specified time period. .
  • the heat value in the range of 0-1 after normalization is used as the heat feature of the real-time geographic location.
  • the merchant density feature is used to indicate the distribution density of merchants in the vicinity of the real-time geographic location.
  • the total number of merchants of different star ratings in each of the reference geographic locations may be determined according to the feature information of the target reference geographic location associated with the real-time geographic location recalled by the circle Calculating the total number of merchants of different stars in all the reference geographical locations; dividing the total number of merchants of each star by the area of the specified radius of the real-time geographic location to obtain the merchant corresponding to each star Density, as a merchant density feature of the real-time geographic location.
  • the total number of merchants with different star ratings in each reference geographic location may be calculated according to the feature information of all target reference geographic locations associated with the real-time geographic location recalled by the circle, and then the number of merchants is divided by the recall corresponding
  • the area of the circular geographic area the density of merchants. For example, first, for each merchant in the reference geographical location, first count the number of merchants by star rating, such as 3 Samsung merchants, 4 four-star merchants, etc., and divide the number of merchants by star rating by this recall.
  • the area of the circular geographical area that is, the density of merchants by star rating.
  • the merchant density of the corresponding star value calculated by the star rating is 0-1 as the merchant density characteristic of the real-time geographic location.
  • the geographic location classification feature is used to indicate the category of the real-time geographic location, such as the real-time geographic location located in the school area, the shopping mall area, and the like.
  • the probability distribution of the reference geographic location classification may be determined according to the geographic location category feature corresponding to all the target reference geographic locations associated with the real-time geographic location; Determining a geographic location category corresponding to the highest probability, as a geographic location category of the real-time geographic location; using a geographic location category of the real-time geographic location and a probability value corresponding to the geographic location category as a geographic location classification of the real-time geographic location feature.
  • the geographical distribution feature is the mall.
  • the cross-city attribute is used to indicate whether the real-time geographic location supports services across cities and cities that can be entered.
  • the city distribution probability of each of the reference geographic locations may be determined according to a preset number of merchant behaviors and a city identifier of all target reference geographic locations associated with the real-time geographic location. Determining, when the urban distribution probability satisfies a preset probability threshold, the real-time geographic location has a cross-city attribute; a list of city identifiers corresponding to the urban distribution probability that meets a preset condition and indicating that the real-time geographic location has The result identifier of the cross-city attribute is used as the cross-city attribute feature of the real-time geographic location.
  • the real-time geographic location is Suzhou Kunshan Huaqiao, where the city is Suzhou, and 60% of the reference locations of “Suzhou Kunshan Huaqiao” are in Shanghai, indicating that “Suzhou Kunshan Huaqiao” has Cross-city attributes can be incorporated into cities including Shanghai.
  • the merchants associated with “Suzhou Kunshan Huaqiao” are recommended based on the geographic location service, there will be merchants in Shanghai.
  • Popular keywords are used to indicate popular keywords involved in the service near the real-time location. Statistic aggregation of search keywords in feature information of all target reference geographic locations associated with the real-time geographic location recalled according to the circle, and a list of topN search keywords with the most occurrences as the real-time geography Popular keyword features for location.
  • the popular category is used to indicate the hot category of the item involved in the service near the real-time location. Performing statistical aggregation on the search category identifiers in the feature information of all target reference geographic locations associated with the real-time geographic location recalled according to the circle, and using the list of topN search categories with the most occurrences as the real-time Popular category features for geographic locations.
  • the single scene feature of the real-time geographic location is not limited to the above, and may also include other features.
  • the method of determining each feature is also not limited to the method exemplified in the embodiment of the present application.
  • the composite scene features include, but are not limited to, any one of the following: a time-series popular category feature, a time-divided popular merchant feature, a time-divided popular keyword feature, a classified target popular merchant feature, and a classified target popular keyword feature.
  • the composite scene feature is determined according to a composite scene feature extraction condition specified in the request scenario information.
  • the composite scene feature extraction condition includes any one of the following: a single scene feature corresponding to a single scene constituting the composite scene, a single scene feature corresponding to a single scene constituting the composite scene, and a time segment respectively.
  • the target reference geographic information associated with the real-time geographic location may be determined according to the requested scenario information specified in the geographic location service request and the manner of dynamic circle recall. At least a portion of the feature information of the location determines a composite scene feature of the real-time geographic location.
  • the time-divided popular merchant feature is used to indicate a popular merchant for a specified time period near the real-time geographic location. For example, when the composite scene feature extraction condition in the request scene information is a time period and a popular merchant feature, first, according to the specified time period, the characteristics of all the target reference geographic locations associated with the real-time geographic location recalled from the circle are retrieved according to the specified time period. In the information, the merchant information of the corresponding time period is filtered out; then, the merchant information after the screening is calculated according to the foregoing method for determining the hot merchant characteristics; and finally, the list of the merchants of the heat score topN is obtained as the A time-sharing popular business feature of a real-time geographic location.
  • the classification target popular merchant feature is used to indicate a popular merchant of a specified category near the real-time geographic location. For example, when the composite scene feature extraction condition in the request scene information is a superimposed category feature and a popular merchant feature, first, all target references associated with the real-time geographic location are determined according to a specified category feature, such as a category identifier. In the feature information of the geographical location, the merchant information of the corresponding category is filtered out; then, the merchant information after the screening is calculated according to the foregoing method for determining the characteristics of the popular merchants; and finally, the heat score of the category is obtained. The list of topN merchants serves as the hotline feature of the classified real-time location.
  • the composite scene feature described in the present application may also be obtained by other methods.
  • This embodiment is only a possible example and should not constitute a limitation on the method for acquiring a composite scene feature.
  • the determined feature of the real-time geographic location is further returned to the client that initiates the geographic location service request, and the client inputs the feature of the real-time geographic location into a search or ranking model of the geographic location service platform, Participate in search rankings to implement services based on the real-time geographic location.
  • the feature information of the reference geographical location may be stored in the database of the geographic location service platform in the form of an index table by offline mining, and the feature information of the reference geographic location may be read when the feature of the real-time geographic location is determined. And through simple calculations to determine various characteristics of the real-time geographic location. In this way, there is no need to call a third-party interface. For example, if the map or navigation interface is not required to calculate the travel distance, the accuracy and practicability of the geographic location service can be improved, and the timeliness of the geographical location service is improved, and the user experience is better.
  • the method for implementing the geographic location service disclosed in the embodiment of the present application determines the feature information of the reference geographic location based on the historical behavior data of the user; after determining the real-time geographic location of the obtained geographic location service request and requesting the scenario information, determining the geographic location Determining the target location of the real-time geographic location associated with the real-time geographic location specified in the service request; determining the feature of the real-time geographic location according to the request scenario information specified in the geographic location service request and the feature information of the target reference geographic location, The feature of the real-time geographic location provides a service based on the real-time geographic location, improving the effectiveness of providing related services based on geographic location.
  • the method for realizing the geographical location service disclosed in the present application determines the geographical location feature information by combining the offline data, and combines the real-time information of the requested geographic location service to determine the multi-dimensional geographic location feature based on the geographic location service, and accurately reflects the geographical location.
  • the location features further enhance the practicality and accuracy of location-based services.
  • the upper layer application can adjust the request scenario information in the geographic location service request according to actual needs, thereby obtaining richer geographic location features.
  • the dynamic reference circle recalls the reference geographic location to ensure sufficient reference data volume, further improving the accuracy of geographic location feature extraction.
  • the apparatus includes: a reference geographic location determining module 310, configured to determine a target reference associated with a real-time geographic location specified in a geographic location service request a geographic location feature determining module 320, configured to determine a feature of the real-time geographic location according to the requested scenario information specified in the geographic location service request and feature information of the target reference geographic location, according to the real-time The feature of the geographic location provides a service based on the real-time geographic location.
  • the device for implementing the geographic location service disclosed in the embodiment of the present application determines the target reference geographic location associated with the real-time geographic location specified in the geographic location service request; and the request scenario information specified in the geographic location service request and the target Determining the feature of the real-time geographic location with reference to the feature information of the geographic location to provide a service based on the real-time geographic location according to the feature of the real-time geographic location, and improving a method for providing related services based on the geographic location in the prior art. effect.
  • the device for implementing the geographic location service disclosed in the present application further improves the multi-dimensional geographic location feature based on the geographic location service by combining the feature information of the predetermined reference geographic location and the real-time information of the requested geographic location service. Based on the practicality and accuracy of geolocation services.
  • the device further includes: a reference geographic location information mining module 300, configured to determine feature information of a reference geographic location based on user historical behavior data, where the reference geographic location is selected from a geographic location in the user historical behavior data, the target reference geographic location being at least one of the reference geographic locations associated with the real-time geographic location of the plurality of reference geographic locations.
  • a reference geographic location information mining module 300 configured to determine feature information of a reference geographic location based on user historical behavior data, where the reference geographic location is selected from a geographic location in the user historical behavior data, the target reference geographic location being at least one of the reference geographic locations associated with the real-time geographic location of the plurality of reference geographic locations.
  • the feature information is statistical information of user behavior and a preset indicator of the merchant determined according to user historical behavior data on each reference geographic location, such as search information, click information, browsing information, business category, and the like.
  • the reference geographic location information mining module 300 is further configured to: determine, according to the first geographic location accuracy, a plurality of candidate reference geographic locations; and aggregate the user historical behavior data to the corresponding candidate reference geography according to the geographic location. Locating a plurality of reference geographic locations according to the second geographic location accuracy; and synthesizing the user historical behavior data corresponding to each of the candidate reference geographic locations to the corresponding reference geographic location according to the geographic location; Determining feature information of each of the reference geographic locations by referring to user historical behavior data of a geographic location; wherein the first geographic location accuracy is less than the second geographic location accuracy.
  • the reference geographic location information mining module 300 is further configured to: clean the reference geographic location according to the heat of the candidate reference geographic location and the corresponding user historical behavior data sparsity.
  • the reference geographic location determining module 310 is further configured to:
  • the target reference geographic location associated with the real-time geographic location is determined by dynamic circle recall.
  • the dynamic circle recall is to adjust a geographic area range according to a preset evaluation index, and recall the reference geographic location within the geographic area as the target reference geographic location.
  • the preset evaluation indicators include, but are not limited to, the heat of the real-time geographic location and the merchant density.
  • the determining, by the dynamic circle recall, the target reference geographic location associated with the real-time geographic location specified in the geographic location service request including: determining the specified radius within the real-time geographic location Determining a hot spot and a merchant density of the real-time geographic location according to at least part of the feature information of the reference geographic location within the specified radius; when the heat and merchant density meet a preset threshold condition Determining the reference geographic location within the specified radius as the target reference geographic location associated with the real-time geographic location.
  • determining, by the manner of the dynamic circle recall, the target reference geographic location associated with the real-time geographic location further comprising: when the heat and the merchant density do not satisfy the preset threshold condition, Adjusting the specified radius range according to a preset rule, and repeatedly performing determining the reference geographic location within the specified radius of the real-time geographic location to at least the reference geographic location within the specified radius Part of the characteristic information, the step of determining the heat of the real-time geographic location and the merchant density
  • the dynamic reference circle recalls the reference geographic location to ensure sufficient reference data volume, further improving the accuracy of geographic location feature extraction.
  • the geographic location feature determining module 320 is further configured to: determine the real-time geography according to the request scenario information specified in the geolocation service request, and at least part of the feature information of the target reference geographic location. The characteristics of the location.
  • the search service platform further needs the client to send the request scenario information of the geographic location service request.
  • the request scenario information is used to indicate a feature matching condition of the real-time geographic location.
  • the feature matching condition includes: a single scene feature or a composite scene feature extraction condition.
  • the composite scene feature extraction requirement includes any one of the following: superimposing at least two of the single scene features, superimposing at least one of the single scene features, and a time period.
  • the feature of the real-time geographic location includes: a single scene feature or a composite scene feature;
  • the single scene feature includes any one of the following: a popular merchant feature, a propensity radar feature, a heat feature, a merchant density feature, and a geographic location classification.
  • the composite scene features include any of the following: hot time categories of time-divided categories, popular merchant characteristics by time period, popular keyword characteristics by time period, and classification items Popular merchant characteristics, classification target hot keyword characteristics.
  • the propensity radar feature is determined by determining a linear distance and a direction angle of each merchant from the real-time geographic location according to the feature information of the target reference geographic location associated with the real-time geographic location; a linear distance and a direction angle, the merchant is mapped onto a predetermined sector of the radar map of the real-time geographic location; for each of the sector, by a preset mapped to a merchant on the sector The merchant behavior is aggregated to determine a heat value of the sector block; a list of heat values of each of the sector blocks of the radar chart is used as a propensity radar feature of the real-time geographic location.
  • the cross-city attribute feature is determined by determining an urban distribution of each of the reference geographic locations according to a preset number of merchant behaviors and a city identifier of all target reference geographic locations associated with the real-time geographic location. a probability; when the urban distribution probability satisfies a preset probability threshold, determining that the real-time geographic location has a cross-city attribute; a list of city identifiers corresponding to the urban distribution probability that meets a preset condition and indicating the real-time geographic location A result identifier having a cross-city attribute as a cross-city attribute feature of the real-time geographic location.
  • the method for determining the other various single scene features and the composite scene features is described in the method embodiment part, and is not described in this embodiment.
  • the device for realizing the geographic location service disclosed in the present application determines the geographical location feature of the geographic location service by combining the offline information with the offline information, and determines the multi-dimensional geographic location feature based on the geographic location service to accurately reflect the geographic location.
  • the location features further enhance the practicality and accuracy of location-based services.
  • the upper layer application can adjust the request scenario information in the geographic location service request according to actual needs, thereby obtaining richer geographic location features.
  • the present application also discloses an electronic device including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the present application
  • the method for implementing the geographic location service described in the first embodiment and the second embodiment can be a PC, a mobile terminal, a personal digital assistant, a tablet, or the like.
  • the present application also discloses a computer readable storage medium, on which a computer program is stored, and when the program is executed by the processor, the steps of implementing the geographic location service according to the first embodiment and the second embodiment of the present application are implemented.

Abstract

A method for implementing a geographical location service of the present application, belonging to the technical field of computers, which solves the problem in existing technology in which a method for providing related services on the basis of geographical location has poor results. The method for implementing a geographical location service disclosed by an embodiment of the present application comprises: determining a reference geographical location associated with a real-time geographical location that is specified in a geographical location service request; determining features of the real-time geographical location according to request scene information that is specified in the geographical location service request and feature information of the reference geographical location so as to provide a service on the basis of the real-time geographical location according to the features of the real-time geographical location.

Description

地理位置服务的实现Implementation of geographic location services
相关申请的交叉引用Cross-reference to related applications
本专利申请要求于2018年02月06日提交的、申请号为201810119487.3、发明名称为“一种地理位置服务的实现方法及装置,电子设备”的中国专利申请的优先权,该申请的全文以引用的方式并入本文中。The present application claims priority to Chinese Patent Application No. 201101119487.3, entitled "A Method and Apparatus for Realizing Geographical Location Services, Electronic Devices", filed on February 06, 2018, the entire disclosure of which is incorporated herein by reference. The manner of reference is incorporated herein.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及地理位置服务的实现。The present application relates to the field of computer technology, and in particular to the implementation of geographic location services.
背景技术Background technique
随着移动互联网技术的发展及LBS(Location Based Service,基于位置服务)要素的引入,人们可以方便的通过移动设备访问网络,获取服务。由此而兴起了一批O2O(Online-to-Offline)本地生活化服务,这种模式的本质是使得用户和服务彼此之间更为便捷的发现。O2O平台为用户提供与场景相关的服务时,地理位置是一个基本属性。例如,在O2O平台为用户提供商户相关的服务时,通常采用用户位置和商户位置之间的直线距离或用户位置和商户位置之间的行程距离作为位置特征,使得输出与用户位置距离更近的商户,以提升用户体验。With the development of mobile Internet technology and the introduction of LBS (Location Based Service) based elements, people can easily access the network and obtain services through mobile devices. This led to the emergence of a number of O2O (Online-to-Offline) local life services, the essence of this model is to make users and services more convenient to discover each other. Geographic location is a basic attribute when the O2O platform provides users with context-related services. For example, when the O2O platform is a service related to a user provider, a straight line distance between the user location and the merchant location or a travel distance between the user location and the merchant location is generally adopted as the location feature, so that the output is closer to the user location. Merchants to enhance the user experience.
发明内容Summary of the invention
本申请提供一种地理位置服务的实现方法。The application provides a method for implementing a geographic location service.
第一方面,本申请实施例提供了一种地理位置服务的实现方法包括:确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置;根据所述地理位置服务请求中指定的请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征,以根据所述特征提供基于所述实时地理位置的服务。In a first aspect, an embodiment of the present application provides a method for implementing a geographic location service, including: determining a target reference geographic location associated with a real-time geographic location specified in a geographic location service request; and determining, according to the request specified in the geographic location service request The scene information and the feature information of the target reference geographic location determine characteristics of the real-time geographic location to provide a service based on the real-time geographic location according to the feature.
第二方面,本申请实施例提供了一种地理位置服务的实现装置,包括:参考地理位置确定模块,用于确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置;地理位置特征确定模块,用于根据所述地理位置服务请求中指定的请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征,以根据所述实时 地理位置的所述特征提供基于所述实时地理位置的服务。In a second aspect, the embodiment of the present application provides an apparatus for implementing a geographic location service, including: a reference geographic location determining module, configured to determine a target reference geographic location associated with a real-time geographic location specified in a geographic location service request; a feature determining module, configured to determine, according to the request scenario information specified in the geographic location service request and feature information of the target reference geographic location, a feature of the real-time geographic location, according to the feature of the real-time geographic location A service based on the real-time geographic location is provided.
可选的,所述装置还包括参考地理位置信息挖掘模块,用于基于用户历史行为数据,确定多个参考地理位置的特征信息,其中,各所述参考地理位置选自于所述用户历史行为数据中的地理位置,所述目标参考地理位置为所述多个参考地理位置中与所述实时地理位置关联的至少一个所述参考地理位置。Optionally, the device further includes a reference geographic location information mining module, configured to determine feature information of the multiple reference geographic locations based on the user historical behavior data, where each of the reference geographic locations is selected from the historical behavior of the user a geographic location in the data, the target reference geographic location being at least one of the reference geographic locations associated with the real-time geographic location of the plurality of reference geographic locations.
可选的,所述参考地理位置信息挖掘模块进一步用于:按照第一地理位置精度,确定多个候选参考地理位置;根据地理位置,将所述用户历史行为数据聚合至相应的所述候选参考地理位置;按照第二地理位置精度,确定多个所述参考地理位置;根据地理位置,将各所述候选参考地理位置对应的所述用户历史行为数据聚合至相应的所述参考地理位置;根据聚合至每个所述参考地理位置的用户历史行为数据,确定每个所述参考地理位置的特征信息;其中,所述第一地理位置精度小于所述第二地理位置精度。Optionally, the reference geographic location information mining module is further configured to: determine, according to the first geographic location accuracy, a plurality of candidate reference geographic locations; and aggregate the user historical behavior data to the corresponding candidate reference according to the geographic location. a plurality of the reference geographic locations according to the second geographic location accuracy; and the user historical behavior data corresponding to each of the candidate reference geographic locations is aggregated to the corresponding reference geographic location according to the geographic location; Aggregating to the user historical behavior data of each of the reference geographic locations, determining feature information of each of the reference geographic locations; wherein the first geographic location accuracy is less than the second geographic location accuracy.
可选的,所述参考地理位置确定模块进一步用于:通过动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置;其中,所述动态画圈召回为根据预设评价指标调整地理区域范围,并召回所述地理区域范围内的所述参考地理位置作为所述目标参考地理位置。Optionally, the reference geographic location determining module is further configured to: determine, by using a dynamic circle recall, the target reference geographic location associated with the real-time geographic location; wherein the dynamic circle recall is based on a pre- The evaluation index is adjusted to adjust the geographical area, and the reference geographic location within the geographic area is recalled as the target reference geographic location.
可选的,所述通过动态画圈召回的方式,通过所述动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置,包括:确定在所述实时地理位置的指定半径范围内的所述参考地理位置;根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度;当所述热度和商户密度满足预设阈值条件时,确定所述指定半径范围内的所述参考地理位置,作为与所述实时地理位置关联的所述目标参考地理位置。Optionally, the determining, by the dynamic circle recall, the target reference geographic location associated with the real-time geographic location by using the dynamic circle recall, including: determining the real-time geographic location. Determining the reference geographic location within a radius; determining the popularity of the real-time geographic location and the merchant density based on at least part of the characteristic information of the reference geographic location within the specified radius; when the heat and the merchant When the density satisfies a preset threshold condition, the reference geographic location within the specified radius is determined as the target reference geographic location associated with the real-time geographic location.
可选的,通过所述动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置,还包括:当所述热度和商户密度不满足所述预设阈值条件时,按照预设规则调整所述指定半径范围,重复执行确定在所述实时地理位置的所述指定半径范围内的所述参考地理位置,至根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度的步骤。Optionally, determining, by the manner of the dynamic circle recall, the target reference geographic location associated with the real-time geographic location, further comprising: when the heat and the merchant density do not satisfy the preset threshold condition, Adjusting the specified radius range according to a preset rule, and repeatedly performing determining the reference geographic location within the specified radius of the real-time geographic location to at least the reference geographic location within the specified radius And the step of determining the popularity of the real-time geographic location and the merchant density.
可选的,所述地理位置特征确定模块进一步用于:根据所述地理位置服务请求中指定的请求场景信息、以及所述目标参考地理位置的至少部分所述特征信息,确定所述实时地理位置的特征。Optionally, the geographic location feature determining module is further configured to: determine the real-time geographic location according to the requested scenario information specified in the geographic location service request, and at least part of the feature information of the target reference geographic location. Characteristics.
可选的,所述实时地理位置的特征包括:单一场景特征或复合场景特征;所述单一场景特征包括以下任意一项:热门商户特征、倾向雷达特征、热度特征、商户密度特征、地理位置分类特征、跨城市属性特征、热门关键词特征、热门类目特征;所述复合场景特征包括以下任意一项:分时段热门类目特征、分时段热门商户特征、分时段热门关键词特征、分类目热门商户特征、分类目热门关键词特征。Optionally, the feature of the real-time geographic location includes: a single scene feature or a composite scene feature; the single scene feature includes any one of the following: a popular merchant feature, a propensity radar feature, a heat feature, a merchant density feature, and a geographic location classification. Characteristics, cross-city attribute characteristics, popular keyword characteristics, and popular category features; the composite scene features include any of the following: hot time categories of time-divided categories, popular merchant characteristics by time period, popular keyword characteristics by time period, and classification items Popular merchant characteristics, classification target hot keyword characteristics.
可选的,所述倾向雷达特征通过以下方式确定:根据所述实时地理位置关联的目标参考地理位置的特征信息,确定每个商户与所述实时地理位置的直线距离和方向角;根据所述直线距离和方向角,将所述商户映射到所述实时地理位置的雷达图的预设扇形块上;对于每个所述扇形块,通过对映射到所述扇形块上的商户的预设商户行为进行聚合,确定所述扇形块的热度值;将所述雷达图的每一个所述扇形块的热度值的列表,作为所述实时地理位置的倾向雷达特征。Optionally, the propensity radar feature is determined by determining a linear distance and a direction angle of each merchant from the real-time geographic location according to the feature information of the target reference geographic location associated with the real-time geographic location; a straight line distance and a direction angle that maps the merchant to a predetermined sector of the radar map of the real-time geographic location; for each of the sector blocks, by a preset merchant that maps to a merchant on the sector The behavior is aggregated to determine a heat value of the sector; a list of heat values of each of the segments of the radar map is used as a propensity radar feature of the real-time geographic location.
可选的,所述跨城市属性特征通过以下方式确定:根据与所述实时地理位置关联的所有目标参考地理位置的预设商户行为次数和城市标识,确定每个所述参考地理位置的城市分布概率;当所述城市分布概率满足预设概率阈值时,确定所述实时地理位置具有跨城市属性;将满足预设条件的所述城市分布概率对应的城市标识的列表和指示所述实时地理位置具有跨城市属性的结果标识,作为所述实时地理位置的跨城市属性特征。Optionally, the cross-city attribute feature is determined by determining an urban distribution of each of the reference geographic locations according to a preset number of merchant behaviors and a city identifier of all target reference geographic locations associated with the real-time geographic location. a probability; when the urban distribution probability satisfies a preset probability threshold, determining that the real-time geographic location has a cross-city attribute; a list of city identifiers corresponding to the urban distribution probability that meets a preset condition and indicating the real-time geographic location A result identifier having a cross-city attribute as a cross-city attribute feature of the real-time geographic location.
第三方面,本申请实施例还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请实施例所述的地理位置服务的实现方法。In a third aspect, an embodiment of the present application further discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the computer program A method for implementing a geographic location service according to an embodiment of the present application.
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时本申请实施例公开的地理位置服务的实现方法的步骤。In a fourth aspect, the embodiment of the present application provides a computer readable storage medium, where the computer program is stored, and the program is executed by the processor, and the steps of the method for implementing the geographic location service disclosed in the embodiment of the present application are performed.
本申请实施例公开的地理位置服务的实现方法,确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置;根据所述地理位置服务请求中指定的请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征,以根据所述特征提供基于所述实时地理位置的服务,解决了现有技术中基于地理位置提供相关服务的方法效果较差的问题。本申请公开的地理位置服务的实现方法,通过结合预先确定的参考地理位置的特征信息,再结合请求地理位置服务的实时信息,动态确定提供地理位置服务所基于的多维度的地理位置特征,进一步提升了基于地理位置服务的实用性和准确性。The method for implementing the geographic location service disclosed in the embodiment of the present application determines a target reference geographic location associated with the real-time geographic location specified in the geographic location service request; and the request scenario information specified in the geographic location service request and the target reference The feature information of the geographic location determines the feature of the real-time geographic location to provide a service based on the real-time geographic location according to the feature, which solves the problem that the method for providing related services based on the geographic location in the prior art is less effective. The method for implementing the geographic location service disclosed in the present application dynamically determines the multi-dimensional geographic location feature on which the geographic location service is provided by combining the feature information of the predetermined reference geographic location and the real-time information of the requested geographic location service, and further Improve the usability and accuracy of geo-location based services.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present application. For the embodiments, other drawings may be obtained from those skilled in the art without any inventive labor.
图1是本申请实施例一的地理位置服务的实现方法流程图;1 is a flowchart of a method for implementing a geographic location service according to Embodiment 1 of the present application;
图2是本申请实施例二的地理位置服务的实现方法具体应用实施例流程图;2 is a flow chart of a specific application embodiment of a method for implementing a geographic location service according to Embodiment 2 of the present application;
图3是本申请实施例三的地理位置服务的实现装置结构示意图;3 is a schematic structural diagram of an apparatus for implementing a geographic location service according to Embodiment 3 of the present application;
图4是本申请实施例四的地理位置服务的实现装置结构示意图。4 is a schematic structural diagram of an apparatus for implementing a geographic location service according to Embodiment 4 of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
随着移动互联网技术的发展及LBS(Location Based Service,基于位置服务)要素的引入,人们可以方便的通过移动设备访问网络,获取服务。由此而兴起了一批O2O(Online-to-Offline)本地生活化服务,这种模式的本质是使得用户和服务彼此之间更为便捷的发现。O2O平台为用户提供与场景相关的服务时,地理位置是一个基本属性。例如,在O2O平台为用户提供商户相关的服务时,通常采用用户位置和商户位置之间的直线距离或用户位置和商户位置之间的行程距离作为位置特征,使得输出与用户位置距离更近的商户,以提升用户体验。然而,单纯依赖直线距离存在一定的不合理性。例如,用户和商户之间直线距离虽然很短,但是用户和商户之间隔着一条很宽的河,要经过很远处的一座桥才能到达所述商户。相比用户位置和商户位置之间的直线距离,依据用户位置和商户位置之间行程距离提供地理位置相关的服务更合理一些。然而,目前行程距离只能通过调用地图服务获取,O2O搜索推荐在线调用地图服务耗时较长,不符合O2O搜索推荐场景下快速响应的要求。With the development of mobile Internet technology and the introduction of LBS (Location Based Service) based elements, people can easily access the network and obtain services through mobile devices. This led to the emergence of a number of O2O (Online-to-Offline) local life services, the essence of this model is to make users and services more convenient to discover each other. Geographic location is a basic attribute when the O2O platform provides users with context-related services. For example, when the O2O platform is a service related to a user provider, a straight line distance between the user location and the merchant location or a travel distance between the user location and the merchant location is generally adopted as the location feature, so that the output is closer to the user location. Merchants to enhance the user experience. However, there is a certain irrationality in relying solely on linear distances. For example, although the linear distance between the user and the merchant is very short, the user and the merchant are separated by a wide river, and it is necessary to go through a bridge far away to reach the merchant. Compared to the linear distance between the user's location and the merchant's location, it is more reasonable to provide geographic location-related services based on the travel distance between the user's location and the merchant's location. However, the current travel distance can only be obtained by calling the map service. The O2O search recommendation calls the map service online for a long time, which does not meet the requirements of the fast response in the O2O search recommendation scenario.
可见,基于地理位置提供相关服务的方法仍然存在效率较低、服务效果较差的缺陷。It can be seen that the method of providing related services based on geographical location still has the defects of low efficiency and poor service effect.
实施例一Embodiment 1
本实施例公开的一种地理位置服务的实现方法,如图1所示,该方法包括:步骤110至步骤120。As shown in FIG. 1 , the method includes the following steps: Step 110 to Step 120.
步骤110,确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置。Step 110: Determine a target reference geographic location associated with the real-time geographic location specified in the geographic location service request.
地理位置服务请求中指定的实时地理位置为用户搜索请求中所含有的用户的当前地理位置。当用户或应用向平台发起基于地理位置的搜索请求时,平台获取所述用户或应用的实时地理位置;然后,确定所述实时地理位置附近预设范围内的发生过预设用户行为的地理位置,作为与所述实时地理位置关联的目标参考地理位置。其中,所述预设行为包括但不限于以下任意一项或多项:点击、购买、浏览、搜索。The real-time location specified in the location service request is the current geographic location of the user contained in the user search request. When the user or the application initiates a location-based search request to the platform, the platform acquires a real-time geographic location of the user or the application; and then determines a geographic location in the preset range near the real-time geographic location where the preset user behavior occurs , as a target reference geographic location associated with the real-time geographic location. The preset behavior includes but is not limited to any one or more of the following: click, purchase, browse, search.
所述预设范围可以为以所述实时地理位置为中心预设半径范围,也可以是根据预设指标确定的半径范围。其中,所述预设指标可以为所述预设范围内的商户热度、密集度等数据。The preset range may be a preset radius range centered on the real-time geographic location, or may be a radius range determined according to a preset index. The preset indicator may be data such as merchant popularity, concentration, and the like within the preset range.
在确定所述实时地理位置附近预设范围内的发生过预设用户行为的地理位置时,首先需要获取用户的历史行为数据;然后,根据用户历史行为数据确定发生过预设用户行为的地理位置;最后,根据地理位置分布(如稀疏度、热度等)对地理位置进行聚类、筛选,确定参考地理位置;以及,根据地理位置进行聚类、筛选结果,对所述地理位置处的用户历史行为数据进行合并,确定相应参考地理位置的特征信息。每个参考地理位置将对应一组特征信息;每组特征信息由多个维度组成;每个维度可以为一个特征,也可以为特征列表。When determining a geographical location in which a preset user behavior occurs within a preset range near the real-time geographic location, firstly, the historical behavior data of the user needs to be acquired; and then, the geographical location where the preset user behavior has occurred is determined according to the historical historical behavior data of the user. Finally, clustering and screening the geographical locations according to geographic location distribution (such as sparsity, heat, etc.) to determine the reference geographic location; and clustering according to the geographic location, screening the results, and user history of the geographic location The behavior data is combined to determine the feature information of the corresponding reference geographic location. Each reference geographic location will correspond to a set of feature information; each set of feature information is composed of multiple dimensions; each dimension may be a feature or a feature list.
所述特征信息为根据每个参考地理位置上的用户历史行为数据确定的用户行为和商户的预设指标的统计信息,例如:搜索信息、点击信息、浏览信息、商户类目等。具体实施时,所述特征信息包括但不限于以下任意一项或多项:纬度、经度、城市标识、不同时段的搜索关键词、不同时段的搜索关键词得点击数、搜索类目标识、搜索类目点击数统计、商户标识、商户点击数、商户下单数、商户位置经度、商户位置纬度、5星级商户数、4.5星级商户数、4星级商户数、3.5星级商户数、3星级商户数、3星级以下商户数、商户价格、地理位置类别、总uv(unique visitor,独立用户)数、点击uv数、下单uv数、总pv(Page View,访问)数、点击pv数、下单pv数等。The feature information is statistical information of user behavior and a preset indicator of the merchant determined according to user historical behavior data on each reference geographic location, such as search information, click information, browsing information, business category, and the like. In a specific implementation, the feature information includes, but is not limited to, any one or more of the following: latitude, longitude, city identity, search keywords in different time periods, number of clicks of search keywords in different time periods, search category identifier, search Category click statistics, business logo, business clicks, merchant orders, business location longitude, business location latitude, 5 star merchants, 4.5 star merchants, 4 star merchants, 3.5 star merchants, 3 Number of star merchants, number of merchants below 3 stars, merchant price, geographical location category, total uv (unique visitor), click uv number, order uv number, total pv (Page View, number of visits), click The number of pv, the number of pv orders, and the like.
步骤120,根据所述地理位置服务请求中指定的请求场景信息和所述参考地理位置 的特征信息,确定所述实时地理位置的特征。这样,可以根据所述实时地理位置的特征,提供基于所述实时地理位置的服务。Step 120: Determine, according to the request scenario information specified in the geographic location service request and the feature information of the reference geographic location, a feature of the real-time geographic location. In this way, a service based on the real-time geographic location can be provided based on the characteristics of the real-time geographic location.
当用户或应用向平台发起基于地理位置的搜索请求时,用户搜索请求中会含有请求场景信息,所述请求场景信息用于指示所述实时地理位置的特征匹配条件。所述特征匹配条件包括单一场景特征提取条件或复合场景特征提取条件。具体实施时,根据所述实时地理位置的请求场景信息中指示的特征匹配条件,如要提取的特征类别、特征匹配的时间段等,对所述参考地理位置的特征信息进行处理,得到所述实时地理位置的特征。所述请求场景信息指示的特征匹配条件不同,所提取的所述实时地理位置的特征也不同。When the user or the application initiates a location-based search request to the platform, the user search request may include request scenario information, where the request scenario information is used to indicate a feature matching condition of the real-time geographic location. The feature matching condition includes a single scene feature extraction condition or a composite scene feature extraction condition. In a specific implementation, the feature information of the reference geographic location is processed according to the feature matching condition indicated in the request scenario information of the real-time geographic location, such as the feature category to be extracted, the time period of the feature matching, and the like. The characteristics of real-time geographic location. The feature matching conditions indicated by the request scenario information are different, and the extracted features of the real-time geographic location are also different.
本申请实施例公开的地理位置服务的实现方法,通过确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置;根据所述地理位置服务请求中指定的请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征,以根据所述实时地理位置的特征提供基于所述实时地理位置的服务,可有效改善基于地理位置提供相关服务的效果。本申请公开的地理位置服务的实现方法,通过将预先确定的参考地理位置的特征信息与请求地理位置服务的实时信息相结合,可动态确定多维度的地理位置特征,从而有效提升了基于地理位置服务的实用性和准确性。The method for implementing a geographic location service disclosed in the embodiment of the present application, by determining a target reference geographic location associated with a real-time geographic location specified in a geographic location service request; and requesting scenario information specified in the geographic location service request and the target Referring to the feature information of the geographic location, determining the feature of the real-time geographic location to provide a service based on the real-time geographic location according to the feature of the real-time geographic location, and effectively improving the effect of providing related services based on the geographic location. The method for realizing the geographic location service disclosed in the present application can dynamically determine the multi-dimensional geographic location feature by combining the feature information of the predetermined reference geographic location with the real-time information of the requested geographic location service, thereby effectively improving the geographical location based on the geographic location. The practicality and accuracy of the service.
实施例二Embodiment 2
本实施例公开的一种地理位置服务的实现方法,如图2所示,该方法包括:步骤210至步骤240。As shown in FIG. 2, the method for implementing a geographic location service disclosed in this embodiment includes: Step 210 to Step 240.
步骤210,基于用户历史行为数据,确定参考地理位置的特征信息。Step 210: Determine feature information of the reference geographic location based on the user historical behavior data.
其中,所述参考地理位置选自于所述用户历史行为数据中的地理位置。所述特征信息为根据每个参考地理位置上的用户历史行为数据确定的用户行为和商户的预设指标的统计信息,例如:搜索信息、点击信息、浏览信息、商户类目等。The reference geographic location is selected from a geographic location in the historical behavior data of the user. The feature information is statistical information of user behavior and a preset indicator of the merchant determined according to user historical behavior data on each reference geographic location, such as search information, click information, browsing information, business category, and the like.
通过对用户历史行为数据进行处理,确定提供地理位置服务的平台所有用户发生过行为的地理位置,并根据用户历史行为数据对所述地理位置进行筛选和合并,最后确定参考地理位置。然后,挖掘每个参考地理位置的特征信息,作为后续确定实时地理位置的特征的部分数据源。By processing the historical behavior data of the user, the geographical location of all users of the platform providing the geographic location service is determined, and the geographical location is filtered and merged according to the historical historical behavior data of the user, and finally the reference geographic location is determined. The feature information for each reference geographic location is then mined as part of the data source for subsequent determination of the characteristics of the real-time geographic location.
首先,按照第一地理位置精度,确定候选参考地理位置。First, the candidate reference geographic location is determined according to the first geographic location accuracy.
每一条用户历史行为数据包括地理位置,所述地理位置可以通过经纬度坐标表示。 经纬度坐标可以采用不同的精度表示。可以预先将第一地理位置精度设置为10米,然后,确定用户历史行为数据中包括的地理位置以10米精度表示的经纬度坐标作为候选参考地理位置。Each piece of user historical behavior data includes a geographic location, which may be represented by latitude and longitude coordinates. The latitude and longitude coordinates can be expressed in different precisions. The first geographical position precision may be set to 10 meters in advance, and then the latitude and longitude coordinates represented by the 10 m precision of the geographical position included in the user history behavior data are determined as the candidate reference geographical position.
然后,根据地理位置,将用户历史行为数据聚合至相应所述候选参考地理位置。Then, based on the geographic location, the user historical behavior data is aggregated to the corresponding candidate reference geographic location.
在根据地理位置,将用户历史行为数据聚合至相应所述候选参考地理位置时,将对应同一候选参考地理位置的用户历史行为数据合并为所述候选参考地理位置上的用户历史行为数据例如,可将同一个候选参考地理位置对应的同一时间段内不同用户对同一商户的用户历史行为数据进行简单叠加。以第一地理位置精度为10米举例,经纬度坐标后面第4位表示10米,在经纬度(31.2134,121.4235)的候选参考地理位置上对某一商户A有两条用户历史行为数据分别对应pv(page view页面浏览量)1和2,则合并后得到经纬度(31.2134,121.4235)的候选参考地理位置上对商户A的pv等于3。When the user historical behavior data is aggregated to the corresponding candidate reference geographic location according to the geographic location, the user historical behavior data corresponding to the same candidate reference geographic location is merged into the user historical behavior data on the candidate reference geographic location, for example, The user historical behavior data of the same merchant is simply superimposed by different users in the same time period corresponding to the same candidate reference geographic location. The first geographical location accuracy is 10 meters, the fourth position after the latitude and longitude coordinates represents 10 meters, and the two user history behavior data corresponding to a merchant A in the candidate reference geographical position of the latitude and longitude (31.2134, 121.4235) respectively correspond to pv ( Page view page views) 1 and 2, then the merged latitude and longitude (31.2134, 121.4235) candidate reference geographic location has a pv equal to 3 for merchant A.
进一步的,为了提升所确定的候选参考地理位置的准确性和可用性,减少稀疏数据对地理位置特征提取的影响,并同时减少数据存储量,可在进行初步数据合并之后,根据所述候选参考地理位置的热度和对应的用户历史行为数据稀疏度,对所述候选参考地理位置进行清洗。例如,对用户历史行为数据量少于一定数值的候选参考地理位置进行删除,以及,对热度小于预设热度阈值的候选参考地理位置进行删除。Further, in order to improve the accuracy and usability of the determined candidate reference geographic location, reduce the impact of sparse data on the geographic location feature extraction, and simultaneously reduce the amount of data storage, after preliminary data combining, according to the candidate reference geography The candidate location is cleaned by the heat of the location and the corresponding user historical behavior data sparsity. For example, the candidate reference geographic location whose user history behavior data amount is less than a certain value is deleted, and the candidate reference geographic location whose heat is less than the preset heat threshold is deleted.
之后,按照第二地理位置精度,确定参考地理位置。例如,可以将第二地理位置精度设置为100米,将经过清洗后的每个候选参考地理位置以100米精度表示的经纬度坐标,分别作为参考地理位置。以候选参考地理位置(31.2134,121.4235)举例,其对应的参考地理位置经纬度为(31.213,121.423),即小数点后面保留3位小数。Thereafter, the reference geographic location is determined according to the second geographic location accuracy. For example, the second geographic location accuracy may be set to 100 meters, and the latitude and longitude coordinates represented by the 100 m precision of each candidate reference geographic location after cleaning may be used as the reference geographic location. For example, the candidate reference geographic location (31.2134, 121.4235) has a corresponding reference geographic location latitude and longitude (31.213, 121.423), that is, 3 decimal places are reserved after the decimal point.
再后,根据地理位置,将所述候选参考地理位置对应的用户历史行为数据聚合至相应的所述参考地理位置。Then, according to the geographic location, the user historical behavior data corresponding to the candidate reference geographic location is aggregated to the corresponding reference geographic location.
例如,可确定与同一个参考地理位置对应的热度低于预设热度值的候选参考地理位置,将这些候选参考地理位置上的用户历史行为数据进行合并,作为同一个参考地理位置上的用户历史行为数据。具体数据合并方法参见以第一地理位置精度进行数据合并,此处不再赘述。所述第二地理位置精度大于第一地理位置精度。For example, the candidate reference geographic locations whose heats corresponding to the same reference geographic location are lower than the preset heat value may be determined, and the user historical behavior data on the candidate reference geographic locations may be combined as the user history in the same reference geographic location. Behavioral data. For the specific data merging method, refer to the data merging with the first geographical location precision, which will not be described here. The second geographic location accuracy is greater than the first geographic location accuracy.
最后,根据聚合至每个所述参考地理位置的用户历史行为数据,确定相应参考地理位置的特征信息。Finally, the feature information of the corresponding reference geographic location is determined according to the user historical behavior data aggregated to each of the reference geographic locations.
经过如上的数据清洗和合并,每个参考地理位置对应至少一条合并后的用户历史行 为数据,所述用户历史行为数据中的各字段表示该条用户历史行为数据对应的参考地理位置上用户行为、商户等信息,例如用户点击行为的时间、次数、商户热度、类别属性等。通过对每个参考地理位置对应的用户历史行为数据进行处理分析,可以得到相应参考地理位置的特征信息。After the data cleaning and merging as described above, each reference geographic location corresponds to at least one merged user historical behavior data, and each field in the user historical behavior data represents a user behavior of the reference geographic location corresponding to the user historical behavior data, Information such as merchants, such as the time, number of times the user clicks, the popularity of the business, the category attribute, and so on. By processing and analyzing the user historical behavior data corresponding to each reference geographic location, the feature information of the corresponding reference geographic location can be obtained.
具体实施时,根据聚合至每个所述参考地理位置的用户历史行为数据,确定相应参考地理位置的特征信息,包括:按照用户历史行为数据的时间戳由先到后的顺序,为聚合至每个所述参考地理位置上的每条用户历史行为数据设置由小到大的可信度权重;根据每个所述参考地理位置上的每条用户历史行为数据及相应的可信度权重,分别确定相应参考地理位置的特征信息。In a specific implementation, the feature information of the corresponding reference geographic location is determined according to the user historical behavior data aggregated to each of the reference geographic locations, including: the timestamp according to the historical behavior data of the user is from the first to the last, and is aggregated to each Each user historical behavior data on the reference geographic location sets a credibility weight from small to large; according to each user historical behavior data and corresponding credibility weights in each of the reference geographic locations, respectively Determine the feature information of the corresponding reference geographic location.
对于一个地理位置点的历史行为数据,时间戳越近,数据的可参考性越高,即可信度越高。因此,按照用户历史行为数据的时间戳由先到后的的顺序,为每个参考地理位置对应的每条用户历史行为数据设置由小到大的可信度权重。例如,对于今天点击一个地理位置上的一家商户和一个月前在这个地理位置上也点击过同一家商户的两次用户行为,在计算该地理位置的点击行为得分时,今天的点击行为打分会比1个月前的点击行为打分要高。For the historical behavior data of a geographical location point, the closer the time stamp is, the higher the referenceability of the data, the higher the reliability. Therefore, the timestamps of the historical behavior data of the user are set in a first-to-last order, and a credibility weight from small to large is set for each user historical behavior data corresponding to each reference geographic location. For example, for a business who clicked on a location today and two user behaviors that also clicked on the same business a month ago, when calculating the click behavior score for that location, today’s click behavior scores It is higher than the click behavior of 1 month ago.
然后,根据聚合至每个参考地理位置的用户历史行为数据及相应的可信度权重,分别确定相应参考地理位置的特征信息。例如,每个参考地理位置的特征信息,可包括但不限于以下任意一项或多项:纬度、经度、城市标识、时段1搜索关键词、时段2搜索关键词、时段3搜索关键词、时段4搜索关键词、时段1搜索关键词点击数、时段2搜索关键词点击数、时段3搜索关键词点击数、时段4搜索关键词点击数、搜索类目标识、搜索类目点击数统计、商户标识、商户点击数、商户下单数、商户位置经度、商户位置纬度、5星级商户数、4.5星级商户数、4星级商户数、3.5星级商户数、3星级商户数、3星级以下商户数、商户价格、地理位置类别、总uv数、点击uv数、下单uv数、总pv数、点击pv数、下单pv数。Then, according to the user historical behavior data and the corresponding credibility weights aggregated to each reference geographic location, the feature information of the corresponding reference geographic location is determined respectively. For example, the feature information of each reference geographic location may include, but is not limited to, any one or more of the following: latitude, longitude, city identification, time period 1 search keyword, time period 2 search keyword, time period 3 search keyword, time period 4 search keywords, time period 1 search keyword clicks, time 2 search keyword hits, time 3 search keyword hits, time 4 search keyword hits, search category identification, search category click statistics, merchants Logo, business clicks, merchant orders, business location longitude, business location latitude, 5-star merchants, 4.5-star merchants, 4-star merchants, 3.5-star merchants, 3-star merchants, 3 stars The number of merchants below the rank, merchant price, geographical location category, total uv number, click uv number, order uv number, total pv number, click pv number, order pv number.
基于用户历史行为数据的可信度权重,确定每个参考地理位置的特征信息的具体方法,可参见本领域技术人员熟知的任意技术,本申请不再赘述。确定的参考地理位置及每个参考地理位置的特征信息,将用作后续确定实时地理位置的特征的一部分数据源。For a specific method for determining the feature information of each reference geographic location based on the credibility weight of the user's historical behavior data, refer to any technology that is well known to those skilled in the art, and details are not described herein again. The determined reference geographic location and the feature information for each reference geographic location will be used as part of the data source for subsequent determination of the characteristics of the real-time geographic location.
步骤220,获取接收到的地理位置服务请求中指定的实时地理位置和请求场景信息。Step 220: Acquire real-time geographic location and request scenario information specified in the received geographic location service request.
以应用请求基于地理位置的搜索服务为例,当用户通过客户端输入执行搜索操作时, 搜索服务平台将接收到所述客户端发送的地理位置服务请求。通常,所述地理位置服务请求包括所述客户端所在设备的实时地理位置。所述实时地理位置是由所述客户端调用运行所述客户端的系统接口,获取的所述系统的宿主设备(如用户使用的移动终端)的实时地理位置。具体实施时,所述实时地理位置可以通过经纬度坐标表示。Taking the application requesting the location-based search service as an example, when the user performs a search operation through the client input, the search service platform will receive the geographic location service request sent by the client. Typically, the geographic location service request includes a real-time geographic location of the device in which the client is located. The real-time geographic location is a real-time geographic location of a host device (such as a mobile terminal used by the user) acquired by the client by calling the system interface of the client. In a specific implementation, the real-time geographic location may be represented by latitude and longitude coordinates.
优选的,所述搜索服务平台还需要客户端发送所述地理位置服务请求的请求场景信息。所述请求场景信息用于指示所述实时地理位置的特征匹配条件。所述特征匹配条件包括单一场景特征提取条件或复合场景特征提取条件。其中,所述单一场景特征包括以下任意一项:热门商户特征、倾向雷达特征、热度特征、商户密度特征、地理位置分类特征、跨城市属性特征、热门关键词特征、热门类目特征;所述复合场景特征包括以下任意一项:叠加至少两项所述单一场景特征、叠加至少一项所述单一场景特征和时间段。例如,所述请求场景信息为热门商户特征的预设标识,用于指示获取所述实时地理位置的热门商户特征。再例如,所述请求场景信息包括时间段和热门类目特征的预设标识,用于指示获取所述实时地理位置的所属时间段的热门类目特征。Preferably, the search service platform further needs the client to send the request scenario information of the geographic location service request. The request scenario information is used to indicate a feature matching condition of the real-time geographic location. The feature matching condition includes a single scene feature extraction condition or a composite scene feature extraction condition. The single scene feature includes any one of the following: a popular merchant feature, a propensity radar feature, a heat feature, a merchant density feature, a geographic location classification feature, a cross-city attribute feature, a popular keyword feature, and a popular category feature; The composite scene feature includes any one of the following: superimposing at least two of the single scene features, superimposing at least one of the single scene features, and a time period. For example, the request scenario information is a preset identifier of a popular merchant feature, and is used to indicate that a popular merchant feature of the real-time geographic location is acquired. For another example, the request scenario information includes a preset identifier of the time period and the hot category feature, and is used to indicate that the hot category feature of the time zone of the real-time geographic location is acquired.
步骤230,确定参考地理位置中与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置。Step 230: Determine a target reference geographic location in the reference geographic location that is associated with the real-time geographic location specified in the geographic location service request.
例如,可通过动态画圈召回的方式,确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置。其中,所述动态画圈召回为根据预设评价指标调整地理区域范围,并召回所述地理区域范围内的参考地理位置。其中,所述预设评价指标包括但不限于实时地理位置的热度和商户密度。For example, the target reference geographic location associated with the real-time geographic location specified in the geographic service request can be determined by dynamic circle recall. The dynamic circle recall is to adjust a geographic area according to a preset evaluation index, and recall a reference geographic location within the geographic area. The preset evaluation indicators include, but are not limited to, the heat of the real-time geographic location and the merchant density.
通过动态画圈召回的方式,确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置,包括:确定地理位置服务请求中指定的实时地理位置指定半径范围内的参考地理位置;根据所述指定半径范围内的参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度;当所述热度和商户密度满足预设阈值条件时,确定所述指定半径范围内的参考地理位置,作为与所述实时地理位置关联的目标参考地理位置。Determining a target reference geographic location associated with the real-time geographic location specified in the geographic location service request by means of a dynamic circle recall, including: determining a reference geographic location within a specified radius of the real-time geographic location specified in the geographic location service request; Determining the heat of the real-time geographic location and the merchant density of the at least part of the feature information of the reference geographic location within the specified radius; determining the specified radius range when the heat and the merchant density satisfy a preset threshold condition The reference geographic location within the reference geographic location associated with the real-time geographic location.
根据地理位置服务的具体需求,可以预先设置指定半径的初始值,例如,将指定半径的初始值设置为100米。在获取到实时地理位置之后,可以确定一个以实时地理位置为圆心、指定半径为100米确定一个圆形地理范围,将该圆形地理范围内的参考地理位置,作为与所述实时地理位置关联的目标参考地理位置,用于作为提取实时地理位置的特征的一部分数据源。According to the specific needs of the geographic location service, the initial value of the specified radius can be preset, for example, the initial value of the specified radius is set to 100 meters. After obtaining the real-time geographic location, it may be determined that a circular geographic extent is determined by using a real-time geographic location as a center and a specified radius of 100 meters, and the reference geographic location within the circular geographic extent is associated with the real-time geographic location. The target is referenced to the geographic location and is used as part of the data source to extract features of the real-time geographic location.
然后,根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度。Then, determining the heat of the real-time geographic location and the merchant density according to at least part of the feature information of the reference geographic location within the specified radius.
对于热门的地理位置点,用户数据密集,画圈半径比较小就可以获取足够的数据量,以使得获取的数据足够反映该实时地理位置的特点。然而,对于冷门的地理位置点,画圈半径比较大才可以获取足够的数据量。所以,需要首先根据在初始确定的圆形地理范围内召回的各位置点上的数据进行在线聚合,以确定所述圆形地理范围的热度和商户密度,并确定是否进行二次画圈召回以及二次召回的画圈半径大小。For popular geographic location points, the user data is dense, and the radius of the circle is small to obtain sufficient data amount, so that the acquired data is sufficient to reflect the characteristics of the real-time geographic location. However, for the geographic location of the unpopular, the radius of the circle is relatively large to obtain sufficient data. Therefore, it is necessary to first perform online aggregation based on the data at various points recalled within the initially determined circular geographic range to determine the heat of the circular geographic range and the merchant density, and determine whether to perform a second circle recall and The radius of the circle of the second recall.
其中,热度可以通过如下公式计算:Among them, the heat can be calculated by the following formula:
热度=点击uv*0.8+下单uv*1.2。Heat = click uv * 0.8 + order uv * 1.2.
其中,点击uv为召回的所有参考地理位置的点击uv之和,下单uv为召回的所有参考地理位置的下单uv之和。Among them, click uv is the sum of the clicks uv of all the reference geographic locations recalled, and the order uv is the sum of the order uvs of all the reference geographic locations recalled.
商户密度可以通过统计召回的每个参考地理位置上不同星级的商户总个数,然后将商户个数除以召回对应的圆形地理范围的面积,得到商户密度。The merchant density can be obtained by counting the total number of merchants of different stars in each reference geographic location, and then dividing the number of merchants by the area of the circular geographic area corresponding to the recall to obtain the merchant density.
进一步的,在根据所述指定半径范围内的参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度之后,当所述热度和商户密度不满足预设阈值条件时,按照预设规则调整所述指定半径范围,重复执行确定地理位置服务请求中指定的实时地理位置指定半径范围内的参考地理位置,并再一次根据所述指定半径范围内的参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度的步骤。Further, after determining the heat of the real-time geographic location and the merchant density according to at least part of the feature information of the reference geographic location within the specified radius, when the heat and the merchant density do not meet the preset threshold condition Adjusting the specified radius range according to a preset rule, repeatedly performing a determination of a reference geographic location within a specified radius of the real-time geographic location specified in the geographic location service request, and again according to the reference geographic location within the specified radius And the step of determining the popularity of the real-time geographic location and the merchant density.
当所述热度和商户密度不满足预设阈值条件时,如小于预设热度阈值和商户密度阈值,则说明本次召回的圆形地理范围的参考地理位置的数据量不足以确定实时地理位置的特征,则按照预设规则调整所述指定半径范围,如按照预设梯度,将半径增加100米,按照指定半径等于200米,重复执行确定请求地理位置服务的实时地理位置指定半径范围内的所述参考地理位置。然后,再一次根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度,并进行判断,直至所述热度和商户密度满足预设阈值条件。When the heat and the merchant density do not meet the preset threshold condition, such as less than the preset heat threshold and the merchant density threshold, the data volume of the reference geographic location of the circular geographic range of the recall is insufficient to determine the real-time geographic location. Feature, the specified radius range is adjusted according to a preset rule, such as increasing the radius by 100 meters according to the preset gradient, and repeating the determination within the specified radius of the real-time geographic location requesting the geographic location service according to the specified radius equal to 200 meters. Refer to the geographic location. Then, determining, according to at least part of the feature information of the reference geographic location within the specified radius, the heat of the real-time geographic location and the merchant density, and determining, until the heat and the merchant density meet the pre- Set the threshold condition.
当所述热度和商户密度满足预设阈值条件时,确定所述指定半径范围内的所述参考地理位置,作为与所述实时地理位置关联的所述目标参考地理位置。当所述热度和商户密度满足预设阈值条件时,说明本次画圈召回的参考地理位置的特征数据足够反映所述 实时地理位置的特征,接下来可以根据召回的参考地理位置的特征数据和当前地理位置服务请求的请求场景信息,确定所述实时地理位置的特征。When the heat and merchant density meet a preset threshold condition, the reference geographic location within the specified radius is determined as the target reference geographic location associated with the real-time geographic location. When the heat and the merchant density meet the preset threshold condition, the feature data of the reference geographic location of the current circle recall is sufficient to reflect the feature of the real-time geographic location, and then the feature data of the referenced geographic location may be The request scenario information of the current geographic location service request determines the characteristics of the real-time geographic location.
所述热度和商户密度的预设阈值条件可根据实际测试的数据分布情况确定。调整所述指定半径的预设规则可以为按照100米或其他步长递增半径。The preset threshold conditions of the heat and merchant density may be determined according to the data distribution of the actual test. The preset rule for adjusting the specified radius may be to increase the radius by 100 meters or other steps.
步骤240,根据所述地理位置服务请求中指定的请求场景信息和所述参考地理位置的特征信息,确定所述实时地理位置的特征。这样,可以根据所述实时地理位置的特征提供基于所述实时地理位置的服务。Step 240: Determine, according to the request scenario information specified in the geographic location service request and the feature information of the reference geographic location, a feature of the real-time geographic location. In this way, services based on the real-time geographic location can be provided based on characteristics of the real-time geographic location.
其中,所述实时地理位置的特征包括单一场景特征或复合场景特征。本申请由于结合了一定地理范围内的参考地理位置的特征数据确定实时地理位置的特征,因此可以确定丰富的地理位置特征用于实现基于地理位置的服务。同时,为了进一步提升基于地理位置服务的准确性和实用性,可进一步结合地理位置服务请求的请求场景信息,确定用于请求场景信息的地理位置特征。The feature of the real-time geographic location includes a single scene feature or a composite scene feature. The present application determines the characteristics of the real-time geographic location by combining the feature data of the reference geographic location within a certain geographic range, so that the rich geographic location feature can be determined for implementing the geographic location-based service. At the same time, in order to further improve the accuracy and practicability of the location-based service, the geographic location feature for requesting the scenario information may be further determined by the request scenario information of the geographic service request.
所述实时地理位置的特征包括单一场景特征或复合场景特征。当所述请求场景信息指定的特征匹配条件为一个单一场景特征提取条件时,可根据所述地理位置服务请求中指定的请求场景信息、以及与所述实时地理位置关联的目标参考地理位置的至少部分所述特征信息,确定所述实时地理位置的单一场景特征。The features of the real-time geographic location include a single scene feature or a composite scene feature. When the feature matching condition specified by the request scenario information is a single scene feature extraction condition, at least the request scenario information specified in the geographic location service request and the target reference geographic location associated with the real-time geographic location may be at least And the part of the feature information determines a single scene feature of the real-time geographic location.
下面,举例说明各项单一场景特征的含义和具体提取方法。In the following, the meanings and specific extraction methods of each single scene feature are illustrated.
1、热门商户特征1. Popular merchant characteristics
热门商户特征用于表示所述实时地理位置附近的热门商户。可根据画圈召回的与所述实时地理位置关联的所有目标参考地理位置中每个位置点的特征信息,如每个位置点上的商户的浏览、点击、购买数量等数据,计算实时地理位置的热门商户特征。例如,可通过如下公式计算每个商户的热度得分:Popular merchant features are used to represent popular merchants near the real-time location. The real-time geographic location may be calculated according to the feature information of each of the target reference geographic locations associated with the real-time geographic location, such as the browsing, clicking, and purchase quantity of the merchants at each location point. Popular business features. For example, each merchant's heat score can be calculated by the following formula:
score=a*点击pv数+b*点击uv数+c*下单pv数。Score=a*Click pv number+b*click uv number+c* to place a single pv number.
然后,将热度得分topN的商户作为所述实时地理位置的热门商户特征。其中,a、b和c为不同特征信息的权重,根据实际业务需要设置;点击pv数、点击uv数和下单pv数为与所述实时地理位置关联的所有目标参考地理位置的相应特征信息之和。Then, the merchant of the heat score topN is taken as the popular merchant feature of the real-time geographic location. Where a, b, and c are weights of different feature information, which are set according to actual business needs; click pv number, click uv number, and order pv number are corresponding feature information of all target reference geographic locations associated with the real-time geographic location. Sum.
2、倾向雷达特征2. Propensity to radar characteristics
倾向雷达特征用于指示雷达图上每一块扇形上的热度大小。当所述单一场景特征包 括倾向雷达特征时,可根据与所述实时地理位置关联的目标参考地理位置的特征信息,确定每个商户与所述实时地理位置的直线距离和方向角;根据所述直线距离和方向角,将所述商户映射到所述实时地理位置的雷达图的预设扇形块上;对于每个所述扇形块,通过对映射到所述扇形块上的商户的预设商户行为进行聚合,确定所述扇形块的热度值;将所述雷达图的每一个所述扇形块的热度值的列表,作为所述实时地理位置的倾向雷达特征。The propensity radar feature is used to indicate the amount of heat on each sector of the radar chart. When the single scene feature includes a propensity radar feature, determining a linear distance and a direction angle of each merchant from the real-time geographic location according to feature information of the target reference geographic location associated with the real-time geographic location; a straight line distance and a direction angle that maps the merchant to a predetermined sector of the radar map of the real-time geographic location; for each of the sector blocks, by a preset merchant that maps to a merchant on the sector The behavior is aggregated to determine a heat value of the sector; a list of heat values of each of the segments of the radar map is used as a propensity radar feature of the real-time geographic location.
其中,预设商户行为可以为点击、浏览、购买商户的行为。根据画圈召回的与所述实时地理位置关联的所有目标参考地理位置的特征信息,通过对相同商户浏览、点击、购买行为进行累加,确定每个商户的预设商户行为。然后,计算召回的所有参考地理位置上每个商户的地理位置和所述实时地理位置的直线距离和方向角,根据所述直线距离和方向角,将每个商户映射到以所述实时地理位置为中心的雷达图上。最后,对于雷达图上每块扇形上的商户和商户行为分别进行聚合计算,得到每块扇形上的一个热度值。所述聚合计算可以为将同一扇形块内的所有商户的预设商户行为累加。将雷达图上每一块扇形上对应的热度值的列表作为所述实时地理位置的倾向雷达特征。Among them, the preset merchant behavior can be the behavior of clicking, browsing, and purchasing the merchant. The preset merchant behavior of each merchant is determined by accumulating the browsing, clicking, and purchasing behaviors of the same merchant according to the feature information of all the target reference geographic locations associated with the real-time geographic location recalled by the circle. Then, calculating the geographic location of each merchant on the referenced geographic location and the linear distance and direction angle of the real-time geographic location, and mapping each merchant to the real-time geographic location according to the linear distance and the direction angle Centered on the radar chart. Finally, the business and merchant behaviors on each sector of the radar chart are aggregated to obtain a heat value on each sector. The aggregation calculation may be to accumulate preset merchant behaviors of all merchants within the same sector. A list of corresponding heat values on each sector of the radar map is used as the propensity radar feature of the real-time geographic location.
3、热度特征3, heat characteristics
热度特征包括绝对热度、相对热度和分时段热度,用于指示所述实时地理位置的热度。例如,可根据画圈召回的与所述实时地理位置关联的所有目标参考地理位置的特征信息,通过如下公式计算:The heat characteristics include absolute heat, relative heat, and time-division heat for indicating the heat of the real-time geographic location. For example, the feature information of all target reference geographic locations associated with the real-time geographic location recalled by the circle may be calculated by the following formula:
热度=点击uv*0.8+下单uv*1.2,Heat = click uv * 0.8 + order uv * 1.2,
其中,点击uv为所有参考地理位置的点击uv之和,下单uv为所有参考地理位置的下单uv之和。绝对热度即热度绝对值,相对热度是将热度值除以当前城市的所有地理位置整体热度后并进行归一化后的热度值,分时段热度是只统计指定时间段的数据计算得到的热度值。具体实施时,将归一化之后的范围在0-1的热度值作为所述实时地理位置的热度特征。Among them, click uv is the sum of the clicks uv of all reference geographic locations, and the order uv is the sum of the order uvs of all reference geographic locations. The absolute heat is the absolute value of the heat. The relative heat is the heat value after the heat value is divided by the overall heat of all the geographical locations of the current city. The heat of the time is the heat value calculated by only counting the data of the specified time period. . In a specific implementation, the heat value in the range of 0-1 after normalization is used as the heat feature of the real-time geographic location.
4、商户密度特征4. Merchant density characteristics
商户密度特征用于指示所述实时地理位置附近的商户分布密度。当所述单一场景特征包括商户密度特征时,可根据画圈召回的与所述实时地理位置关联的目标参考地理位置的特征信息,确定每个所述参考地理位置上不同星级的商户总个数;计算所有所述参考地理位置上不同星级的商户总个数;将每个星级的商户总个数除以所述实时地理位置 指定半径范围的面积得到的每个星级对应的商户密度,作为所述实时地理位置的商户密度特征。The merchant density feature is used to indicate the distribution density of merchants in the vicinity of the real-time geographic location. When the single scene feature includes the merchant density feature, the total number of merchants of different star ratings in each of the reference geographic locations may be determined according to the feature information of the target reference geographic location associated with the real-time geographic location recalled by the circle Calculating the total number of merchants of different stars in all the reference geographical locations; dividing the total number of merchants of each star by the area of the specified radius of the real-time geographic location to obtain the merchant corresponding to each star Density, as a merchant density feature of the real-time geographic location.
例如,可根据画圈召回的与所述实时地理位置关联的所有目标参考地理位置的特征信息计算每个参考地理位置上不同星级的商户总个数,然后,将商户个数除以召回对应的圆形地理范围的面积,得到商户密度。例如,首先对于每个参考地理位置上的商户,首先分星级统计商户个数,例如三星商户3个,四星商户4个等等,将分星级的商户个数除以本次召回的圆形地理范围的面积,即得到分星级统计商户密度。进一步的,将每个参考地理位置上的所有星级商户的总个数,除以本次召回的圆形地理范围的面积,即得到总体商户密度。将分星级计算得到的对应星级的值为0-1的商户密度作为所述实时地理位置的商户密度特征。For example, the total number of merchants with different star ratings in each reference geographic location may be calculated according to the feature information of all target reference geographic locations associated with the real-time geographic location recalled by the circle, and then the number of merchants is divided by the recall corresponding The area of the circular geographic area, the density of merchants. For example, first, for each merchant in the reference geographical location, first count the number of merchants by star rating, such as 3 Samsung merchants, 4 four-star merchants, etc., and divide the number of merchants by star rating by this recall. The area of the circular geographical area, that is, the density of merchants by star rating. Further, by dividing the total number of all star-level merchants in each reference geographic location by the area of the circular geographic area of the recall, the overall merchant density is obtained. The merchant density of the corresponding star value calculated by the star rating is 0-1 as the merchant density characteristic of the real-time geographic location.
5、地理位置分类特征5. Geographical classification features
地理位置分类特征用于指示所述实时地理位置所在区域的类别,如所述实时地理位置位于学校区域、商场区域等。当所述单一场景特征包括地理位置分类特征时,可根据画圈召回的与所述实时地理位置关联的所有目标参考地理位置对应的地理位置类别特征,确定所述参考地理位置分类的概率分布;确定最高概率对应的地理位置类别,作为所述实时地理位置的地理位置类别;将所述实时地理位置的地理位置类别和该地理位置类别对应的概率值,作为所述实时地理位置的地理位置分类特征。The geographic location classification feature is used to indicate the category of the real-time geographic location, such as the real-time geographic location located in the school area, the shopping mall area, and the like. When the single scene feature includes a geographic location classification feature, the probability distribution of the reference geographic location classification may be determined according to the geographic location category feature corresponding to all the target reference geographic locations associated with the real-time geographic location; Determining a geographic location category corresponding to the highest probability, as a geographic location category of the real-time geographic location; using a geographic location category of the real-time geographic location and a probability value corresponding to the geographic location category as a geographic location classification of the real-time geographic location feature.
例如,计算与所述实时地理位置关联的所有目标参考地理位置中属于商场、机场、学校等等类别的地理位置的概率分布,如果属于商场类别的位置点最多,则确定所述实时地理位置的地理位置分布特征为商场。For example, calculating a probability distribution of geographical locations belonging to a shopping mall, an airport, a school, and the like among all target reference geographic locations associated with the real-time geographic location, and determining the real-time geographic location if the location points belonging to the shopping mall category are the most The geographical distribution feature is the mall.
6、跨城市属性特征6, cross-city attribute characteristics
跨城市属性用于指示所述实时地理位置是否支持跨城市的服务以及可跨入的城市。当所述单一场景特征包括跨城市属性特征时,可根据与所述实时地理位置关联的所有目标参考地理位置的预设商户行为次数和城市标识,确定每个所述参考地理位置的城市分布概率;当所述城市分布概率满足预设概率阈值时,确定所述实时地理位置具有跨城市属性;将满足预设条件的所述城市分布概率对应的城市标识的列表和指示所述实时地理位置具有跨城市属性的结果标识,作为所述实时地理位置的跨城市属性特征。The cross-city attribute is used to indicate whether the real-time geographic location supports services across cities and cities that can be entered. When the single scene feature includes a cross-city attribute feature, the city distribution probability of each of the reference geographic locations may be determined according to a preset number of merchant behaviors and a city identifier of all target reference geographic locations associated with the real-time geographic location. Determining, when the urban distribution probability satisfies a preset probability threshold, the real-time geographic location has a cross-city attribute; a list of city identifiers corresponding to the urban distribution probability that meets a preset condition and indicating that the real-time geographic location has The result identifier of the cross-city attribute is used as the cross-city attribute feature of the real-time geographic location.
首先,根据画圈召回的与所述实时地理位置关联的所有目标参考地理位置的特征信息中的点击、浏览、下单数据等,统计每个参考地理位置上点击、浏览、下单行为的次 数和城市标识,确定这些用户历史行为数据中商户的城市分布,例如,确定每个参考地理位置上的跨城市预设商户行为(如点击、浏览、下单行为)次数。然后,根据每个参考地理位置上的跨城市行为次数,确定可跨入的城市的跨城市概率。最后,根据所述跨城市概率确定所述实时地理位置是否具有跨城市属性,以及所述实时地理位置对应的可跨入的城市。例如,所述实时地理位置为苏州昆山花桥,所在城市为苏州,而“苏州昆山花桥”的参考地理位置中,有60%的商家是上海市的,则说明“苏州昆山花桥”具备跨城市属性,可跨入城市包括上海。基于地理位置服务推荐“苏州昆山花桥”关联的商户时,则会出现上海市的商户。First, counting the number of clicks, browsing, and ordering behaviors in each reference geographic location according to the click, browse, and order data in the feature information of all target reference geographic locations associated with the real-time geographic location recalled by the circle And the city identifier, determining the city distribution of the merchants in the historical behavior data of the users, for example, determining the number of preset merchant behaviors (such as click, browse, and order behavior) across the city in each reference geographic location. Then, based on the number of cross-city behaviors on each reference geographic location, determine the cross-city probability of the cities that can enter. Finally, determining whether the real-time geographic location has a cross-city attribute according to the cross-city probability, and the traversable city corresponding to the real-time geographic location. For example, the real-time geographic location is Suzhou Kunshan Huaqiao, where the city is Suzhou, and 60% of the reference locations of “Suzhou Kunshan Huaqiao” are in Shanghai, indicating that “Suzhou Kunshan Huaqiao” has Cross-city attributes can be incorporated into cities including Shanghai. When the merchants associated with “Suzhou Kunshan Huaqiao” are recommended based on the geographic location service, there will be merchants in Shanghai.
7、热门关键词特征7, popular keyword features
热门关键词用于指示所述实时地理位置附近的服务涉及的热门关键词。可对根据画圈召回的与所述实时地理位置关联的所有目标参考地理位置的特征信息中的搜索关键词进行统计聚合,将出现次数最多的topN个搜索关键词的列表,作为所述实时地理位置的热门关键词特征。Popular keywords are used to indicate popular keywords involved in the service near the real-time location. Statistic aggregation of search keywords in feature information of all target reference geographic locations associated with the real-time geographic location recalled according to the circle, and a list of topN search keywords with the most occurrences as the real-time geography Popular keyword features for location.
8、热门类目特征8, hot category features
热门类目用于指示所述实时地理位置附近的服务涉及的商品的热门类目。可对根据画圈召回的与所述实时地理位置关联的所有目标参考地理位置的特征信息中的搜索类目标识进行统计聚合,将出现次数最多的topN个搜索类目的列表,作为所述实时地理位置的热门类目特征。The popular category is used to indicate the hot category of the item involved in the service near the real-time location. Performing statistical aggregation on the search category identifiers in the feature information of all target reference geographic locations associated with the real-time geographic location recalled according to the circle, and using the list of topN search categories with the most occurrences as the real-time Popular category features for geographic locations.
具体实施时,所述实时地理位置的单一场景特征不限于以上几种,还可以包括其他特征。每种特征的确定方法也不限于本申请实施例中例举的方法。In a specific implementation, the single scene feature of the real-time geographic location is not limited to the above, and may also include other features. The method of determining each feature is also not limited to the method exemplified in the embodiment of the present application.
所述复合场景特征包括但不限于以下任意一项:分时段热门类目特征、分时段热门商户特征、分时段热门关键词特征、分类目热门商户特征、分类目热门关键词特征。所述复合场景特征是根据所述请求场景信息中指定的复合场景特征提取条件确定的。所述复合场景特征提取条件包括以下任意一项:组成复合场景的单一场景分别对应的单一场景特征、组成复合场景的单一场景分别对应的单一场景特征和时间段。当所述请求场景信息为复合场景特征提取条件时,可根据所述地理位置服务请求中指定的请求场景信息、以及通过动态画圈召回的方式确定的与所述实时地理位置关联的目标参考地理位置的至少部分所述特征信息,确定所述实时地理位置的复合场景特征。The composite scene features include, but are not limited to, any one of the following: a time-series popular category feature, a time-divided popular merchant feature, a time-divided popular keyword feature, a classified target popular merchant feature, and a classified target popular keyword feature. The composite scene feature is determined according to a composite scene feature extraction condition specified in the request scenario information. The composite scene feature extraction condition includes any one of the following: a single scene feature corresponding to a single scene constituting the composite scene, a single scene feature corresponding to a single scene constituting the composite scene, and a time segment respectively. When the request scenario information is a composite scene feature extraction condition, the target reference geographic information associated with the real-time geographic location may be determined according to the requested scenario information specified in the geographic location service request and the manner of dynamic circle recall. At least a portion of the feature information of the location determines a composite scene feature of the real-time geographic location.
下面,举例说明复合场景特征的含义和具体提取方法。In the following, the meaning of the composite scene feature and the specific extraction method are illustrated.
1、分时段热门商户特征1. Popular merchant characteristics in different time periods
分时段热门商户特征用于指示所述实时地理位置附近的指定时段的热门商户。例如,当请求场景信息中的复合场景特征提取条件为时间段和热门商户特征时,首先,根据指定的时间段,从画圈召回的与所述实时地理位置关联的所有目标参考地理位置的特征信息中,筛选出对应时间段的商户信息;然后,将筛选之后的商户信息按照前述确定热门商户特征的方法计算每个商户的热度得分;最后,获取所述热度得分topN的商户的列表作为所述实时地理位置的分时段热门商户特征。The time-divided popular merchant feature is used to indicate a popular merchant for a specified time period near the real-time geographic location. For example, when the composite scene feature extraction condition in the request scene information is a time period and a popular merchant feature, first, according to the specified time period, the characteristics of all the target reference geographic locations associated with the real-time geographic location recalled from the circle are retrieved according to the specified time period. In the information, the merchant information of the corresponding time period is filtered out; then, the merchant information after the screening is calculated according to the foregoing method for determining the hot merchant characteristics; and finally, the list of the merchants of the heat score topN is obtained as the A time-sharing popular business feature of a real-time geographic location.
2、分类目热门商户特征2. Classification of popular merchant characteristics
分类目热门商户特征用于指示所述实时地理位置附近的指定类目的热门商户。例如,当请求场景信息中的复合场景特征提取条件为叠加类目特征和热门商户特征时,首先,根据指定的类目特征,如类目标识,从与所述实时地理位置关联的所有目标参考地理位置的特征信息中,筛选出对应类目的商户信息;然后,将筛选之后的商户信息按照前述确定热门商户特征的方法计算每个商户的热度得分;最后,获取所述类目下热度得分topN的商户的列表作为所述实时地理位置的分类目热门商户特征。The classification target popular merchant feature is used to indicate a popular merchant of a specified category near the real-time geographic location. For example, when the composite scene feature extraction condition in the request scene information is a superimposed category feature and a popular merchant feature, first, all target references associated with the real-time geographic location are determined according to a specified category feature, such as a category identifier. In the feature information of the geographical location, the merchant information of the corresponding category is filtered out; then, the merchant information after the screening is calculated according to the foregoing method for determining the characteristics of the popular merchants; and finally, the heat score of the category is obtained. The list of topN merchants serves as the hotline feature of the classified real-time location.
具体实施时,本申请中所述的复合场景特征还可以通过其他方法获得,本实施例中仅仅是一个可能的例子,不应构成对复合场景特征获取方法的限定。In a specific implementation, the composite scene feature described in the present application may also be obtained by other methods. This embodiment is only a possible example and should not constitute a limitation on the method for acquiring a composite scene feature.
最后,将确定的所述实时地理位置的特征进一步返回至发起地理位置服务请求的客户端,由所述客户端将所述实时地理位置的特征输入到地理位置服务平台的搜索或排序模型中,参与搜索排序,以实现基于所述实时地理位置的服务。Finally, the determined feature of the real-time geographic location is further returned to the client that initiates the geographic location service request, and the client inputs the feature of the real-time geographic location into a search or ranking model of the geographic location service platform, Participate in search rankings to implement services based on the real-time geographic location.
具体实施时,参考地理位置的特征信息可通过离线挖掘,以索引表的形式存储在地理位置服务平台的数据库中,确定实时地理位置的特征时可以读取该索引表获取参考地理位置的特征信息,并经过简单计算来确定所述实时地理位置的多种特征。这样,不需要调用第三方接口,如不需要调用地图或导航接口计算行程距离,就可在提高地理位置服务准确性和实用性的同时,提升了地理位置服务的时效性,用户体验更好。In a specific implementation, the feature information of the reference geographical location may be stored in the database of the geographic location service platform in the form of an index table by offline mining, and the feature information of the reference geographic location may be read when the feature of the real-time geographic location is determined. And through simple calculations to determine various characteristics of the real-time geographic location. In this way, there is no need to call a third-party interface. For example, if the map or navigation interface is not required to calculate the travel distance, the accuracy and practicability of the geographic location service can be improved, and the timeliness of the geographical location service is improved, and the user experience is better.
本申请实施例公开的地理位置服务的实现方法,通过基于用户历史行为数据,确定参考地理位置的特征信息;在获取到的地理位置服务请求的实时地理位置和请求场景信息之后,确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置;根据所述地理位置服务请求中指定的请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征,可以根据所述实时地理位置的特征提供基于所述实时地 理位置的服务,提高了基于地理位置提供相关服务的效果。本申请公开的地理位置服务的实现方法,通过结合离线数据确定地理位置的特征信息,再结合请求地理位置服务的实时信息,确定提供地理位置服务所基于的多维度的地理位置特征,准确反映地理位置的特点,进一步提升了基于地理位置服务的实用性和准确性。通过结合请求场景信息,动态确定实时地理位置的特征,有针对性的返回地理位置特征,进一步提升了基于地理位置服务的实用性和准确性。上层应用可以根据实际需要调整地理位置服务请求中的请求场景信息,从而获取更加丰富的地理位置特征。The method for implementing the geographic location service disclosed in the embodiment of the present application determines the feature information of the reference geographic location based on the historical behavior data of the user; after determining the real-time geographic location of the obtained geographic location service request and requesting the scenario information, determining the geographic location Determining the target location of the real-time geographic location associated with the real-time geographic location specified in the service request; determining the feature of the real-time geographic location according to the request scenario information specified in the geographic location service request and the feature information of the target reference geographic location, The feature of the real-time geographic location provides a service based on the real-time geographic location, improving the effectiveness of providing related services based on geographic location. The method for realizing the geographical location service disclosed in the present application determines the geographical location feature information by combining the offline data, and combines the real-time information of the requested geographic location service to determine the multi-dimensional geographic location feature based on the geographic location service, and accurately reflects the geographical location. The location features further enhance the practicality and accuracy of location-based services. By combining the request scenario information, dynamically determining the characteristics of the real-time geographic location, and returning the geographical location features in a targeted manner, the utility and accuracy of the geographic location-based service are further improved. The upper layer application can adjust the request scenario information in the geographic location service request according to actual needs, thereby obtaining richer geographic location features.
通过动态画圈召回参考地理位置,以保证足够的参考数据量,进一步提升地理位置特征提取的准确性。The dynamic reference circle recalls the reference geographic location to ensure sufficient reference data volume, further improving the accuracy of geographic location feature extraction.
实施例三Embodiment 3
本实施例公开的一种地理位置服务的实现装置,如图3所示,所述装置包括:参考地理位置确定模块310,用于确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置;地理位置特征确定模块320,用于根据所述地理位置服务请求中指定的请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征,以根据所述实时地理位置的所述特征提供基于所述实时地理位置的服务。An apparatus for implementing a geographic location service disclosed in this embodiment, as shown in FIG. 3, the apparatus includes: a reference geographic location determining module 310, configured to determine a target reference associated with a real-time geographic location specified in a geographic location service request a geographic location feature determining module 320, configured to determine a feature of the real-time geographic location according to the requested scenario information specified in the geographic location service request and feature information of the target reference geographic location, according to the real-time The feature of the geographic location provides a service based on the real-time geographic location.
本申请实施例公开的地理位置服务的实现装置,通过确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置;根据所述地理位置服务请求中指定的请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征,以根据实时地理位置的所述特征提供基于所述实时地理位置的服务,提高了现有技术中基于地理位置提供相关服务的方法的效果。本申请公开的地理位置服务的实现装置,通过结合预先确定的参考地理位置的特征信息,再结合请求地理位置服务的实时信息,提供地理位置服务所基于的多维度的地理位置特征,进一步提升了基于地理位置服务的实用性和准确性。The device for implementing the geographic location service disclosed in the embodiment of the present application determines the target reference geographic location associated with the real-time geographic location specified in the geographic location service request; and the request scenario information specified in the geographic location service request and the target Determining the feature of the real-time geographic location with reference to the feature information of the geographic location to provide a service based on the real-time geographic location according to the feature of the real-time geographic location, and improving a method for providing related services based on the geographic location in the prior art. effect. The device for implementing the geographic location service disclosed in the present application further improves the multi-dimensional geographic location feature based on the geographic location service by combining the feature information of the predetermined reference geographic location and the real-time information of the requested geographic location service. Based on the practicality and accuracy of geolocation services.
可选的,如图4所示,所述装置还包括:参考地理位置信息挖掘模块300,用于基于用户历史行为数据,确定参考地理位置的特征信息,其中,所述参考地理位置选自于所述用户历史行为数据中的地理位置,所述目标参考地理位置为所述多个参考地理位置中与所述实时地理位置关联的至少一个所述参考地理位置。Optionally, as shown in FIG. 4, the device further includes: a reference geographic location information mining module 300, configured to determine feature information of a reference geographic location based on user historical behavior data, where the reference geographic location is selected from a geographic location in the user historical behavior data, the target reference geographic location being at least one of the reference geographic locations associated with the real-time geographic location of the plurality of reference geographic locations.
所述特征信息为根据每个参考地理位置上的用户历史行为数据确定的用户行为和商户的预设指标的统计信息,例如:搜索信息、点击信息、浏览信息、商户类目等。The feature information is statistical information of user behavior and a preset indicator of the merchant determined according to user historical behavior data on each reference geographic location, such as search information, click information, browsing information, business category, and the like.
可选的,所述参考地理位置信息挖掘模块300进一步用于:按照第一地理位置精度,确定多个候选参考地理位置;根据地理位置,将用户历史行为数据聚合至相应的所述候选参考地理位置;按照第二地理位置精度,确定多个参考地理位置;根据地理位置,将各所述候选参考地理位置对应的用户历史行为数据聚合至相应的所述参考地理位置;根据聚合至每个所述参考地理位置的用户历史行为数据,确定每个所述参考地理位置的特征信息;其中,所述第一地理位置精度小于所述第二地理位置精度。Optionally, the reference geographic location information mining module 300 is further configured to: determine, according to the first geographic location accuracy, a plurality of candidate reference geographic locations; and aggregate the user historical behavior data to the corresponding candidate reference geography according to the geographic location. Locating a plurality of reference geographic locations according to the second geographic location accuracy; and synthesizing the user historical behavior data corresponding to each of the candidate reference geographic locations to the corresponding reference geographic location according to the geographic location; Determining feature information of each of the reference geographic locations by referring to user historical behavior data of a geographic location; wherein the first geographic location accuracy is less than the second geographic location accuracy.
可选的,所述参考地理位置信息挖掘模块300还用于:根据所述候选参考地理位置的热度和对应的用户历史行为数据稀疏度,对所述参考地理位置进行清洗。Optionally, the reference geographic location information mining module 300 is further configured to: clean the reference geographic location according to the heat of the candidate reference geographic location and the corresponding user historical behavior data sparsity.
通过按照由小到大的地理位置精度对地理位置进行聚合,可以减少数据存储量,同时,减少稀疏数据或热度较低的地理位置对地理位置特征提取的影响,可以提升参考地理位置的准确性和可用性。By aggregating geographic locations according to geographical accuracy from small to large, the amount of data storage can be reduced, and at the same time, reducing the impact of sparse data or low-temperature geographic locations on geographic feature extraction can improve the accuracy of the reference geographic location. And availability.
可选的,所述参考地理位置确定模块310进一步用于:Optionally, the reference geographic location determining module 310 is further configured to:
通过动态画圈召回的方式,确定与所述实时地理位置关联的目标参考地理位置。其中,所述动态画圈召回为根据预设评价指标调整地理区域范围,并召回所述地理区域范围内的所述参考地理位置作为所述目标参考地理位置。其中,所述预设评价指标包括但不限于实时地理位置的热度和商户密度。The target reference geographic location associated with the real-time geographic location is determined by dynamic circle recall. The dynamic circle recall is to adjust a geographic area range according to a preset evaluation index, and recall the reference geographic location within the geographic area as the target reference geographic location. The preset evaluation indicators include, but are not limited to, the heat of the real-time geographic location and the merchant density.
可选的,所述通过动态画圈召回的方式,确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置,包括:确定在所述实时地理位置的指定半径范围内的所述参考地理位置;根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度;当所述热度和商户密度满足预设阈值条件时,确定所述指定半径范围内的所述参考地理位置,作为与所述实时地理位置关联的所述目标参考地理位置。Optionally, the determining, by the dynamic circle recall, the target reference geographic location associated with the real-time geographic location specified in the geographic location service request, including: determining the specified radius within the real-time geographic location Determining a hot spot and a merchant density of the real-time geographic location according to at least part of the feature information of the reference geographic location within the specified radius; when the heat and merchant density meet a preset threshold condition Determining the reference geographic location within the specified radius as the target reference geographic location associated with the real-time geographic location.
可选的,通过所述动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置,还包括:当所述热度和商户密度不满足所述预设阈值条件时,按照预设规则调整所述指定半径范围,重复执行确定在所述实时地理位置的所述指定半径范围内的所述参考地理位置,至根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度的步骤Optionally, determining, by the manner of the dynamic circle recall, the target reference geographic location associated with the real-time geographic location, further comprising: when the heat and the merchant density do not satisfy the preset threshold condition, Adjusting the specified radius range according to a preset rule, and repeatedly performing determining the reference geographic location within the specified radius of the real-time geographic location to at least the reference geographic location within the specified radius Part of the characteristic information, the step of determining the heat of the real-time geographic location and the merchant density
通过动态画圈召回参考地理位置,以保证足够的参考数据量,进一步提升地理位置特征提取的准确性。The dynamic reference circle recalls the reference geographic location to ensure sufficient reference data volume, further improving the accuracy of geographic location feature extraction.
可选的,所述地理位置特征确定模块320进一步用于:根据所述地理位置服务请求中指定的请求场景信息、以及所述目标参考地理位置的至少部分所述特征信息,确定所述实时地理位置的特征。Optionally, the geographic location feature determining module 320 is further configured to: determine the real-time geography according to the request scenario information specified in the geolocation service request, and at least part of the feature information of the target reference geographic location. The characteristics of the location.
可选的,搜索服务平台还需要客户端发送所述地理位置服务请求的请求场景信息。所述请求场景信息用于指示所述实时地理位置的特征匹配条件。具体实施时,所述特征匹配条件包括:单一场景特征或复合场景特征提取条件。其中,所述复合场景特征提取需求包括以下任意一项:叠加至少两项所述单一场景特征、叠加至少一项所述单一场景特征和时间段。Optionally, the search service platform further needs the client to send the request scenario information of the geographic location service request. The request scenario information is used to indicate a feature matching condition of the real-time geographic location. In a specific implementation, the feature matching condition includes: a single scene feature or a composite scene feature extraction condition. The composite scene feature extraction requirement includes any one of the following: superimposing at least two of the single scene features, superimposing at least one of the single scene features, and a time period.
可选的,所述实时地理位置的特征包括:单一场景特征或复合场景特征;所述单一场景特征包括以下任意一项:热门商户特征、倾向雷达特征、热度特征、商户密度特征、地理位置分类特征、跨城市属性特征、热门关键词特征、热门类目特征;所述复合场景特征包括以下任意一项:分时段热门类目特征、分时段热门商户特征、分时段热门关键词特征、分类目热门商户特征、分类目热门关键词特征。Optionally, the feature of the real-time geographic location includes: a single scene feature or a composite scene feature; the single scene feature includes any one of the following: a popular merchant feature, a propensity radar feature, a heat feature, a merchant density feature, and a geographic location classification. Characteristics, cross-city attribute characteristics, popular keyword characteristics, and popular category features; the composite scene features include any of the following: hot time categories of time-divided categories, popular merchant characteristics by time period, popular keyword characteristics by time period, and classification items Popular merchant characteristics, classification target hot keyword characteristics.
可选的,所述倾向雷达特征通过以下方式确定:根据与所述实时地理位置关联的目标参考地理位置的特征信息,确定每个商户与所述实时地理位置的直线距离和方向角;根据所述直线距离和方向角,将所述商户映射到所述实时地理位置的雷达图的预设扇形块上;对于每个所述扇形块,通过对映射到所述扇形块上的商户的预设商户行为进行聚合,确定所述扇形块的热度值;将所述雷达图的每一个所述扇形块的热度值的列表,作为所述实时地理位置的倾向雷达特征。Optionally, the propensity radar feature is determined by determining a linear distance and a direction angle of each merchant from the real-time geographic location according to the feature information of the target reference geographic location associated with the real-time geographic location; a linear distance and a direction angle, the merchant is mapped onto a predetermined sector of the radar map of the real-time geographic location; for each of the sector, by a preset mapped to a merchant on the sector The merchant behavior is aggregated to determine a heat value of the sector block; a list of heat values of each of the sector blocks of the radar chart is used as a propensity radar feature of the real-time geographic location.
可选的,所述跨城市属性特征通过以下方式确定:根据与所述实时地理位置关联的所有目标参考地理位置的预设商户行为次数和城市标识,确定每个所述参考地理位置的城市分布概率;当所述城市分布概率满足预设概率阈值时,确定所述实时地理位置具有跨城市属性;将满足预设条件的所述城市分布概率对应的城市标识的列表和指示所述实时地理位置具有跨城市属性的结果标识,作为所述实时地理位置的跨城市属性特征。Optionally, the cross-city attribute feature is determined by determining an urban distribution of each of the reference geographic locations according to a preset number of merchant behaviors and a city identifier of all target reference geographic locations associated with the real-time geographic location. a probability; when the urban distribution probability satisfies a preset probability threshold, determining that the real-time geographic location has a cross-city attribute; a list of city identifiers corresponding to the urban distribution probability that meets a preset condition and indicating the real-time geographic location A result identifier having a cross-city attribute as a cross-city attribute feature of the real-time geographic location.
具体实施时,其他各种单一场景特征和复合场景特征的确定方法参见方法实施例部分,本实施例不再赘述。For the specific implementation, the method for determining the other various single scene features and the composite scene features is described in the method embodiment part, and is not described in this embodiment.
本申请公开的地理位置服务的实现装置,通过结合离线数据确定地理位置的特征信息,再结合请求地理位置服务的实时信息,确定提供地理位置服务所基于的多维度 的地理位置特征,准确反映地理位置的特点,进一步提升了基于地理位置服务的实用性和准确性。通过结合请求场景信息,动态确定实时地理位置的特征,有针对性的返回地理位置特征,进一步提升了基于地理位置服务的实用性和准确性。上层应用可以根据实际需要调整地理位置服务请求中的请求场景信息,从而获取更加丰富的地理位置特征。The device for realizing the geographic location service disclosed in the present application determines the geographical location feature of the geographic location service by combining the offline information with the offline information, and determines the multi-dimensional geographic location feature based on the geographic location service to accurately reflect the geographic location. The location features further enhance the practicality and accuracy of location-based services. By combining the request scenario information, dynamically determining the characteristics of the real-time geographic location, and returning the geographical location features in a targeted manner, the utility and accuracy of the geographic location-based service are further improved. The upper layer application can adjust the request scenario information in the geographic location service request according to actual needs, thereby obtaining richer geographic location features.
相应的,本申请还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例一和实施例二所述的地理位置服务的实现方法。所述电子设备可以为PC机、移动终端、个人数字助理、平板电脑等。Accordingly, the present application also discloses an electronic device including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the present application The method for implementing the geographic location service described in the first embodiment and the second embodiment. The electronic device can be a PC, a mobile terminal, a personal digital assistant, a tablet, or the like.
本申请还公开了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例一和实施例二所述的地理位置服务的实现方法的步骤。The present application also discloses a computer readable storage medium, on which a computer program is stored, and when the program is executed by the processor, the steps of implementing the geographic location service according to the first embodiment and the second embodiment of the present application are implemented.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
以上对本申请提供的一种地理位置服务的实现方法及装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method and device for implementing a geographic location service provided by the present application are described in detail. The principles and implementation manners of the application are described in the specific examples. The description of the above embodiments is only used to help understand the present application. The method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of the specification should not be understood as Limitations on this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件实现。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.

Claims (17)

  1. 一种地理位置服务的实现方法,包括:A method for implementing a geographic location service, comprising:
    确定与地理位置服务请求中指定的实时地理位置关联的目标参考地理位置;Determining a target reference geographic location associated with the real-time geographic location specified in the geographic service request;
    根据所述地理位置服务请求中指定的请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征;Determining a feature of the real-time geographic location according to the request scenario information specified in the geographic location service request and feature information of the target reference geographic location;
    根据所述实时地理位置的所述特征,提供基于所述实时地理位置的服务。Based on the characteristics of the real-time geographic location, a service based on the real-time geographic location is provided.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    基于用户历史行为数据,确定多个参考地理位置的特征信息,Determining feature information of multiple reference geographic locations based on user historical behavior data,
    其中,各所述参考地理位置选自于所述用户历史行为数据中的地理位置,Wherein each of the reference geographical locations is selected from a geographic location in the historical behavior data of the user.
    所述目标参考地理位置为所述多个参考地理位置中与所述实时地理位置关联的至少一个所述参考地理位置。The target reference geographic location is at least one of the reference geographic locations associated with the real-time geographic location of the plurality of reference geographic locations.
  3. 根据权利要求2所述的方法,基于所述用户历史行为数据,确定所述多个参考地理位置的特征信息,包括:The method of claim 2, determining feature information of the plurality of reference geographic locations based on the historical behavior data of the user, including:
    按照第一地理位置精度,确定多个候选参考地理位置;Determining a plurality of candidate reference geographic locations according to the first geographic location accuracy;
    根据地理位置,将所述用户历史行为数据聚合至相应的所述候选参考地理位置;Aggregating the user historical behavior data to a corresponding candidate reference geographic location according to a geographic location;
    按照第二地理位置精度,确定多个所述参考地理位置;Determining a plurality of the reference geographic locations according to the second geographic location accuracy;
    根据地理位置,将各所述候选参考地理位置对应的所述用户历史行为数据聚合至相应的所述参考地理位置;Aggregating the user historical behavior data corresponding to each of the candidate reference geographic locations to a corresponding reference geographic location according to a geographic location;
    根据聚合至每个所述参考地理位置的用户历史行为数据,确定每个所述参考地理位置的特征信息;Determining feature information of each of the reference geographic locations according to user historical behavior data aggregated to each of the reference geographic locations;
    其中,所述第一地理位置精度小于所述第二地理位置精度。The first geographic location accuracy is less than the second geographic location accuracy.
  4. 根据权利要求2至3任一项所述的方法,确定与所述实时地理位置关联的所述目标参考地理位置,包括:The method according to any one of claims 2 to 3, determining the target reference geographic location associated with the real-time geographic location, comprising:
    通过动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置;Determining, by means of a dynamic circle recall, the target reference geographic location associated with the real-time geographic location;
    其中,所述动态画圈召回为根据预设评价指标调整地理区域范围,并召回所述地理区域范围内的所述参考地理位置作为所述目标参考地理位置。The dynamic circle recall is to adjust a geographic area range according to a preset evaluation index, and recall the reference geographic location within the geographic area as the target reference geographic location.
  5. 根据权利要求4所述的方法,通过所述动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置,包括:The method according to claim 4, wherein the target reference geographic location associated with the real-time geographic location is determined by the dynamic circle recalling manner, including:
    确定在所述实时地理位置的指定半径范围内的所述参考地理位置;Determining the reference geographic location within a specified radius of the real-time geographic location;
    根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度;Determining the heat of the real-time geographic location and the merchant density according to at least part of the feature information of the reference geographic location within the specified radius;
    当所述热度和商户密度满足预设阈值条件时,确定所述指定半径范围内的所述参考地理位置,作为与所述实时地理位置关联的所述目标参考地理位置。When the heat and merchant density meet a preset threshold condition, the reference geographic location within the specified radius is determined as the target reference geographic location associated with the real-time geographic location.
  6. 根据权利要求5所述的方法,通过所述动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置,还包括:The method of claim 5, determining the target reference geographic location associated with the real-time geographic location by means of the dynamic circle recall, further comprising:
    当所述热度和商户密度不满足所述预设阈值条件时,按照预设规则调整所述指定半径范围,Adjusting the specified radius range according to a preset rule when the heat and the merchant density do not satisfy the preset threshold condition,
    重复执行确定在所述实时地理位置的所述指定半径范围内的所述参考地理位置,至根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度的步骤。Determining determining the reference geographic location within the specified radius of the real-time geographic location to determine the real-time geography based on at least a portion of the characteristic information of the reference geographic location within the specified radius The steps of location heat and merchant density.
  7. 根据权利要求4所述的方法,根据所述地理位置服务请求中指定的所述请求场景信息和所述目标参考地理位置的特征信息,确定所述实时地理位置的特征,包括:The method according to claim 4, determining the feature of the real-time geographic location according to the request scenario information specified in the geographic location service request and the feature information of the target reference geographic location, including:
    根据所述地理位置服务请求中指定的请求场景信息、以及所述目标参考地理位置的至少部分所述特征信息,确定所述实时地理位置的特征。Determining the feature of the real-time geographic location according to the request scenario information specified in the geographic location service request and at least part of the feature information of the target reference geographic location.
  8. 根据权利要求1至7任一项所述的方法,A method according to any one of claims 1 to 7,
    所述实时地理位置的特征包括单一场景特征或复合场景特征;The features of the real-time geographic location include a single scene feature or a composite scene feature;
    所述单一场景特征包括以下任意一项:热门商户特征、倾向雷达特征、热度特征、商户密度特征、地理位置分类特征、跨城市属性特征、热门关键词特征、热门类目特征;The single scene feature includes any one of the following: a popular merchant feature, a propensity radar feature, a heat feature, a merchant density feature, a geographic location classification feature, a cross-city attribute feature, a popular keyword feature, and a popular category feature;
    所述复合场景特征包括以下任意一项:分时段热门类目特征、分时段热门商户特征、分时段热门关键词特征、分类目热门商户特征、分类目热门关键词特征。The composite scene feature includes any one of the following: a time-series popular category feature, a time-divided popular merchant feature, a time-divided popular keyword feature, a classified target popular merchant feature, and a classified target popular keyword feature.
  9. 根据权利要求8所述的方法,所述倾向雷达特征通过以下方式确定:The method of claim 8 wherein said propensating radar signature is determined by:
    根据与所述实时地理位置关联的所述目标参考地理位置的特征信息,确定每个商户与所述实时地理位置的直线距离和方向角;Determining a linear distance and a direction angle of each merchant from the real-time geographic location according to the feature information of the target reference geographic location associated with the real-time geographic location;
    根据所述直线距离和方向角,将所述商户映射到所述实时地理位置的雷达图的预设扇形块上;Mapping the merchant to a preset sector of the radar map of the real-time geographic location according to the linear distance and the direction angle;
    对于每个所述扇形块,通过对映射到所述扇形块上的商户的预设商户行为进行聚合,确定所述扇形块的热度值;For each of the sector blocks, determining a heat value of the sector block by aggregating a preset merchant behavior of a merchant mapped to the sector block;
    将所述雷达图的每一个所述扇形块的热度值的列表,作为所述实时地理位置的倾向雷达特征。A list of heat values for each of the segments of the radar map is used as a propensity radar feature of the real-time geographic location.
  10. 根据权利要求8所述的方法,所述跨城市属性特征通过以下方式确定:The method of claim 8 wherein the cross-city attribute feature is determined by:
    根据与所述实时地理位置关联的所有所述目标参考地理位置的预设商户行为次数和城市标识,确定每个所述参考地理位置的城市分布概率;Determining a city distribution probability of each of the reference geographic locations according to a preset number of merchant behaviors and a city identifier of all the target reference geographic locations associated with the real-time geographic location;
    当所述城市分布概率满足预设概率阈值时,确定所述实时地理位置具有跨城市属性;Determining that the real-time geographic location has a cross-city attribute when the urban distribution probability satisfies a preset probability threshold;
    将满足预设条件的所述城市分布概率对应的城市标识的列表和指示所述实时地理位置具有跨城市属性的结果标识,作为所述实时地理位置的跨城市属性特征。A list of city identifiers corresponding to the city distribution probability that meets the preset condition and a result identifier indicating that the real-time geographic location has a cross-city attribute is used as a cross-city attribute feature of the real-time geographic location.
  11. 一种地理位置服务的实现装置,包括:A device for implementing a geographic location service, comprising:
    参考地理位置确定模块,用于确定与地理位置服务请求中指定的实时地理位置关联的参考地理位置;a reference geographic location determining module for determining a reference geographic location associated with the real-time geographic location specified in the geographic location service request;
    地理位置特征确定模块,用于根据所述地理位置服务请求中指定的请求场景信息和所述参考地理位置的特征信息,确定所述实时地理位置的特征,以根据所述实时地理位置的所述特征提供基于所述实时地理位置的服务。a geographic location feature determining module, configured to determine a feature of the real-time geographic location according to the requested scenario information specified in the geographic location service request and feature information of the reference geographic location, according to the real-time geographic location The feature provides a service based on the real-time geographic location.
  12. 根据权利要求11所述的装置,还包括:The apparatus of claim 11 further comprising:
    参考地理位置信息挖掘模块,用于基于用户历史行为数据,确定多个参考地理位置的特征信息,其中,各所述参考地理位置选自于所述用户历史行为数据中的地理位置,所述目标参考地理位置为所述多个参考地理位置中与所述实时地理位置关联的至少一个所述参考地理位置。a reference geographic location information mining module, configured to determine feature information of a plurality of reference geographic locations based on user historical behavior data, where each of the reference geographic locations is selected from a geographic location in the historical behavior data of the user, the target The reference geographic location is at least one of the reference geographic locations associated with the real-time geographic location of the plurality of reference geographic locations.
  13. 根据权利要求12所述的装置,所述参考地理位置确定模块进一步用于:The apparatus according to claim 12, wherein the reference geographic location determining module is further configured to:
    通过动态画圈召回的方式,确定与所述实时地理位置关联的目标参考地理位置;Determining a target reference geographic location associated with the real-time geographic location by means of a dynamic circle recall;
    其中,所述动态画圈召回为根据预设评价指标调整地理区域范围,并召回所述地理 区域范围内的所述参考地理位置作为所述目标参考地理位置。The dynamic circle recall is to adjust a geographic area range according to a preset evaluation index, and recall the reference geographic location within the geographic area as the target reference geographic location.
  14. 根据权利要求13所述的装置,通过所述动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置,包括:The apparatus according to claim 13, wherein the target reference geographic location associated with the real-time geographic location is determined by the dynamic circle recalling manner, including:
    确定在所述实时地理位置的指定半径范围内的所述参考地理位置;Determining the reference geographic location within a specified radius of the real-time geographic location;
    根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度;Determining the heat of the real-time geographic location and the merchant density according to at least part of the feature information of the reference geographic location within the specified radius;
    当所述热度和商户密度满足预设阈值条件时,确定所述指定半径范围内的所述参考地理位置,作为与所述实时地理位置关联的所述目标参考地理位置。When the heat and merchant density meet a preset threshold condition, the reference geographic location within the specified radius is determined as the target reference geographic location associated with the real-time geographic location.
  15. 根据权利要求14所述的装置,通过所述动态画圈召回的方式,确定与所述实时地理位置关联的所述目标参考地理位置,还包括:The device of claim 14, determining the target reference geographic location associated with the real-time geographic location by means of the dynamic circle recall, further comprising:
    当所述热度和商户密度不满足所述预设阈值条件时,按照预设规则调整所述指定半径范围,Adjusting the specified radius range according to a preset rule when the heat and the merchant density do not satisfy the preset threshold condition,
    重复执行在所述实时地理位置的所述指定半径范围内的所述参考地理位置,至根据所述指定半径范围内的所述参考地理位置的至少部分所述特征信息,确定所述实时地理位置的热度和商户密度的步骤。Repeating the reference geographic location within the specified radius of the real-time geographic location to determine the real-time geographic location based on at least a portion of the characteristic information of the reference geographic location within the specified radius The steps of heat and merchant density.
  16. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至10任意一项所述的地理位置服务的实现方法。An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement any one of claims 1 to 10 The implementation method of the geographical location service.
  17. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1至10任意一项所述的地理位置服务的实现方法的步骤。A computer readable storage medium having stored thereon a computer program, the program being executed by a processor to implement the steps of the method for implementing a geographic location service according to any one of claims 1 to 10.
PCT/CN2018/121318 2018-02-06 2018-12-14 Implementation of geographical location service WO2019153889A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810119487.3A CN108415960B (en) 2018-02-06 2018-02-06 A kind of implementation method and device of geo-location service, electronic equipment
CN201810119487.3 2018-02-06

Publications (1)

Publication Number Publication Date
WO2019153889A1 true WO2019153889A1 (en) 2019-08-15

Family

ID=63127876

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/121318 WO2019153889A1 (en) 2018-02-06 2018-12-14 Implementation of geographical location service

Country Status (2)

Country Link
CN (1) CN108415960B (en)
WO (1) WO2019153889A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415960B (en) * 2018-02-06 2019-12-03 北京三快在线科技有限公司 A kind of implementation method and device of geo-location service, electronic equipment
CN111984708A (en) * 2019-05-22 2020-11-24 口口相传(北京)网络技术有限公司 Ranking list generation method and device, storage medium and electronic device
CN110533454B (en) * 2019-07-24 2023-07-07 创新先进技术有限公司 Method and system for identifying business object group
CN112398895B (en) * 2019-08-19 2022-03-18 阿里巴巴集团控股有限公司 Method and device for providing service information
CN110730207B (en) * 2019-09-06 2022-03-29 平安科技(深圳)有限公司 Location identification method, device, equipment and storage medium based on location service
CN110774974B (en) * 2019-09-27 2023-01-24 沈阳美行科技股份有限公司 Vehicle headlamp control method and device and related equipment
CN111368170B (en) * 2020-02-11 2023-03-31 口碑(上海)信息技术有限公司 Method, device and equipment for polling page data
CN112560910B (en) * 2020-12-02 2024-03-01 中国联合网络通信集团有限公司 User classification method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014015814A1 (en) * 2012-07-25 2014-01-30 腾讯科技(深圳)有限公司 Message aggregation method and system based on point of interest and storage medium
CN104504064A (en) * 2014-12-19 2015-04-08 百度在线网络技术(北京)有限公司 Information recommendation method and device
CN104537027A (en) * 2014-12-19 2015-04-22 百度在线网络技术(北京)有限公司 Information recommendation method and device
CN108415960A (en) * 2018-02-06 2018-08-17 北京三快在线科技有限公司 A kind of implementation method and device of geo-location service, electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455480B (en) * 2012-05-28 2017-03-08 深圳市腾讯计算机系统有限公司 A kind of position search method based on electronic chart and device
CN103116614B (en) * 2013-01-25 2016-04-13 北京奇艺世纪科技有限公司 A kind of collaborative filtering recommending method, Apparatus and system
CN105072591A (en) * 2015-08-11 2015-11-18 中山大学 Method and system for pushing individualized information based on mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014015814A1 (en) * 2012-07-25 2014-01-30 腾讯科技(深圳)有限公司 Message aggregation method and system based on point of interest and storage medium
CN104504064A (en) * 2014-12-19 2015-04-08 百度在线网络技术(北京)有限公司 Information recommendation method and device
CN104537027A (en) * 2014-12-19 2015-04-22 百度在线网络技术(北京)有限公司 Information recommendation method and device
CN108415960A (en) * 2018-02-06 2018-08-17 北京三快在线科技有限公司 A kind of implementation method and device of geo-location service, electronic equipment

Also Published As

Publication number Publication date
CN108415960B (en) 2019-12-03
CN108415960A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
WO2019153889A1 (en) Implementation of geographical location service
US11762818B2 (en) Apparatus, systems, and methods for analyzing movements of target entities
US11238120B1 (en) Selecting, ranking, and/or presenting microsite content
US10089653B2 (en) System and method for estimating mobile device locations
JP5596152B2 (en) Information matching method and system on electronic commerce website
US8838586B2 (en) Relevancy ranking for map-related search
JP6540314B2 (en) Facility estimation method, device and program
US10846353B2 (en) Dynamic radius threshold selection
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
WO2016206196A1 (en) Method and device for obtaining user attribute information, and server
WO2017206831A1 (en) Virtual resource processing method, server, and data storage medium
TW201727558A (en) System, method, and device for generating a geographic area heat map
US10146883B2 (en) Determining labels from similar geographic features
CN105978729B (en) A kind of cellphone information supplying system and method based on user's internet log and position
Cacheda et al. Click through rate prediction for local search results
Zou et al. An innovative GPS trajectory data based model for geographic recommendation service
Tan et al. Preference-oriented mining techniques for location-based store search
KR101867421B1 (en) Method and Apparatus for Recommending Service Provider Using Social Data
CN115408618A (en) Interest point recommendation method based on social relationship fusion position dynamic popularity and geographic features
CN111581245A (en) Data searching method and device
TW201419231A (en) A location-based point-of-interest recommendation system based on location-based services
Thigle et al. Hyper local listing algorithm for user vicinity based points of interest

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18905685

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18905685

Country of ref document: EP

Kind code of ref document: A1