Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Help please within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I put this message in other discussion, but i need your help. Hi, i'm a spanish student, so sorry for ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Help please Hi, i'm a spanish student, so sorry for my bad english!! I'm doing a web application for my final project, and i'm using asp.net and c#. The operation of my aplication is: I show a map with my position, in the middle of the map (using geographic coordenates). Around me, i show some establishments (with pushpins). Ok, I use the web service trial, because i haven't any money (i'm a student Do you understand me?? And other question, please. Other funcionality of my program is to show my position (coordenates) and the position of my friend (coordenates too). I like to calculate a route beetween both. Now, i'm using this code: ... Route ruta = new Route(); ruta = CreateRuta(centerPoint, movilAmigo); mapSpec.Route = ruta; ... private Route CreateRuta(LatLong I, LatLong Friend) { //instantiate the Route service RouteServiceSoap routeService = new RouteServiceSoap(); LatLong [] positions= new LatLong[2]; positions[0] = new LatLong(); positions[1] = new LatLong(); positions[0] = Yo; positions[1] = Amigo; Route ruta = new Route(); try { ruta = routeService.CalculateSimpleRoute(posiciones, "MapPoint.EU", SegmentPreference.Quickest); } catch(Exception ex) { //System.Windows.Forms.MessageBox.Show(ex.Message, "Error", System.Windows.Forms.MessageBoxButtons.OK); ruta = null; } return ruta; } But in the method "routeService.CalculateSimpleRoute, is produced an exception HTTP 401: Unauthorized. But i have a valid credentials (trial version). What's the problem? Please, somebody helps me.
__________________ Ivan |
| |||
|
Hi, Please repost in the forum for Mappoint web service. You will get more and better answer than here.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.