Jump to content
Server Maintenance This Week. ×

Positions/Location


This topic is 6814 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Lattitude and logitude..

Did I spell those correct?

Not quite. :P

I'd like a field type that would hold a lat/lon position, and at least a calculation for distance between two points.

You can use regular number fields to hold latitude and longitude. The trick is calculating the distance. While the distance between latitude points is consistent (though don't ask me what it is,) the distance between longitude points depends on the latitude.

There's probably some magic formula out there that can determine distance correctly, if you can locate it, then it's a simple matter to build a calc out of it with the latitude and longitude fields as inputs.

Link to comment
Share on other sites

I hadn't thought about the differences due to the ellipsoid shape of the Earth. It looks like the CFs on Brian Dunning's site use either some sort of Mean Radius or the Equatorial Radius.

I would imagine for someone good at geometry and trigonometry (not me,) it should be possible to calculate the radius for each latitude, and use those if precision is important.

Link to comment
Share on other sites

Oh, Thanks!

That site is absolutly too cool!

The distance calculation seems to work. I'll test it more tonight.

Now I -really- wish costom calculations were global to all my FM files.

P.S. I wanted the Lat/Lon stuff for sailing. So the radius, for me, is pretty much sea level. This'll be fine, all I needed was a "which port is closest to me" kinda' thing.

-jim lee

Edited by Guest
Thought to add this..
Link to comment
Share on other sites

This topic is 6814 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.