Returns true if the two indicated points are at a lower distance than the previous.
 

1 geo.isWithinDistance

<geo.isWithinDistance distance='distance'>
    <lat1 /> +
    <lng1 /> +
    <lat2 /> +
    <lng2 /> +
</geo.isWithinDistance>
Example

Calculate if a point is at a lower distance than or equal to another.

Copy
<xsql-script>
    <body>
        <return>
            <geo.isWithinDistance distance="100000">
                <number>41.383333</number>  <!-- bcn -->
                <number>2.183333</number>
                <number>41.984444 </number>   <!-- girona -->
                <number>2.821111</number>
            </geo.isWithinDistance>     
        </return>
    </body>
</xsql-script>