none
Search result differences in V7 and V8 RRS feed

  • Question

  • Hi,

    I was upgrading Bing maps from v7 to v8 and facing issues in the search result. Following are the scenarios which are behaving differently in v7 and v8:-

    1. Blank search:- In v7 for blank where clause, it is working fine (with no results returned) whereas in v8 same condition is throwing error

     var geocodeRequest = {  where: "",
                                        count: 10,
                                        callback: geocodeCallback, 
                                        errorCallback: errCallback };

    2. Search with special characters:- In v7 for special characters in where clause, it is working fine (with no results returned) whereas in v8 same condition is throwing error 

    var geocodeRequest = {  where: "@#$%dfgdfgdfgdfg",
                                        count: 10,
                                        callback: geocodeCallback, 
                                        errorCallback: errCallback };

    3. Invalid address:- For invalid address, "werv,werv,68508" in V7 the topResult.location is coming somewhere in US whereas for V8 it is giving some location in Brazil

    var topResult = geocodeResult.results && geocodeResult.results[0];

    Can you pls help, if these are intentional changes in V8 or am i missing something.........

    Thanks.

    Friday, June 9, 2017 8:22 AM

Answers

  • 1. This is by design and an improvement over v7.

    2. Special characters are supported when they are part of a properly formed query. The input you provided wouldn't have any results. However a query like "fifth & main" for a cross street in a city would work fine.

    3. When it comes to garbage requests you should expect garbage responses. The reason for the difference between v7 and v8 is that v8 uses a newer geocoder backend through the bing maps rest services while v7 is using the very old soap services which are being turned off in July.


    [Blog] [twitter] [LinkedIn]

    Friday, June 9, 2017 4:07 PM