Geo based database suggestion [on hold]

المشرف العام

Administrator
طاقم الإدارة
For an application that I'm currently working on, I would need to have geographical data displayed on a Map in my UI. I'm going to use Leaftlet.js and OpenStreetMap for this purpose. I have to now import the latitude and longitude information for which I will be getting the data as a .pbf file!

After some research, I decided to go with MongoDB though I'm not sure if it would fit for what I'm trying to do. So in essence here is what I want!

  1. I offer in my UI a search box where the user enters an address (street, zip code, city). Only the zip code is mandatory!
  2. I need to take this information and perform a query in the .pbf data file to search for nearby locations (could be schools, bus stops, hospitals) say within a radius of 3 km.
  3. I need to then show all the returned locations with a marker on the Map on my browser
I'm not sure on how to structure this data set such that my query becomes easier, i.e., when I return the results to the leaflet.js, the information is already segregated like schools, hospitals and so on so that I can render them with a different color marker!

Unfortunately, there seems to be very little information available to me on how I could achieve what I want!

Could anyone here please give me some references on how about I should go doing this?



أكثر...
 
أعلى