mejohn5 / javageomodel

Automatically exported from code.google.com/p/javageomodel
0 stars 0 forks source link

Incorrect distance computed #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Add latitude and longitude in an entity using 'Double' instead of the 
primitive type
2. Do a proximity search
 => The GeocellManager won't return anything because the computed distance are huge.

The problem is due to the usage of 'Double' instead of 'double' for the types. 
In GAE + JDO, once your model is out, it's almost impossible to be able to get 
primitive types later. Since I need to support Proximity Search in a new set of 
entities, I need to be able to support this case.

Original issue reported on code.google.com by ppa...@spectrumdt.com on 17 Nov 2011 at 6:33

GoogleCodeExporter commented 8 years ago
Blind and simple patch attached.

Original comment by ppa...@spectrumdt.com on 17 Nov 2011 at 6:50

Attachments: