Welcome to MapForums!

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

## Math involved in reverse geocoding

This is a discussion on Math involved in reverse geocoding within the MapPoint Desktop Discussion forums, part of the Map Forums category; hi all i have read the article about reverse geocoding, very intersing of course .. but i don't have fully ...

1. Junior Member Yellow Belt
Join Date
Sep 2006
Posts
14

## Math involved in reverse geocoding

hi all i have read the article about reverse geocoding, very intersing of course ..

but i don't have fully understood some math involved in those algorithms:

- what about the expression 1\60\1852 ? (distance in meter)*(1/1852) = distance in sea miles...and what about the multiplication for 1/60, what does it mean ?

- offset for startingLongitude= radius*cos(angle) / cos( startingLongitude in radius)... what about the mening of the division for:

i hope you can help me ...
thanks

2. ## Re: Math involved in reverse geocoding

I don't know the algorithm you're looking at, but the
"distance in meter" * 1/1852 looks to be asimple conversion from metres to nautical miles.
A statute mile is about 1600metres (to 2sf), and a nautical mile is a bit bigger.

The first one be metres converted to degrees latitude? 60 probably isn't far from the number of nautical miles in a degree latitude; and I know the definition is a nice round number...

Richard

3. Junior Member Yellow Belt
Join Date
Sep 2006
Posts
14

## Re: Math involved in reverse geocoding

I'am using the algorithm found in the article of Wilfried Mestdagh i have found in this site. The algorithm starts making your lat and longit as the center of concentric circumferences with incremental radius, in this circumferences it selects new values of lat and longit..

so do you think that after the conversion from meter to nauticakl mile the multiplication for 1/60 is used to find the number of degree of nautical miles in a degree of latitude? mmm... i don't think this is it's purpose because the 1\60\1852*distanceInMeter is the length of the radius ...

4. Senior Member Black Belt
Join Date
Nov 2004
Location
Belgium
Posts
2,433

## Re: Math involved in reverse geocoding

Hi,

1 arc minute is exacly 1 nautical mile. 60 arc minute is 1 degree. 1852 meter is also 1 nautical mile. So the calculation converts degree to meters.

5. Junior Member Yellow Belt
Join Date
Sep 2006
Posts
14

## Re: Math involved in reverse geocoding

Thanks...

but probably i am a big donkey...

so: Distance(in what unit of measure?) = (1/60)*1852*(Distance(in what unit of measure?))....

6. Junior Member Yellow Belt
Join Date
Sep 2006
Posts
14

## Re: Math involved in reverse geocoding

...finally i have the solution

distanceInDegree= (1/60)*(1/1852)*distanceINMeter..is it right?

now my only doubt is about

- offset for startingLongitude= radius*cos(angle) / cos( startingLatin radius)... what about the mening of the division for:

7. Senior Member Black Belt
Join Date
Nov 2004
Location
Belgium
Posts
2,433

## Re: Math involved in reverse geocoding

Hi,

Yes you right, it convert to meter, because 1852 meter is exacly 1 nautical mile.

8. Senior Member Black Belt
Join Date
Nov 2004
Location
Belgium
Posts
2,433

## Re: Math involved in reverse geocoding

Hi,

The Cos(latitude) calculation is done to correct the longitude for the right distance. On the equator 1 minute longitude is exacly 1 minute latitude, so both ar 1 exact nautical mile. But on the poles every longitude calculation is null. And between poles and equator it is a value depending on the Latitude.

9. Junior Member Yellow Belt
Join Date
Sep 2006
Posts
14

## Re: Math involved in reverse geocoding

thanks a lot, very useful...

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•