I'm trying to create the following algorithm below but I'm not sure how I can get started, hence not having any code here:
The goal is to display (for example 30 stores from Google Maps). I'm currently using Google Maps API in the app.
The Algorithm:
Retrieve 30 different stores based on the level of zoom.
Example 1: if the zoom is at 10 (City Zoom) show 30 different stores at that specific zoom. These stores will cover different lats and long from the Map. (ideally cover North, South, East, and West from what's the user is currently seeing in the map).
Example 2: if the user zooms to level 15, (Street Zoom) it will also display these 30 stores at that specific zoom. If not 30 stores, it will display (< 30).
Any help will be appreciate. If more clarification necessary, comment and I will bring modifications to the post.