none
Autocomple place search around a country only javascript bing map RRS feed

  • Question

  • hi i ma using bing maps auto complete feature for hybrid apps . can you please tell me how can i limit the autocomplete result near to one country only.

    i am writing this code for the Phonegap application

    Saturday, March 22, 2014 9:39 AM

Answers

  • Bing Maps doesn't have an auto complete feature. I hope you are not hammering the Location service as that will drastically us up your transactions and cause your application to be rate limited which will mean your app won't work. What you should do instead is create a customer ranked auto complete functionality. I've just wrote a blog post on it but it isn't online just yet. It will be online in a couple weeks (planned for release during the Build conference). The idea is to do normal geocoding initially but as users choose the results they want you create a database out of that information. This will result in you having a database of just locations your users search for. You can then use this database to power your auto complete functionality. Over time you will end up making close to no geocoding requests against Bing Maps as your auto complete database will have all the locations your users search for already in it. This will allow you to have a lot more users on your app and stay within the free terms of use.

    I have the client app code sample online here: http://code.msdn.microsoft.com/Customer-Ranked-Auto-dbb21ab6 the backend web service will be documented in the blog post.


    http://rbrundritt.wordpress.com


    Monday, March 24, 2014 10:17 AM
  • You can find a blog post on how to do Customer Ranked auto suggest with Bing Maps here : http://blogs.msdn.com/b/rbrundritt/archive/2014/03/31/how-to-create-a-customer-ranked-auto-suggest-with-bing-maps-and-azure-mobile-services.aspx

    http://rbrundritt.wordpress.com

    Monday, March 31, 2014 4:28 PM

All replies

  • Bing Maps doesn't have an auto complete feature. I hope you are not hammering the Location service as that will drastically us up your transactions and cause your application to be rate limited which will mean your app won't work. What you should do instead is create a customer ranked auto complete functionality. I've just wrote a blog post on it but it isn't online just yet. It will be online in a couple weeks (planned for release during the Build conference). The idea is to do normal geocoding initially but as users choose the results they want you create a database out of that information. This will result in you having a database of just locations your users search for. You can then use this database to power your auto complete functionality. Over time you will end up making close to no geocoding requests against Bing Maps as your auto complete database will have all the locations your users search for already in it. This will allow you to have a lot more users on your app and stay within the free terms of use.

    I have the client app code sample online here: http://code.msdn.microsoft.com/Customer-Ranked-Auto-dbb21ab6 the backend web service will be documented in the blog post.


    http://rbrundritt.wordpress.com


    Monday, March 24, 2014 10:17 AM
  • You can find a blog post on how to do Customer Ranked auto suggest with Bing Maps here : http://blogs.msdn.com/b/rbrundritt/archive/2014/03/31/how-to-create-a-customer-ranked-auto-suggest-with-bing-maps-and-azure-mobile-services.aspx

    http://rbrundritt.wordpress.com

    Monday, March 31, 2014 4:28 PM