Geocoder

Re: [design9] Geocoder

By Jason - February 14, 2012

Hi April,

You need to use the same geocoding function on your premium listing query as you did on the first query, that way you will have the _distance field created for both record sets. You can append something to the WHERE clause if necessary.

For example:

'where' => geocoder_getWhereForDistanceWithin($myLat, $myLng, $maxDist, $kmOrMiles) . "AND premium_listing = 1",

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/