AnsweredAssumed Answered

Geocoder dijit: exact match I know exists in searchExtent not returned

Question asked by greenkarmic on Mar 26, 2015
Latest reply on Mar 27, 2015 by greenkarmic



Why is it that if I send this text 500 boulevard des laurentides to the Geocoder service, then it will only return these two matches:

500 Boulevard des Laurentides, Laval, Québec, CAN

500 Boulevard des Laurentides, Vimont, Québec, CAN


The address I'm looking for is this:

500 Boulevard des Laurentides, Saint-Jérôme, Québec, CAN


But the Geocoder won't offer this result unless I specify the city too.

The street name text is an exact match, why is it not returned initially?

I don't get it. Is there something wrong in my options?


Here is my code:


            this.searchAddressGeocoder = new Geocoder({

               arcgisGeocoder: {

                  url: '//',

                  outFields: "*",

                  searchExtent: new Extent(


                    xmin: -8500000,

                    ymin: 5600000,

                    xmax: -8000000,

                    ymax: 6150000,

                    spatialReference: {

                        wkid: 102100




                  sourceCountry: "CA",

                  suffix: " ,Quebec",

                  categories: ['Address']


               autoComplete: true,

               autoNavigate: false,

               geocoderMenu: true,


               maxLocations: 6,

               minCharacters: 3,

               searchDelay: 350,                                                   // milliseconds

               theme: "simpleGeocoder",

               //highlightLocation: true,

               localSearchOptions: {



               onSelect: lang.hitch(this, this.onGeocoderAddressSelect)

            }, "searchAddress-geocoder");




Edit: Another question. Is there a way to specify a point, and have the Geocoder prefer results near that point ?