This disclosure relates to interactive digital maps and, more particularly, to providing geospatial data to client devices for offline use.
The background description provided herein is for the purpose of generally presenting the context of the disclosure. Work of the presently named inventors, to the extent it is described in this background section, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing, are neither expressly nor impliedly admitted as prior art against the present disclosure.
Software applications that provide interactive digital maps (“mapping applications”) can operate on computing devices that generally have a permanent network connection as well as on portable devices such as smartphones, tablet computers, car navigation systems, etc. A mapping application typically receives a user query specifying a geographic location, obtains a digital map from a network server, and provides the digital map via a user interface. Moreover, mapping applications often provide additional geospatial data related to areas, such as a listing of businesses located in the area visible in the viewport.
To allow users to search for geospatial data on a portable device in an offline mode, a mobile mapping application of this disclosure caches searchable geospatial data received from a network server in an online mode. Thus, when a network connection becomes unreliable or completely unavailable, the user can continue to search for points of interest, businesses, recommendations, and other content using the cached data. In an exemplary embodiment, the mobile mapping application can receive searchable geospatial data in the form of tiles describing equal portions of a geographic area. These tiles can be referred to below as “geospatial data tiles.” To facilitate efficient searching, the mobile mapping application can index the searchable geospatial data and cache the indexed data upon receiving the geospatial data from the network server.
More specifically, one embodiment of these techniques is a user device including a user interface, a network interface to couple the user device to a map data server via a communication network, in an online mode, and a computer-readable memory. The memory stores map data for rendering a digital map of a geographic area. The memory further stores and searchable geospatial data organized into multiple tiles, each tile corresponding to a respective portion of the geographic area of a substantially same size. The geospatial data includes, for each of the tiles, descriptions of geographic entities and locations of the geographic entities within the corresponding portion of the geographic area. The processing hardware of the user device (e.g., one or more processors) is configured to (i) display the digital map via the user interface, (ii) receive the map data and the searchable geospatial data from the map data server, in the online mode, (iii) receive a geographic query pertaining to the geographic area, and (iv) execute the geographic query using the geospatial data stored in the computer-readable memory.
Another embodiment of these techniques is a method which can be executed by one or more processors of a user device. The method includes receiving, via a communication network, searchable geospatial data organized into tiles, each tile corresponding to a respective portion of a geographic area of a substantially same size, such that the searchable geospatial data includes descriptions of geographic entities and indications of locations of the geographic entities within the corresponding portions of the geographic area. The method also includes indexing the geospatial data using the descriptions of the geographic entities and the locations included in the tiles to generate indexed geospatial data, storing the indexed geospatial data in a cache implemented in the client device, and executing a query related to the geographic area using the indexed geospatial data stored in the cache.
Yet another embodiment of these techniques is a method for facilitating geographic queries on user devices. The method includes generating, by one or more computing devices, map data for rendering a digital map of a geographic area on a client device, including generating descriptions of geometries to be rendered as part of the digital map. The method also includes generating, at the one or more network servers, searchable geospatial data that includes descriptions of geographic entities within the searchable geographic area and respective locations of the entities, including organizing the geospatial data into a plurality of tiles, each of the plurality of map tiles corresponding to a respective portion of the geographic area of a substantially same size. Further, the method includes providing the map data and the geospatial data to a user device via a communication network, where the user device executes geographic queries pertaining to the geographic area using the geospatial data.
When the client device 14 operates in the offline mode, a network connection at client device 14 may be unavailable, or the network connection may be unreliable or of a poor quality. Further, the user of the client device 14 can explicitly activate the offline mode when boarding a plane, for example.
For simplicity,
The server 12 can include processing hardware such as one or more processor(s) 30 coupled to a memory 32, which can include persistent and/or non-persistent components. A map request processor 40 and a geospatial data request processor 42 can be implemented as sets of instructions stored in the memory 32 and executed on the one or more processor(s) 30. In operation, the components 40 and 42 can provide to the client device 14 map data for rendering a digital map of a geographic areas and data describing various entities disposed in the geographic area, respectively.
The server 12 is coupled to a map database 20, which can be implemented in one or several servers (or, if desired, as a component of the network server 12). The map database 20 can store descriptions of geometry and location indications for various natural geographic features (e.g., rivers, mountains, forests) as well as artificial geographic features (e.g., roads, buildings, parks). The map data can include, among other data, vector graphics data, raster image data, and text data.
In an example implementation, the map database 20 organizes map data into map tiles, which generally correspond to a two-dimensional organization of geospatial data into traversable data structure, such as a quadtree, other tree data structure, any other suitable data structure, or any combination thereof. Each map tile in this case corresponds to a square geographic region, with the size of the square being dependent on the level of magnification, or zoom level. Map tiles at the same level of magnification can be of the substantially same size. Thus, each map tile at a given zoom level is divided into four tiles at the next level, up to the highest zoom level. The map request processor 40 can receive, from the client device 14, a request for a certain location or area and an indication of the desired zoom level, identify a set of map tiles necessary for rendering a digital map of the corresponding area at the specified zoom level, and transmit the map tiles to the client device 14.
Map tiles can be in a vector-based format, according to which geometric shapes are described mathematically rather than in terms of pixels. Alternatively or additionally, map tiles also can include text labels and raster (bitmap) imagery.
With continued reference to
The geospatial database 24 can organize geospatial data into tiles that are generally similar to the map tiles in the map database 20. Thus, each tile can include searchable geospatial data pertaining to the geographic area covered by the tile. The geospatial data request processor 42 can receive a request for searchable geospatial data from the client device 14, identify relevant tiles, and provide the tiles to the client device 14 for immediate use or caching, or storing in a certain region of the memory of the client device 14 for subsequent one-time or repeated use. The client device 14 then can index the geospatial data to prepare the searchable geospatial data for subsequent queries. In an additional or alternative implementation, the processor 42 can provide already-indexed data to the client device 14.
The geospatial request processor 42 can provide an identifier of the position of the tile within a tile grid as part of the geospatial data or along with the geospatial data. For example, the geospatial request processor 42 can indicate that a certain tile should be centered, or otherwise positioned in relation to, at Global Positioning Service (GPS) coordinates (x1, y1), another tile should be centered at coordinates (x2, y2), etc. Alternatively, the geospatial request processor 42 can indicate that a certain tile should be placed in cell (a1, b1) in a tile grid, another tile should be placed in cell (a2, b2), etc.
In general, the system 10 can include processing hardware of any suitable type, configured to implement the techniques of this disclosure. The processing hardware can include one or more processors on one or more computing devices, one or more servers, a distributed network, etc.
The memory module 104 stores instructions that implement a mapping application 110, which can be a special-purpose mapping application or a general-purpose application such as a web browser that includes a mapping application programming interface (API), for example. The memory module 104 also implements a cache 120 as a certain dedicated memory region, for example, for storing map data 122 and tile-based geospatial data 126. The mapping application 110 implements an indexing engine 112 configured to build indexed geospatial data (or simply, the “search index”) 124 using the tile-based geospatial data 126. The indexing engine 112 in various implementations and/or scenarios can index both geospatial and non-geospatial data to generate an index that stores geospatial along with non-geospatial data. The mapping application 110 also implements a geographic query engine 114 configured to execute geographic queries received from the user, such as “gas stations nearby” or “fast food in Manhattan,” or from the mapping application 110 as part of an auto-suggest routine.
As a more specific example, the indexing engine 112 can process the searchable geospatial data 126 for several tiles T1, T2, . . . TN to generate Table 1 below. Various search terms, such as “food” or “gas,” can operate as keys in Table 1, and table entries can list geographic entities matching these criteria. Thus, a common key, such as “cinema,” can correspond to several geographic entities sharing one or several search terms. The locations of the geographic entities can be stored in the same table entries or in a separate table, depending on implementation.
Depending on the implementation, the indexing engine 112 can generate tables for various regions, such as Region R1 made up of tiles T1, T2, and T3 and region R2 made up of tiles T3, T4, T5, and tiles T6, or a common table for the entire geographic area covered by the available geospatial data 126. Regions, such as R1, R2, . . . RN may be distinct, overlapping, subsets of one another, have any other suitable comparative relationships, or any combination thereof.
More generally, the indexing engine 112 can implement any suitable techniques to parse geospatial content and build a search index. Thus, depending on the implementation, the indexing engine 112 can generate a suffix tree, a document-term matrix, an inverted index, etc. Indexing may include natural language processing, keyword frequency, link-mapping, etc.
The network server 12 can provide the geospatial data 126 with the search terms being consistent across tiles. In other words, a search term being used as a common key, such as “restaurant” or “$10,” can be used to search for data in multiple tiles. In this manner, the indexing engine 112 can build the indexed geospatial data 124 using a group of tiles for any geographic area. More specifically, a table such as Table 1 can include descriptions of geographic entities disposed in areas corresponding to different tiles but sharing one or more search terms. Further, as discussed below, the indexing engine 112 can re-generate the indexed geospatial data 124 upon receiving updated geospatial data for tile TL, using the updated geospatial data and some of the geospatial data 126.
In one embodiment, the mapping application 110 aligns and synchronizes map data 122 and geospatial data 126. More particularly, the mapping application 110 obtains map data and geospatial data for same geographic areas so as to allow the user to search within the areas displayed on digital maps and, conversely, view a map of the geographic area for which the user submitted a geographic query. According to this embodiment, when the mapping application 110 purges the cache 120 of some or all of the map data 122 (e.g., to make room for new data), the mapping application 110 also removes those of the geospatial data tiles 126 that correspond to the same geographic area as the removed map tiles.
However, if desired, the mapping application 110 can be configured to select the geospatial data 126 at a certain fixed zoom level independent of the zoom level of the map data 122. For example, the mapping application 110 can be configured to retrieve geospatial data 126 at zoom level Zn and use this data when the user is viewing the digital map at zoom level Zn−1, zoom level Zn, zoom level Zn+1, etc.
In an example scenario, the mapping application 110 retrieves map data for generating a digital map of an amusement park and the surrounding geographic area. The map data describes various geographic feature such as roads, building footprints or three-dimensional shapes, lakes and rivers, entrances, etc. The mapping application 110 can retrieve, for example, nine map tiles at zoom level Zn. The mapping application 110 also can retrieve geospatial data including information about rides within the park, food and souvenir vendors, emergency services, etc. The mapping application 110 can retrieve these geospatial data tiles at zoom level Zn+1. In this example scenario, the mapping application 110 aligns the map data with the geospatial data, at least for this geographic region. Accordingly, to retrieve geospatial data corresponding to the area covered by the N tiles at zoom level Zn, the mapping application 110 application can request X geospatial geospatial Zn+1 data tiles for each Zn map tile, to retrieve X*N geospatial data tiles.
For a certain geographic area, the mapping application 110 can retrieve geospatial data at several zoom levels, depending on the measured or estimated density of available information at the corresponding portion of the geographic area. For example, when the geographic area includes a densely populated urban area and a sparsely populated rural area, the mapping application 110 can retrieve geospatial data at zoom level Zn for the urban area and geospatial data at zoom level Zn−1 for the rural area. As another example, the mapping application 110 can retrieve geospatial data at a lower zoom level for bodies of water. Because geospatial data at lower zoom levels in general is more compact, the mapping application 110 can utilize the memory 104 more efficiently by varying the zoom level of geospatial data according to density. On the other hand, the mapping application 110 can ensure that the geospatial data more thoroughly covers the potentially “interesting” portions of the geographic area.
The server 12 (or another suitable component of the system 10) can approximately measure the density of available geospatial information in a certain area by counting one or more of the number of points of interest available at a certain zoom level, the number of reviews submitted for places in the area, the number of search requests related to the area, etc. In some cases, the server 12 can estimate the density of available information in an indirect manner, such as by determining the density of population reported for the area, for example.
For additional clarity,
Referring first to
The map tiles in an example implementation include vector-based descriptions of geographic features, such as roads, buildings, bodies of water, and forested areas. The map tiles also can include text labels and raster (bitmap) imagery. The network server 212 can provide, with every map tile, an indication of a location to which the map tile corresponds, so that the map application 210 can assemble a digital map from multiple map tiles. The network server 212 can provide similar indications for the tiles with geospatial data discussed below. The mapping application 210 stores the received map tiles in the cache 220 (event 252).
The network server 212 can also provide searchable geospatial data for the region R, also organized into tiles (event 253). As indicated above, these tiles can include descriptions of points of interest and, more generally, one or more various geographic entities in the region R, as well as indications of locations of these entities. Depending on the implementation, configuration, and/or data availability, the tiles also can include user reviews, detailed description of places, various tags or search terms provided for geographic entities (e.g., “business name=Bob's Auto Service; search terms=“auto service,” “car repair,” “tune-up,” . . . ”). In the example scenario involving the map of Seattle mentioned above, the network server 212 can provide geospatial data for Seattle, covering approximately or exactly the same region. In general, the searchable geospatial can be provided at any desired level of detail. To make the geospatial content in the tiles machine-readable, the network server 212 can format the geospatial data using the extended mark-up language (XML) standard or and/another suitable scheme for organizing data.
As a more specific example, for the business Bob's Auto Service mentioned above, the available geospatial data can be mapped to multiple zoom levels, according to one embodiment. For example, a relatively small amount of data can correspond to zoom level Zn and include the name of the business and GPS coordinates of the business. A more robust set of data can correspond to higher-magnification zoom level Zn+1 and include additional search terms, such as “automotive” and “car repair.” At yet another zoom level Zn+2, the geospatial data can include hours of operation, prices or price ranges, user reviews, and other data which can be indexed at a client device. The network server 212 can select the level in accordance with the zoom level of the corresponding digital map, a certain fixed zoom level as discussed above, an automatic determination in view of the amount of overall data to be transmitted, user preferences, other principles, or any combination thereof.
The network server 212 generally can select the zoom level for map tiles (event 251) in accordance with the request from the mapping application 210. The network server 212 can select the zoom level for tiles carrying searchable geospatial data by matching the zoom level of the map tiles. Alternatively, the network server 212 can select the zoom level for these tiles independently of the zoom level of the map tiles. As one example, the network server 212 can be configured to always provide the tiles with geospatial data at a certain zoom level L1=Zn. When the mapping application 210 requests map data at zoom level L2=Zn−1, the network server 212 provides N map tiles at the specified zoom level L2=Zn−1 but provides M tiles with geospatial data at the zoom level L1=Zn, for the same geographic area covered by the provided map tiles. Because the area corresponding to one tile at zoom level Zn−1 can be subdivided into four equal areas covered by tiles at zoom level Zn, the network server 212 provides M=4*N tiles with geospatial data. As another alternative, the network server 212 can select the zoom level in view of the type of the geographic area covered by the tile. For example, the network server 212 can provide tiles at higher zoom levels (so as to accommodate more detail) for urban areas.
The tiles with geospatial data also can be versioned for subsequent management. More specifically, the network server 212 can include, for each tile, an identifier of the version of the tile or a timestamp, for example. The mapping application 210 can store the identifier along with the tile, so that tiles with searchable geospatial data can be aged out of the cache 220, correctly and timely replaced with newer versions, etc. More particularly, in an example implementation, the mapping application 110 can determine when certain portions of the map data should be deleted from the cache 220 based on such example signals as explicit user commands, the amount of remaining available memory, and expected future use of these portions. The expected future use of map data in turn can be determined based on such signals as whether the corresponding geographic area is near the user's home, place of work, or places the user frequently visits. As another example, the expected future use of map data can depend on the estimated likelihood the user is visiting the corresponding geographic area on a one-time or otherwise infrequent trip. In some implementations, the user operates certain controls and/or installs certain applications to allow the mapping application 110 to automatically make these determinations.
With continued reference to
When the client device 214 operates in the offline mode, the mapping application 210 can receive a geographic query related to region R and/or a request for automatic suggestions (event 255). In response, the mapping application 210 in this scenario executes the geographic query using the cached, indexed geospatial data (event 256). After retrieving the results (event 257), the mapping application 210 can display the results over a digital map of the region R (event 258). The mapping application 210 can provide the results on the digital map in the same manner as providing the results in the online mode, but in some implementations the mapping application 210 can provide additional notification to the user to indicate that the results were obtained in the offline mode.
Now referring to
Upon determining that a tile with geospatial data should be updated at the client device 214, the network server 212 provides the searchable geographic data for the tile Tx to the client device 214 (event 275). The mapping application 210 then generates a new index using one or more of the tiles with geospatial data already stored in the cache 220 and the newly received tile (event 276). The mapping application 210 uses the new indexed geospatial data to process subsequent queries (event(s) 277). Thus, the mapping application 110 can generate indexed geospatial data using multiple tiles generated at different times.
The events 274 and 275 can occur at any time after the events 272 and 273, such as three hours later or twenty hours later. For example, an automatic process that runs daily at a certain time updates tile Tx with new data. An hour later, the server 212 can provide the new searchable geographic data for the tile Tx to the client device 214 in response to a request for updates or automatically according to a predefined schedule. The server 212 can provide the new data in a push (i.e., server-driven) or a pull (i.e., client-driven) manner, depending on the implementation.
It is also noted that, to update certain geospatial data on the client device 214, the network server 212 need not resend the entire set of geospatial data for a relatively large geographic area, and instead can update only one or several individual tiles. For example, the network server 212 can determine that the latest geospatial data corresponding to tiles T1, T2, and T3 has version number V1 having the time-stamp T1, while geospatial data corresponding to tiles T4, and T5 has a newer version number V2 having the more recent time-stamp T2. The network server 212 can further determine, based on the information stored on the client device 214 or the server 212, that the version of each of the geospatial data tiles T1-T5 is V1. In response, the network server 212 can provide the geospatial data for tiles T4, and T5 according to version V2, without also resending the geospatial data for tiles T1-T3, so as to cover the geographic area corresponding to tiles T1-T5 with current geospatial data. In this manner, the client device 214 and the network server 212 can gradually update the cache 220 without transmitting a large amount of data at once. Moreover, to increase the coverage of geospatial area at the client device 214, the network server 212 can send a set of tiles adjacent to those already available in the cache 220, and the mapping application 210 can rebuild the search index using the already-stored tiles and the new tiles to cover the additional area in addition to the original area.
Several example methods that can be implemented in the system of
The flow then proceeds to block 306, where the map tiles and the tiles with geospatial data are provided to a client device. The geospatial data is formatted so as to enable indexing and subsequent searching at the client device.
At block 308, a change in geospatial data corresponding to one of the tiles previously provided to the client device is detected. The detection at block 308 can be triggered by a request for relevant updates received from a client device, where the request indicates current versions of tiles cached at the client device, for example. To prevent the client device from generating incorrect search results in the offline mode, a new tile with searchable geospatial content for the relevant tile is generated (block 310) and provided to the client device (block 312). Using the updated tile and some of the previously cached tiles, the client device can rebuild the search index. The method 300 completes after executing block 312.
In particular, a next tile in the received set of geospatial data tiles is selected at block 354. The content within the tile is parsed and a search term, such as “nightlife,” is identified at block 356. The search term, as well as an indication of a geographic entity that includes the term and the location of the geographic entity, can be added to one or several tables at block 358. For example, the method 350 can continue to populate a table similar to the Table 1 discussed above. If additional terms are available (block 360), the flow returns to block 356. Otherwise, if all search terms within the tile have been processed, the flow proceeds to block 362. When every relevant tile has been processed, the method 350 completes. Otherwise, the flow returns to block 354, where a new tile is selected.
More generally, tile-based geospatial data can be processed in any suitable manner. For example, in an additional or alternative implementation, multiple tiles are first merged into a temporary shared data structure, which is then parsed and indexed with a single pass.
Now referring to
At block 404, other tiles that were used to generate indexed geospatial data for region R are retrieved from cache. At block 406, new indexed geospatial data is generated using some of the previously cached tiles and the new tile. Further, the older version of the tile received at block 402 is identified and replaced with the new tile in cache.
The following additional considerations apply to the foregoing discussion. Throughout this specification, plural instances may implement components, operations, or structures described as a single instance. Although individual operations of one or more methods are illustrated and described as separate operations, one or more of the individual operations may be performed concurrently, and nothing requires that the operations be performed in the order illustrated. Structures and functionality presented as separate components in example configurations may be implemented as a combined structure or component. Similarly, structures and functionality presented as a single component may be implemented as separate components. These and other variations, modifications, additions, and improvements fall within the scope of the subject matter herein.
Certain embodiments are described herein as including logic or a number of components, modules, or mechanisms. Modules may constitute either software modules (e.g., code embodied on a machine-readable medium or in a transmission signal) or hardware modules. A hardware module is tangible unit capable of performing certain operations and may be configured or arranged in a certain manner. In example embodiments, one or more computer systems (e.g., a standalone, client or server computer system) or one or more hardware modules of a computer system (e.g., a processor or a group of processors) may be configured by software (e.g., an application or application portion) as a hardware module that operates to perform certain operations as described herein.
Unless specifically stated otherwise, discussions herein using words such as “processing,” “computing,” “calculating,” “determining,” “presenting,” “displaying,” or the like may refer to actions or processes of a machine (e.g., a computer) that manipulates or transforms data represented as physical (e.g., electronic, magnetic, or optical) quantities within one or more memories (e.g., volatile memory, non-volatile memory, or a combination thereof), registers, or other machine components that receive, store, transmit, or display information.
As used herein any reference to “one embodiment” or “an embodiment” means that a particular element, feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.
Some embodiments may be described using the expression “coupled” and “connected” along with their derivatives. For example, some embodiments may be described using the term “coupled” to indicate that two or more elements are in direct physical or electrical contact. The term “coupled,” however, may also mean that two or more elements are not in direct contact with each other, but yet still co-operate or interact with each other. The embodiments are not limited in this context.
As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Further, unless expressly stated to the contrary, “or” refers to an inclusive or and not to an exclusive or. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present).
In addition, use of the “a” or “an” are employed to describe elements and components of the embodiments herein. This is done merely for convenience and to give a general sense of various embodiments. This description should be read to include one or at least one and the singular also includes the plural unless it is obvious that it is meant otherwise.
Upon reading this disclosure, those of ordinary skill in the art will appreciate still additional alternative structural and functional designs for a system and a process for providing tiled-based geospatial data to client devices through the disclosed principles herein. Thus, while particular embodiments and applications have been illustrated and described, it is to be understood that the disclosed embodiments are not limited to the precise construction and components disclosed herein. Various modifications, changes and variations, which will be apparent to those skilled in the art, may be made in the arrangement, operation and details of the method and apparatus disclosed herein without departing from the spirit and scope defined in the appended claims.
Number | Date | Country | |
---|---|---|---|
62015428 | Jun 2014 | US |