none
Reverse geocoding - Address unavailable RRS feed

  • Question

  • Hi all,

    Have been using Bing Maps for a while now, we gather data as GPS coord and reverse-geocode them after the fact. Have not seen any issues until recently, we get a valid GPS value but cannot get an address. Looking at it on the map you can see it is ok, right smack on the street (so not an issue of being too far from a street) and yet getting the message "Address Unavailable" - this is happening more and more and not localized to one area, across the US since about 2 weeks. Our code has not changed in over a year, so I'm kind of scratching my head on this one.

    Has anyone else seen this kind of problem?

    Thanks,

    Chris 

    • Moved by Ricky_Brundritt Tuesday, December 18, 2012 10:48 AM (From:Bing Maps General)
    Wednesday, December 12, 2012 8:57 PM

Answers

  • Really? When I call:

    http://dev.virtualearth.net/REST/v1/Locations/28.5744444444444,-81.2619444444444?key=YOURBINGMAPSKEY

    I get:

    {
       "authenticationResultCode":"ValidCredentials",
       "brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png",
       "copyright":"Copyright © 2012 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.",
       "resourceSets":[
          {
             "estimatedTotal":1,
             "resources":[
                {
                   "__type":"Location:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1",
                   "bbox":[
                      28.570058605251894,
                      -81.268852825876735,
                      28.577784040393247,
                      -81.257124070409276
                   ],
                   "name":"Constantine St, FL 32817",
                   "point":{
                      "type":"Point",
                      "coordinates":[
                         28.573921322822571,
                         -81.262988448143
                      ]
                   },
                   "address":{
                      "addressLine":"Constantine St",
                      "adminDistrict":"FL",
                      "adminDistrict2":"Orange Co.",
                      "countryRegion":"United States",
                      "formattedAddress":"Constantine St, FL 32817",
                      "postalCode":"32817"
                   },
                   "confidence":"Medium",
                   "entityType":"Address",
                   "geocodePoints":[
                      {
                         "type":"Point",
                         "coordinates":[
                            28.573921322822571,
                            -81.262988448143
                         ],
                         "calculationMethod":"Interpolation",
                         "usageTypes":[
                            "Display",
                            "Route"
                         ]
                      }
                   ],
                   "matchCodes":[
                      "Good"
                   ]
                }
             ]
          }
       ],
       "statusCode":200,
       "statusDescription":"OK",
       "traceId":"fbea974bde1d4aee966aef8dfffd488e|LTSM001151|02.00.83.1900|LTSMSNVM001469, LTSMSNVM002403"
    }



    twitter: @alastaira blog: http://alastaira.wordpress.com/ | Pro Spatial with SQL Server 2012

    • Marked as answer by Ricky_Brundritt Wednesday, December 19, 2012 11:19 AM
    Friday, December 14, 2012 8:11 AM
    Moderator
  •  "Information relative to the address is not available for this position" - I've never seen or heard of this message from the Bing Maps Reverse Geocoder before. What service are you using? Can you provide a URL? Also, what kind of Bing Maps key are you using, Trial, Basic, Enterprise? If you are not using an Enterprise key it is possible that you are being rate limited.

    http://rbrundritt.wordpress.com

    • Marked as answer by Ricky_Brundritt Wednesday, December 19, 2012 11:19 AM
    Friday, December 14, 2012 8:35 AM
  • I recommend using JSON Serialization. It doesn't break as easily and is much simpler to use. Take a look at this blog post: http://rbrundritt.wordpress.com/2012/01/06/bing-maps-rest-service-net-libraries/

    http://rbrundritt.wordpress.com

    Friday, December 21, 2012 10:18 AM

