caching - Intelligently cache google places -
i'm attempting build multiplayer gps game uses google places retrieve local places, such stores or other points of interest. saw here might bit difficult straight-up cache of information get, @ same time, i'm concerned i'll hit api limits quickly, i'm looking intermediate solution.
i'm trying come way intelligently cache google places. supposing there 1 player per city, wander around , discover things , possibly not have problems if keep asking google data every often. base case hitting google "you logged in, there 0 places around you, lets google" , update case "you traveled distance start location, lets more data around you"
however, when 2 players start in opposite sides of city, that's bit trickier. if cache results find, might possibly miss points of interest. suppose p2 starts on outside of circle of p1 has been; means p2 not data elsewhere because have data (because follow previous algorithm, p1 has explored area, when p2 logs in, p2 not need query google more data). difficult know if had cached already, well, without querying google , checking database.
are there strategies overcoming situation this?
Comments
Post a Comment