gchlodzinski

Problem with extent VEGeocoder returns

Discussion created by gchlodzinski on Sep 27, 2011
Latest reply on Sep 29, 2011 by DSwingley-esristaff
Hello,

It looks to me that it returns invalid results when it is being queried for strings like: USA, United States, North America.
For example when I use string USA, it sends the following request:
http://serverapi.arcgisonline.com/veadaptor/production/services/geocode/geocode?query=USA&token=<bing key>

Then the result it:
[
   {
      "address":{
         "countryRegion":"United States",
         "formattedAddress":"United States"
      },
      "bestView":{
         "xmin":177.348754882813,
         "ymin":26.6772079467773,
         "xmax":-55.848747253418,
         "ymax":75.7627944946289,
         "spatialReference":{
            "wkid":4326
         }
      },
      "confidence":"high",
      "displayName":"United States",
      "entityType":"Sovereign",
      "matchCodes":[
         "Good"
      ],
      "locationArray":[
         {
            "x":-98.9079971313477,
            "y":39.4500007629395,
            "calculationMethod":"Rooftop"
         }
      ]
   }
]


When I try to apply extent returned by 'bestView' (after converting to to web mercator using esri.geometry.geographicToWebMercator(bestView))
it takes me somewhere deep in Russia instead of showing USA.
Regular queries like 'Italy' etc works fine for me. Only the specific related to USA or North America seems to be returning invalid extent.

Outcomes