All replies

  • What are the coordinates?

    twitter: @alastaira blog: http://alastaira.wordpress.com/ | Pro Spatial with SQL Server 2012

    Thursday, December 13, 2012 8:14 AM
    Moderator
  • 28°34'28"N 81°15'43"W

    Even the Bing Maps website can't give me an address, but Google does.

    Chris

    Thursday, December 13, 2012 6:28 PM
  • I don't make that "smack on the street" - I make it in a car park somewhere on a trading estate?


    Anyway, the Bing Maps Locations API reverse geocodes this as "Constantine St, FL 32817"... is that not what you expected?


    twitter: @alastaira blog: http://alastaira.wordpress.com/ | Pro Spatial with SQL Server 2012

    Thursday, December 13, 2012 9:24 PM
    Moderator
  • The "smack on the street" was another GPS value. We have many with this issue and I choose the first one I saw.

    If I had gotten back "Constantine St, FL 32817" I would have been very happy... instead I get "Information relative to the address is not available for this position" ?!?

    Thanks,

    Chris


    Thursday, December 13, 2012 9:46 PM
  • Really? When I call:

    http://dev.virtualearth.net/REST/v1/Locations/28.5744444444444,-81.2619444444444?key=YOURBINGMAPSKEY

    I get:

    {
       "authenticationResultCode":"ValidCredentials",
       "brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png",
       "copyright":"Copyright © 2012 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.",
       "resourceSets":[
          {
             "estimatedTotal":1,
             "resources":[
                {
                   "__type":"Location:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1",
                   "bbox":[
                      28.570058605251894,
                      -81.268852825876735,
                      28.577784040393247,
                      -81.257124070409276
                   ],
                   "name":"Constantine St, FL 32817",
                   "point":{
                      "type":"Point",
                      "coordinates":[
                         28.573921322822571,
                         -81.262988448143
                      ]
                   },
                   "address":{
                      "addressLine":"Constantine St",
                      "adminDistrict":"FL",
                      "adminDistrict2":"Orange Co.",
                      "countryRegion":"United States",
                      "formattedAddress":"Constantine St, FL 32817",
                      "postalCode":"32817"
                   },
                   "confidence":"Medium",
                   "entityType":"Address",
                   "geocodePoints":[
                      {
                         "type":"Point",
                         "coordinates":[
                            28.573921322822571,
                            -81.262988448143
                         ],
                         "calculationMethod":"Interpolation",
                         "usageTypes":[
                            "Display",
                            "Route"
                         ]
                      }
                   ],
                   "matchCodes":[
                      "Good"
                   ]
                }
             ]
          }
       ],
       "statusCode":200,
       "statusDescription":"OK",
       "traceId":"fbea974bde1d4aee966aef8dfffd488e|LTSM001151|02.00.83.1900|LTSMSNVM001469, LTSMSNVM002403"
    }



    twitter: @alastaira blog: http://alastaira.wordpress.com/ | Pro Spatial with SQL Server 2012

    • Marked as answer by Ricky_Brundritt Wednesday, December 19, 2012 11:19 AM
    Friday, December 14, 2012 8:11 AM
    Moderator
  •  "Information relative to the address is not available for this position" - I've never seen or heard of this message from the Bing Maps Reverse Geocoder before. What service are you using? Can you provide a URL? Also, what kind of Bing Maps key are you using, Trial, Basic, Enterprise? If you are not using an Enterprise key it is possible that you are being rate limited.

    http://rbrundritt.wordpress.com

    • Marked as answer by Ricky_Brundritt Wednesday, December 19, 2012 11:19 AM
    Friday, December 14, 2012 8:35 AM
  • Indeed, when I call the web service in the same way you do... I get a correct street address.

    Seems my error occurs when I try to parse out the JSON data and looking for the locality to populate the city name.

    address = jsonResponse.getJSONArray("resourceSets").getJSONObject(0).getJSONArray("resources").getJSONObject(0).getJSONObject("address");

    ...

    mapRef.setCity(address.getString("locality"));

    org.json.JSONException: JSONObject["locality"] not found.

    From your sample, the city is defined as adminDistrict2... 

    Which is weird... because this is new behaviour for me... and it does not generate this error all the times.

    Chris

    Thursday, December 20, 2012 10:19 PM
  • I recommend using JSON Serialization. It doesn't break as easily and is much simpler to use. Take a look at this blog post: http://rbrundritt.wordpress.com/2012/01/06/bing-maps-rest-service-net-libraries/

    http://rbrundritt.wordpress.com

    Friday, December 21, 2012 10:18 AM