none
Rest - Location Service - query - addressLine not in response RRS feed

  • Question

  • In my response isn't a "addressLine" if i have a non matching culture information for that location. How can i search in more than one country for a given street? The "locality" is normally found.

    Example:

    http: //dev.virtualearth.net/REST/v1/Locations?
    o=json&
    q=aStreetName%20aCityName&
    ...
    c=de&
    ...
    If the location is in Germany the response has a "streetLine". A request and the Culture "en-GB" only gives me the "locality". 


    • Edited by _Phil.H_ Wednesday, March 22, 2017 3:26 PM
    Wednesday, March 22, 2017 3:23 PM

Answers

All replies

  • Searching with nothing but a street name will give you poor results almost always. You need to provide more information. If you search for a street in a city, it will be much more successful. Culture information does help in most cases as well.

    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Thursday, March 23, 2017 1:53 AM
    • Unproposed as answer by _Phil.H_ Friday, March 24, 2017 1:57 PM
    Thursday, March 23, 2017 1:53 AM
  • Thank you for your reply.

    How can i make my search more accurate ? Do i take the best results and run another search ?

    As an example i search for a street and city in poland.

    http://dev.virtualearth.net/REST/v1/Locations?o=json

    &q=ulica%20okopowa%20Warschau

    &inclnb=1

    &maxRes=20

    &include=queryParse

    &umv=4.5808465%2C55.7357038%2C30.5011545%2C41.8988953

    &c=pl

    &key=aBingKey




    response in polish(pl) i get:

    ....
    	"resourceSets": [{
    		"estimatedTotal": 1,
    		...
    			"address": {
    				"addressLine": "ulica Okopowa",
    				"adminDistrict": "MA",
    				"adminDistrict2": "Warszawa",
    				"countryRegion": "Polska",
    				"formattedAddress": "ulica Okopowa, Warszawa, MA 00-869",
    				"locality": "Warszawa",
    				"neighborhood": "Wola",
    				"postalCode": "00-869"
    			},
    			"confidence": "High",
    ...



    In German(de) i get:

    ...
    		"estimatedTotal": 1,
    		...
    			"address": {
    				"adminDistrict": "MA",
    				"adminDistrict2": "Warschau",
    				"countryRegion": "Polen",
    				"formattedAddress": "Warschau, Voivod Masowien, Polen",
    				"locality": "Warschau"
    			},
    			"confidence": "Medium",
    ...


    In English-UK (en-GB) i get :

    ...
    		"estimatedTotal": 2,
    		...
    			"address": {
    				"adminDistrict": "MA",
    				"adminDistrict2": "Warsaw",
    				"countryRegion": "Poland",
    				"formattedAddress": "Warsaw, Mazowieckie, Poland",
    				"locality": "Warsaw"
    			},
    			"confidence": "Medium",
    			...
    		{
    			...
    			"address": {
    				"adminDistrict": "MA",
    				"adminDistrict2": "Warsaw",
    				"countryRegion": "Poland",
    				"formattedAddress": "Warsaw, Mazowieckie, Poland"
    			},
    			"confidence": "Low",
    ...



    • Edited by _Phil.H_ Thursday, March 23, 2017 8:12 AM
    Thursday, March 23, 2017 8:11 AM
  • Very odd. I have logged this as a bug for the team to investigate.

    [Blog] [twitter] [LinkedIn]

    Saturday, March 25, 2017 3:25 PM
  • This appears to be resolved now.

    [Blog] [twitter] [LinkedIn]

    Thursday, August 24, 2017 6:42 PM