geocoder documentation?
3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: February 9, 2011 (RSS)
By rez - February 7, 2011 - edited: February 7, 2011
Will there be / is there more info on what's possible with the geocoder plug like below? Is everything defined somewhere like for CMSB?
I dont even get most of that. Rectangle? huh? "ISNULL(_distance), _distance" ?
'addSelectExpr' => geocoder_getSelectExprForDistance($myLat, $myLng, '_distance', $kmOrMiles), // adds '_distance' field to output records
'where' => geocoder_getWhereForDistanceWithin($myLat, $myLng, $maxDist, $kmOrMiles), // optimization: remove results outside of minimum bounding rectangle
'having' => "_distance <= " . $maxDist, // only show results within max distance
'orderBy' => 'ISNULL(_distance), _distance', // sort nearest records first -and- unknown or undefined distances last
));
I dont even get most of that. Rectangle? huh? "ISNULL(_distance), _distance" ?
Re: [rez] geocoder documentation?
By Jason - February 8, 2011
Hi,
All of our documentation on the geocoder plugin is in the readme file and in the comments in the sample pages.
For example, the code you're referencing is returning geocoded records that fall within a certain distance.
If you have any specific questions about parts of the code, please let us know and we'll do our best to explain how it works.
Hope this helps.
All of our documentation on the geocoder plugin is in the readme file and in the comments in the sample pages.
For example, the code you're referencing is returning geocoded records that fall within a certain distance.
If you have any specific questions about parts of the code, please let us know and we'll do our best to explain how it works.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] geocoder documentation?
By rez - February 9, 2011
Ok, I just didnt know if the readme file and comments included or used everything that was possible. For instance, the CMSB documentation shows a huge list of viewer options that i'm sure some of us havent even used yet.
I'll start posts on some specific things I'm hoping to do as I try them.
thanks.
I'll start posts on some specific things I'm hoping to do as I try them.
thanks.