Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8307993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:40:11+00:00 2026-06-08T18:40:11+00:00

I have an Android app that when launched, inflates a MapView, gets the user’s

  • 0

I have an Android app that when launched, inflates a MapView, gets the user’s location and then makes a request to my server to fetch all points of interest (POI) as JSON within some radius of their location and draws those points on the map. I want the user to be able to pan around the map and see more points of interest load as they go outside of that initial data load, just like Google maps.

My initial thought is to handle the pan event and when panning stops, get the map center, and make another server request for POI within some radius of that location. This seems to me like this will quickly get to a point where it’s sending back redundant data and making unnecessary server requests.

I’m looking for a caching strategy where I can make requests to fetch new data, but not have to make additional requests for the same data. My POI don’t change very often either, so caching would be ideal to speed up subsequent launches of my app. Are there any best practices out there for such a thing? Or is it preferred to make a larger data request up front and just fetch new data as necessary?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:40:11+00:00Added an answer on June 8, 2026 at 6:40 pm

    What spontaneously comes to my mind is sectioning the POIs in square tiles for example. These tiles have a lastUpdate timestamp and both client and server communicate in terms of tiles, instead of geo location center point and radius. Your client would always send the lastUpdate timestamp of the cached tiles to the server and the server would only respond with updated data when that timestamp did change for the requested tiles. Another advantage is that your algorithm for retrieving POIs would be way faster compared to “point in circle” calculations.

    Your client app can decide when to re-request tiles based on the timestamp. That depends on how often your server data changes. If it changes just once per day, then let your app re-request cached tiles only once per day. My suggestion is based on a fixed size tile (like 2 square miles for example). Otherwise you’ll have a hard time with keeping track of the lastUpdate time stamps.
    You could however create something like several different “levels of detail” for your zoom levels or your app needs to calculate the upper left visible tile and the lower right visible tile depending on the current zoom.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Android client app that communicates with server using Socket . On my
I have a dialog in an Android app that I don't want the user
Lets say you have a web app related Android app that requires the user
Let's say I have an Android App A that is installed in the user's
I have an android app that I am trying to launch and it gives
I have an Android app that has an Application class and I have another
I have an android app that plays audio from the application class. I have
I have an Android app that I had working a few months ago which
I have an Android app that begins by displaying a dialog. When I set
I started developing an android app that have to interact with MMS attachements, in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.