1
  1. I want to store some POIs (point of interests) on google maps for use only within an android app.
  2. And then I want to retrieve all POIs within 'x' km range of a user's current location.

So question is: Is it possible to store custom data on google maps for app's private use? (please provide link to any examples)

Any other fully managed solutions to store & retrieve geospatial data ?? Otherwise what are the best ways to store this data for speedy development ? Probably using something like an AWS service ?

Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
  • Could you give concrete examples of what you want Google Maps to find? Storing it is not a problem. – Emmanuel Delay Sep 08 '15 at 11:48
  • @EmmanuelDelay: I need to store my application data like events shared by a user on a location & then display it to other users near that location within my app. Lets say events within 2 km radius of current location. I am thinking if I can rely completely on maps api without using any external db for my app. Is it possible ? – Rajat Gupta Sep 09 '15 at 06:08
  • @user01 without external db seems impossible. – KNU Sep 16 '15 at 10:48

2 Answers2

0

It is not possible to store your data on google maps as you mentioned. You will need your own database or an external solution for that. Fusion Tables could be a solution although I would not recommend it. There are tutorials about it if you are interested in this solution.

Any kind of database allows you to store coordinates, but in most cases you will need to write your own functions to do distance calculations with your data. There is a good article here that reviews the different aspects of a few database systems.

MySQL also has an extension that can help you with the generation, storage, and analysis of geographic features.

You can also check my answer here that explains how to calculate great-circle distance using the Haversine formula. Once you have this formula in place, you can easily get POIs within a certain range.

Hope this helps.

Community
  • 1
  • 1
MrUpsidown
  • 21,592
  • 15
  • 77
  • 131
0

You can make use a kml file to store information. When loading you can load the kml file on the top of the google map.

MACMAN
  • 1,883
  • 1
  • 21
  • 35