[Chameleon] PHPGeoCoder SearchAttribute

McGraw, Joanne mcgrawj at AGR.GC.CA
Wed Aug 31 13:00:37 EDT 2005


G'day everyone,

I'm trying to alter the PHPGeoCoder code in the Locate widget's PHTML to accept a bounding box extent to limit the results. I've got the coordinates for a lat/long bounding box and have tried the insert the following before it actually searchServices() and getResult():

$oGeoCoder->addSearchAttribute(new BBox($oRect->minx, $oRect->miny, $oRect->maxx, $oRect->maxy));

It has no effect. My search area is within -99,36 and -47,59 (long,lat), but when I use the GazzetteerServer and another Placename SearchAttribute of Vancouver, I get 'Vancouver, BC' as one of the result items. That's just a "little bit" outside the boundaries I'm specifying.

Unfortunately, I can't find any documentation about how to work with this PHPGeoCoder object besides just looking at the code in '/common/phpgeocoder/' and I'm obviously not figuring it out properly.

1. Should I be able to do what I am trying to do?
2. If yes, how? Obviously, my approach isn't working.

Cheers,
jtm


Joanne T. McGraw
Spatial Data Visualization Specialist / Spécialiste en visualisation des données spatiales
Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada
Telephone/Téléphone: (613) 759-6103
Facsimile/Télécopieur: (613) 759-1937
960 Carling Ave, #1136
Ottawa, Ontario
K1A 0C6

mcgrawj at agr.gc.ca
 




More information about the Chameleon mailing list