title: How to choose between MongoDB and PostgreSQL for GIS?
body: <p>I'm trying to find some information on this topic but most articles I'm finding are 3+ years old.  I am also fairly new to this side of things and not sure who to ask.</p>
  
  <p>For my particular use case, I'm not a database expert at all but I've used MongoDB a few times before.  I have only used PostgreSQL once for a small project (no GIS stuff involved).  For what its worth, I have a small amount of data right now that I've stored into dynamoDB.  There's a geo library for it, but it is only available in Java and I don't know Java very well.</p>
  
  <p>My use case is fairly simple - besides user profile data, I want to be able to query markers added by users.  Markers within X miles of a authenticated user's current <code>latLng</code>, etc.  Markers have other data besides <code>latLng</code> associated with them, such as the user who added it, title, description, etc.</p>
  
  <p>My goal is to be able to return results to the client side with markers within X miles in their current location from nearest to farthest using a web API.  For this, between Mongo and PostgreSQL, what would be better to start with?  </p>