question

24349520 avatar image
0 Votes"
24349520 asked IoTGirl edited

Geocode Dataflow API job results are inaccurate

I am trying to batch geocode using the REST API (to automate data uploads), but the response is extremely inaccurate. I think I have followed all the steps here:
https://docs.microsoft.com/en-us/bingmaps/spatial-data-services/geocode-dataflow-api/create-a-geocode-job-and-upload-data
And I'm using the correct Geocode Dataflow Data Schema (Version 2.0), using the exact parameters required for good results.

I have also tried one address using a REST Services URL
https://dev.virtualearth.net/REST/v1/Locations?countryRegion=US&adminDistrict=California&locality=Fontana&postalCode=92335&addressLine=15463%20Valley%20Blvd%2C%20Fontana%2C%20CA%2092335&userLocation=29.424349,-98.491142&maxResults=1&key={BingMapsKey}
and it works perfectly.

Here is an example of a geocode request:

 <?xml version="1.0" encoding="utf-8"?>
 <GeocodeFeed xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode">
   <GeocodeEntity id="12030000">
     <GeocodeRequest xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode" Culture="en-US" IncludeNeighborhood="1" IncludeQueryParse="true" >
       <Address xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode" AddressLine="15463 Valley Blvd, Fontana, CA 92335" Locality="Fontana" AdminDistrict="California" PostalCode="92335" CountryRegion="US" />
     </GeocodeRequest>
   </GeocodeEntity>
 </GeocodeFeed>

And here's what I get back:

 <?xml version="1.0" encoding="utf-8"?>
 <GeocodeFeed Version="2.0" xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode" >
        
     <GeocodeEntity Id="12030000">
         <GeocodeRequest Culture="en-US" IncludeNeighborhood="true" Query="Rush Truck Center - Fontana Medium-Duty" IncludeQueryParse="true">
             <Address AddressLine="15463 Valley Blvd, Fontana, CA 92335" AdminDistrict="California" CountryRegion="US" Locality="Fontana" PostalCode="92335" />
         </GeocodeRequest>
    
         <GeocodeResponse Name="Fontana, CA" EntityType="PopulatedPlace" Confidence="Medium" MatchCodes="UpHierarchy">
             <Address AdminDistrict="CA" CountryRegion="United States" AdminDistrict2="San Bernardino County" FormattedAddress="Fontana, CA" Locality="Fontana" />
             <GeocodePoint CalculationMethod="Rooftop" Latitude="34.1028938293457" Longitude="-117.435768127441" Type="Point" UsageTypes="Display" />
             <QueryParseValue Property="Locality" Value="Fontana" />
             <BoundingBox SouthLatitude="34.0334243774414" WestLongitude="-117.524337768555" NorthLatitude="34.1841735839844" EastLongitude="-117.401054382324" />
             <Point Latitude="34.1028938293457" Longitude="-117.435768127441" />
         </GeocodeResponse>
    
         <StatusCode>Success</StatusCode>
         <TraceId>979eb1f52ae3422fbfb7e2cd02e52b4c|CH000010A1|0.0.0.1|Ref A: C56F2E6B5DAB4FE395B53C45530C5FA2 Ref B: CH1EDGE1408 Ref C: 2021-06-02T00:01:41Z</TraceId>
     </GeocodeEntity>
 </GeocodeFeed>

To summarize:
Input address:
15463 Valley Blvd, Fontana, CA 92335

Output address:
Fontana, CA

Input Lat/Long a REST Services URL:


34.0695253,-117.467598
(correct)

Output Lat/Long using Geocode Dataflow:
34.1028938293457,-117.435768127441

These coordinates are almost 4 miles apart.

To troubleshoot this:
I used the exact same parameters in a REST Services URL to see if my parameters were correct. The data I get back is 100% correct.

Asked this question on StackOverflow. No responses.
https://stackoverflow.com/questions/67797560/inaccurate-resulte-from-bing-maps-geocode-dataflow



windows-maps
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers