<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks, this works perfectly.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Pfirter Lukas<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, April 13, 2007 1:18
AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">users@openlayers.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [OpenLayers-Users]
Distance Between Two Points</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Hello Brian,</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>I think you are looking for <strong><b><font
face=Arial><span style='font-family:Arial'>OpenLayers.Util.distVincenty(point1,point2)</span></font></b></strong>,
that's what I'm fighting with at the moment.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>See: <a
href="http://openlayers.org/pipermail/users/2007-April/001292.html">http://openlayers.org/pipermail/users/2007-April/001292.html</a></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>And here: <a
href="http://openlayers.org/pipermail/users/2007-April/001303.html">http://openlayers.org/pipermail/users/2007-April/001303.html</a></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>I'm currently working on this distance
tool: <a
href="http://dev.webser125.lookass.ch/OpenLayers_Google_db/click_lines_distance.php">http://dev.webser125.lookass.ch/OpenLayers_Google_db/click_lines_distance.php</a></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Lucas</span></font><o:p></o:p></p>
<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=DE style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabIndex=-1>
</span></font></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
lang=DE style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font
size=2 face=Tahoma><span lang=DE style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] <b><span
style='font-weight:bold'>Im Auftrag von </span></b>Brian Krebs<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Donnerstag, 12. April
2007 23:11<br>
<b><span style='font-weight:bold'>An:</span></b> <st1:PersonName w:st="on">users@openlayers.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Betreff:</span></b> [OpenLayers-Users]
Distance Between Two Points</span></font><span lang=DE><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m geocoding an address and using the lat/lon to
center my map when it is first displayed. The user can then click on the
map to place a marker which I’m capturing the lat/lon of. The
customer has a requirement to not allow saving the lat/lon of the marker if it
is more than 1 mile away from the initial center lat/lon. I noticed that
in 2.4 RC1, there is a distanceTo function under Geometry. I’m not
ready to move to that version yet so I’m using 2.3. Is there some
similar functionality in this version or can someone give me a code example of
how to determine the distance?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks<o:p></o:p></span></font></p>
</blockquote>
</div>
</body>
</html>