I've tested it yet multiplying in miles and kilometers but the result if K
miles/kms instead the correct result.

Thanks for your reply.

On Wed, Jul 28, 2010 at 19:00, Bill Freeman <ke1g...@gmail.com> wrote:

> Having done my geo distance by "hand" instead of Django GEOS, it may not
> be relevant, but have you tried multiplying the result you get by the
> radius of
> the earth?  Most formulas for this kind of thing are applicable to any
> size sphere,
> not just the earth, and return the distance as an angle, as seen from the
> center
> of the sphere, and typically in radians.
>
> Bill
>
> 2010/7/28 Alexandre González <agonzale...@gmail.com>:
> > Hi! I'm using the Django GEOS API [1] in my project to see the distance
> > between two users.
> > I get the coordinates from google maps in latitude/longitude mode and I
> need
> > to calculate the distance between them. I'm testing with .distance()
> method
> > at GEOSGeometry but I receive a strange value.
> > This is the result of one of my test:
> > In [45]: Point(40.96312364002175,
> > -5.661885738372803).distance(Point(40.96116097790996, -5.66283792257309))
> > Out[45]: 0.0021814438604553388
> > In Google Maps Distance Calculator [2] I can see that the result is:
> 0.145
> > miles = 0.233 km = 0.126 nautical miles = 233 meters = 764.436 feet
> > A friend told me on Google that perhaps I must calculate the distance in
> > UTMs and the results surely is a lat/long distance. To test it I need
> pygps
> > that is a project not maintained to import
> > LLtoUTMfrom from LatLongUTMconversion
> > Any idea about this?
> > [1] http://docs.djangoproject.com/en/dev/ref/contrib/gis/geos/
> > [2]
> http://www.daftlogic.com/projects-google-maps-distance-calculator.htm
> >
> > --
> > Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx,
> .ppt
> > and/or .pptx
> > http://mirblu.com
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt
and/or .pptx
http://mirblu.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to