none
[SearchService] Local search in France RRS feed

  • Question

  • Hi,

     

    I'm doing a new WP7 application where I need to locate pizza in Paris for example.

    With the SearchService, I'm able to retrieve some pizza in New York but not in Paris. I read that Bing is only available in US for this type of search. But Why it works there : http://tinyurl.com/66ret4m and there http://tinyurl.com/6j9787k ?

    It depends of my physical location ? 

    Thank you for your lights :)

    Here's my code :

    SearchServiceClient searchClient = new SearchServiceClient("BasicHttpBinding_ISearchService");
                
                SearchRequest sq = new SearchRequest();
                sq.Culture = culture;
     
                sq.SearchOptions = new SearchOptions();
                sq.SearchOptions.Radius = 20; // 20km
     
                sq.ExecutionOptions = new ExecutionOptions(); 
                sq.ExecutionOptions.SuppressFaults = true;
     
                sq.UserProfile = new UserProfile();
                sq.UserProfile.CurrentLocation = new UserLocation() { Latitude = latitude, Longitude = longitude };
                sq.UserProfile.DistanceUnit = DistanceUnit.Kilometer;
     
                sq.Credentials = new Credentials();
                sq.Credentials.ApplicationId = "******";
     
                sq.Query = request;
     
                return searchClient.Search(sq);
    Regards, 

    Aymeric Lagier

    • Moved by Ricky_Brundritt Friday, March 9, 2012 4:32 PM (From:Bing Maps: Map Control and Web services Development)
    Friday, March 18, 2011 10:34 AM

Answers

  • After testing a while with various combination, it seems that the Search Service would not work in France (neither in Italy, Germany...).

    Before making conclusions too early, I will ask Microsoft about this specific point and see if it is not linked to the type of key (assuming that you are using Developper or Mobile key).

    I'll let you know as soon as I get the information.


    MVP - Bing Maps - My blog (FR): http://blogs.developpeur.org/nicoboo/ Twitter: http://twitter.com/nicolasboonaert/
    Friday, March 18, 2011 3:55 PM
    Moderator

All replies

  • Hi Aymeric,

    The result will depend on the UserLocation and the current Culture that you need to set as 'fr-FR'.

    I've tested my code that you linked on my blog, it does not work anymore without changing the code of the sample. I will take a look as it is really weird!

    See details here: http://msdn.microsoft.com/en-us/library/cc981030.aspx
    And a "** Support for this culture is limited to Europe. "

    And maybe using: http://msdn.microsoft.com/en-us/library/cc981048.aspx


    MVP - Bing Maps - My blog (FR): http://blogs.developpeur.org/nicoboo/ Twitter: http://twitter.com/nicolasboonaert/
    Friday, March 18, 2011 11:05 AM
    Moderator
  • After testing a while with various combination, it seems that the Search Service would not work in France (neither in Italy, Germany...).

    Before making conclusions too early, I will ask Microsoft about this specific point and see if it is not linked to the type of key (assuming that you are using Developper or Mobile key).

    I'll let you know as soon as I get the information.


    MVP - Bing Maps - My blog (FR): http://blogs.developpeur.org/nicoboo/ Twitter: http://twitter.com/nicolasboonaert/
    Friday, March 18, 2011 3:55 PM
    Moderator