Enjoy… SELECT suburbId, suburbName FROM suburb WHERE ROUND((ACOS((SIN(#suburb_latitude#/57.2958)
* SIN(suburb_latitude /57.2958)) + (COS(#suburb_latitude#/57.2958) *
COS(suburb_latitude /57.2958) * COS(suburb_longitude/57.2958 - #suburb_longitude#/57.2958))))
* 3963, 3) <= #val(surroundingRadiusMiles)# There are other ways.. like just passing
in a suburbId and surroundingRadiusMiles.. but I will leave that to you!! ;) Cheers, Adam From: Taco Fleur
[mailto:[EMAIL PROTECTED] Is anyone able to share a query with me that will calculate surrounding
suburbs on a longitude and latitude database? I have the database, but not the query. Thanks |
- [cfaussie] Re: [OT] Long & Lat query Adam Chapman
- [cfaussie] Re: [OT] Long & Lat query Taco Fleur