none
Limit Autosuggest by Country. RRS feed

  • Question

  • We are migrating from Google Maps to Bing Maps.

    In Google Maps we could restrict the Autosuggest to particular region like a country.

    Is there a way in Bing Maps to limit the Auto suggest locations to a country or a region. This is a very important functionality from our application stand point.

    Regards,

    Umesh V

    Saturday, May 6, 2017 4:42 AM

Answers

  • This option isn't currently available, but is planned. Currently, if used with a map, the map view is used to influence the results to be relevant to users in that area, but does not limit the results to that area.

    [Blog] [twitter] [LinkedIn]

    Saturday, May 6, 2017 2:32 PM
  • I think now we can limit the auto suggest options to a country using following code. 

     Microsoft.Maps.loadModule('Microsoft.Maps.AutoSuggest', function () {
                    var manager = new Microsoft.Maps.AutosuggestManager({
                        map: map,
                        countryCode: 'US'
                    });
                });

    Monday, February 12, 2018 2:55 PM
  • @Umesh correct. Support for limiting autosuggest suggestions to a single country was added this past fall. 

    [Blog] [twitter] [LinkedIn]

    Monday, February 12, 2018 5:16 PM

All replies

  • This option isn't currently available, but is planned. Currently, if used with a map, the map view is used to influence the results to be relevant to users in that area, but does not limit the results to that area.

    [Blog] [twitter] [LinkedIn]

    Saturday, May 6, 2017 2:32 PM
  • I think now we can limit the auto suggest options to a country using following code. 

     Microsoft.Maps.loadModule('Microsoft.Maps.AutoSuggest', function () {
                    var manager = new Microsoft.Maps.AutosuggestManager({
                        map: map,
                        countryCode: 'US'
                    });
                });

    Monday, February 12, 2018 2:55 PM
  • @Umesh correct. Support for limiting autosuggest suggestions to a single country was added this past fall. 

    [Blog] [twitter] [LinkedIn]

    Monday, February 12, 2018 5:16 PM