Ask a questionAsk a question
 

Answerhow to use Bing Map Web service Map point?

  • Thursday, November 05, 2009 7:08 AMSVG83 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Can anybody tell me the detail steps for how to use Bing Map Web service Map point?

    Whatever i know is like this

    1. Create developer account and password.(Created)
    2. Add web reference for staging environment.

    but facing problem when adding web reference.

    Plz guide me by telling all the required steps with detail information from start to end.

Answers

  • Thursday, November 05, 2009 10:38 PMRichard_BrundrittMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    In the MWSFindGenerator method the following code needs to be updated:

    //TODO:  Change the following values to your username and password
    private String MPUser = ConfigurationManager.AppSettings["username"];
    private String MPPass = ConfigurationManager.AppSettings["password"];
    These lines retrieve the user name and password from a web.config file. If you do not store your credentials in the web.config you will want to make MPUser and MPPAss equal to your Bing Maps username and password.

    As for querying, MapPoint's POI data is a bit easier to filter but Bing Maps data is more up to date and the API is still being improved.
    Windows Live Developer MVP - http://rbrundritt.spaces.live.com

All Replies

  • Thursday, November 05, 2009 9:59 AMRichard_BrundrittMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Bing Maps Web Services and MapPoint are two separate services. For information on how to create an application using the Bing Maps Web services, see this article:
    http://msdn.microsoft.com/en-us/library/dd221354.aspx

    For information on how to integrate Bing Maps with MapPoint and how to access MapPoint, see this article:
    http://msdn2.microsoft.com/en-us/library/cc316940.aspx


    Windows Live Developer MVP - http://rbrundritt.spaces.live.com
  • Thursday, November 05, 2009 10:47 AMSVG83 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    what is the main difference in both and which is best for categorywise search Map Point or bing map web services?

    I want to do category wise search in my application.
  • Thursday, November 05, 2009 11:32 AMSVG83 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    i tried the example for map point in the url given by you but i got the error as :

    "Alert('Error: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at MWSFind.net.mappoint.staging.FindServiceSoap.FindNearby(FindNearbySpecification specification) in C:\Documents and Settings\suman.gharge\My Documents\Visual Studio 2008\Projects\MWSFind\MWSFind\Web References\net.mappoint.staging\Reference.cs:line 576
       at MWSFind.MWSFindGenerator.FindNearBy(Double latitude, Double longitude, String datasource, String entityName, Double distance) in C:\Documents and Settings\suman.gharge\My Documents\Visual Studio 2008\Projects\MWSFind\MWSFind\MWSFindGenerator.aspx.cs:line 56');"

    Is there any setting required for running this application?

  • Thursday, November 05, 2009 10:38 PMRichard_BrundrittMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    In the MWSFindGenerator method the following code needs to be updated:

    //TODO:  Change the following values to your username and password
    private String MPUser = ConfigurationManager.AppSettings["username"];
    private String MPPass = ConfigurationManager.AppSettings["password"];
    These lines retrieve the user name and password from a web.config file. If you do not store your credentials in the web.config you will want to make MPUser and MPPAss equal to your Bing Maps username and password.

    As for querying, MapPoint's POI data is a bit easier to filter but Bing Maps data is more up to date and the API is still being improved.
    Windows Live Developer MVP - http://rbrundritt.spaces.live.com
  • Tuesday, November 10, 2009 6:39 PMSchwarttzy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    In the MWSFindGenerator method the following code needs to be updated:

    //TODO:  Change the following values to your username and password

    private String MPUser = ConfigurationManager.AppSettings["username"];

    private String MPPass = ConfigurationManager.AppSettings["password"];


    Sorry but would you elaborate on how to do that?
  • Tuesday, November 10, 2009 6:45 PMRichard_BrundrittMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Easiest way:

    private string MPUser = "Your_user_Id";
    private string MPPass = "Your_Account_Password";
    Windows Live Developer MVP - http://rbrundritt.spaces.live.com