Two-stage selection of local information items
US-12130879-B2 · Oct 29, 2024 · US
US2018165293A1 · US · A1
| Field | Value |
|---|---|
| Publication number | US-2018165293-A1 |
| Application number | US-201615571082-A |
| Country | US |
| Kind code | A1 |
| Filing date | Jul 27, 2016 |
| Priority date | Aug 3, 2015 |
| Publication date | Jun 14, 2018 |
| Grant date | — |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
A method and an apparatus for obtaining data, based on location information, are provided. The method includes receiving, from a user terminal, a first query request that is used to obtain object information, the first query request carrying location information of the user terminal, and querying, in response to a cache area being not empty, the cache area for hotspot data in an area range in which the location information of the user terminal is located, the hotspot data being information of an object included in the area range, and the hotspot data being cached in response to a frequency of query access occurring in the area range exceeding a predetermined threshold. The method further includes sending, to the user terminal, the hotspot data in the area range.
Opening claim text (preview).
1 . A method for obtaining data, based on location information, the method comprising: receiving, from a user terminal, a first query request that is used to obtain object information, the first query request carrying location information of the user terminal; querying, in response to a cache area being not empty, the cache area for hotspot data in an area range in which the location information of the user terminal is located, the hotspot data being information of an object comprised in the area range, and the hotspot data being cached in response to a frequency of query access occurring in the area range exceeding a predetermined threshold; and sending, to the user terminal, the hotspot data in the area range. 2 . The method according to claim 1 , wherein the querying the cache area comprises: querying the cache area for the area range in which the location information of the user terminal is located, the cache area caching at least a preset area range, and for the hotspot data in the area range; reading, in response to the querying the cache area being successful, the hotspot data in the area range, from the cache area; and in response to the querying the cache area failing, obtaining, from a third party server, the hotspot data in the area range, and caching the area range and the hotspot data in the area range, into the cache area. 3 . The method according to claim 2 , the caching the area range and the hotspot data in the area range comprises: converting two-dimensional longitude and latitude data that is used to denote the area range into a one-dimensional first character string code; associating the first character string code and the hotspot data that is obtained; and caching the first character string code associated with the hotspot data that is obtained, into the cache area. 4 . The method according to claim 3 , the querying the cache area further comprises: converting longitude and latitude data in the location information of the user terminal, into a second character string code; querying whether the cache area stores the first character string code that is same as the second character string code; determining, in response to the cache area storing the first character string code that is same as the second character string code, that the area range is successfully found through query; and determining, in response to the cache area not storing the first character string code that is same as the second character string code, that the area range is unsuccessfully queried. 5 . The method according to claim 3 , further comprising: setting a first expiration time for the hotspot data that is obtained, the first expiration time being determined based on a frequency at which the hotspot data is queried; and deleting, in response to a time for which the hotspot data is stored in the cache area reaching the first expiration time, the hotspot data, from the cache area. 6 . The method according to claim 3 , further comprising, during the querying the cache area: monitoring a quantity of query times of querying the cache area for the area range; adjusting, in response to the quantity of query times of querying the cache area for the area range being monitored to exceed a preset query threshold, precision of the first character string code to expand a coverage range of the the area range that is queried, to obtain an adjusted area range; and in response to receiving a second query request that is used to obtain object information in the adjusted area range, obtaining hotspot data in the adjusted area range, from the third party server, and caching the adjusted area range and the hotspot data in the adjusted area range, into the cache area. 7 . The method according to claim 5 , further comprising, during the obtaining the hotspot data in the area range: monitoring an access amount of the third party server; and prolonging, in response to the access amount of the third party server being monitored to exceed a preset access threshold, the first expiration time of the hotspot data, based on the access amount. 8 . The method according to claim 5 , further comprising, in response to the cache area being empty: obtaining, from the third party server, the hotspot data in the area range in which the location information of the user terminal is located; caching the area range and the hotspot data that is obtained, into the cache area; and setting the first expiration time for the hotspot data that is obtained. 9 . The method according to claim 5 , further comprising, in response to the frequency of query access occurring in the area range not exceeding the predetermined threshold: obtaining, from the third party server, object information in the area range in which the location information of the user terminal is located; caching the area range and the object information that is obtained, into the cache area; and setting a second expiration time for the object information, the second expiration time for the object information being less than the first expiration time of the hotspot data. 10 . An apparatus for obtaining data based on location information, the apparatus comprising: a receiver configured to receive, from a user terminal, a query request that is used to obtain object information, the query request carrying location information of the user terminal; a processor configured to query, in response to a cache area being not empty, the cache area for hotspot data in an area range in which the location information of the user terminal is located, the hotspot data being information of an object comprised in the area range, and the hotspot data being cached in response to a frequency of query access occurring in the area range exceeding a predetermined threshold; and a transmitter configured to send, to the user terminal, the hotspot data in the area range. 11 . The apparatus according to claim 10 , wherein the processor comprises: a query module configured to query the cache area for the area range in which the location information of the user terminal is located, the cache area caching at least a preset area range, and for the hotspot data in the area range; a reading module configured to read, in response to the querying the cache area being successful, the hotspot data in the area range, from the cache area; and an obtaining module configured to, in response to the querying the cache area failing, obtain, from a third party server, the hotspot data in the area range and cache the area range and the hotspot data in the area range, into the cache area. 12 . The apparatus according to claim 11 , the obtaining module comprises: a first conversion sub-module configured to convert two-dimensional longitude and latitude data that is used to denote the area range into a one-dimensional first character string code; and a cache sub-module configured to associate the first character string code and the hotspot data that is obtained, and cache the first character string code associated with the hotspot data that is obtained, into the cache area. 13 . The apparatus according to claim 12 , the query module further comprises: a second conversion sub-module configured to convert longitude and latitude data in the location information of the user terminal, into a second character string code; a query sub-module configured to query whether the cache area stores the first character string code that is same as the second character string code; a first determining sub-module configured to determine, if in response to the cache area storing the first character string code that is same as the second character string code
Database cache management · CPC title
Spatial or temporal dependent retrieval, e.g. spatiotemporal queries · CPC title
Geographical information databases · CPC title
using cached or materialised query results · CPC title
Information retrieval; Database structures therefor; File system structures therefor · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.