none
Bing maps page e Bing maps webservices geocoding different location RRS feed

  • Question

  • Hi,
    I'm programming for .net and i'm using bing maps webservices (http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc?wsdl). I noted that bing maps page and bing maps webservices, geocoding the address "via laurentina 653 rome italy" in two different locations.

    I'm sorry for my english.
    Thursday, February 18, 2016 6:06 PM

Answers

  • The issue is that there is no exact match for this address but a lot of close matches. The Bing Maps site uses a slightly different geocoder than what is in the Bing Maps API's as there is some additional data that Bing licenses which they can't expose through a developer API.

    That said, it's worth noting that the web service you are using is the really old SOAP services which aren't even documented anymore, haven't been for years. This service was replaced about 5 or 6 years ago by the faster and more accurate Bing Maps REST services: https://msdn.microsoft.com/en-us/library/ff701713.aspx


    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Friday, February 19, 2016 2:35 AM
    • Marked as answer by Cracken66 Saturday, February 20, 2016 7:15 AM
    Friday, February 19, 2016 2:35 AM
  • By default the service will return a max of 5 results. You can add maxResults=25 to return up to 25 results.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Friday, February 19, 2016 4:57 PM
    • Marked as answer by Cracken66 Saturday, February 20, 2016 7:15 AM
    Friday, February 19, 2016 4:56 PM

All replies

  • The issue is that there is no exact match for this address but a lot of close matches. The Bing Maps site uses a slightly different geocoder than what is in the Bing Maps API's as there is some additional data that Bing licenses which they can't expose through a developer API.

    That said, it's worth noting that the web service you are using is the really old SOAP services which aren't even documented anymore, haven't been for years. This service was replaced about 5 or 6 years ago by the faster and more accurate Bing Maps REST services: https://msdn.microsoft.com/en-us/library/ff701713.aspx


    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Friday, February 19, 2016 2:35 AM
    • Marked as answer by Cracken66 Saturday, February 20, 2016 7:15 AM
    Friday, February 19, 2016 2:35 AM
  • That said, it's worth noting that the web service you are using is the really old SOAP services which aren't even documented anymore, haven't been for years. This service was replaced about 5 or 6 years ago by the faster and more accurate Bing Maps REST services: https://msdn.microsoft.com/en-us/library/ff701713.aspx


    http://rbrundritt.wordpress.com

    I know it. I am using the REST SERVICES now and nothing changes.

    Have you a solution for this problem?

    Thank you for your help.

    Bye

    Friday, February 19, 2016 9:49 AM
  • its not a problem, it is an expected behavior. Bing maps doesn't have an exact match for the added you passed in, so it returns several possible results. When I tested your address I was able to get the geocoder to return 20 addresses that were all very close to what you asked for.

    http://rbrundritt.wordpress.com


    Friday, February 19, 2016 3:29 PM
  • Hi,

    I got only 5.

    Can you pass me the url that you used for call the REST service

    Thank you

    Friday, February 19, 2016 4:12 PM
  • By default the service will return a max of 5 results. You can add maxResults=25 to return up to 25 results.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Friday, February 19, 2016 4:57 PM
    • Marked as answer by Cracken66 Saturday, February 20, 2016 7:15 AM
    Friday, February 19, 2016 4:56 PM
  • Hi,

    Using this url: "http://dev.virtualearth.net/REST/v1/Locations?culture=it-IT&q=via laurentina, 653, roma, italia&output=json&maxResults=30&key=yourkey", I get 20 results only

    Friday, February 19, 2016 5:26 PM
  • Great, same here.

    http://rbrundritt.wordpress.com

    Friday, February 19, 2016 7:27 PM
  • Thank you very much
    Saturday, February 20, 2016 7:15 AM