title: Convert Latitude and Longitude values to a custom sized grid
body: <p>I am making a java program that classifies a set of lat/lng coordinates to a specific rectangle of a custom size, so in effect, map the surface of the earth into a custom grid and be able to identify what rectangle/ polygon a point lies in. </p>
  
  <p>The way to do this I am looking into is by using a map projection (possibly Mercator). </p>
  
  <p>For example, assuming I want to classify a long/lat into 'squares' of 100m x 100m, </p>
  
  <p>44.727549, 10.419704 and 44.727572, 10.420460 would classify to area X </p>
  
  <p>and </p>
  
  <p>44.732496, 10.528092 and 44.732999, 10.529465 would classify to area Y as they are within 100m apart.
  (this assumes they lie within the same boundary of course)</p>
  
  <p>Im not too worried about distortion as I will not need to display the map, but I do need to be able to tell what polygon a set of coordinates belong to. </p>
  
  <p>Is this possible? Any suggestions welcome. Thanks. </p>
  
  <p><strong>Edit</strong></p>
  
  <p>Omitting projection of the poles is also an acceptable loss</p>