Groups > Microsoft > MapPoint > Re: Error with CalculateSimpleRoute()




Error with CalculateSimpleRoute()

Error with CalculateSimpleRoute()
Mon, 7 Apr 2008 15:29:33 +0100
Hi group,
    I'm using the CalulateSimpleRoute(RouteServiceSoap), and the result for 
the field "TripTime" is not corret, if I use the CalculateRoue(), I
get the 
correct result... this are the values I'm using:

LatLong[] latLongs = new LatLong[2];

latLongs[0] = new LatLong();

latLongs[0].Latitude = 41.196593337444561;

latLongs[0].Longitude = -8.433031370086935;

latLongs[1] = new LatLong();

latLongs[1].Latitude = 39.4689072321736;

latLongs[1].Longitude = -0.376821349746618;


Thank's,
NS

Post Reply
Re: Error with CalculateSimpleRoute()
Mon, 07 Apr 2008 19:38:51 +020
On Mon, 7 Apr 2008 15:29:33 +0100, "Nuno Santos"
<nunos7@[REMOVER]hotmail.com>
wrote:

>Hi group,
>    I'm using the CalulateSimpleRoute(RouteServiceSoap), and the result for

>the field "TripTime" is not corret, if I use the CalculateRoue(),
I get the 
>correct result... this are the values I'm using:
>
>LatLong[] latLongs = new LatLong[2];
>
>latLongs[0] = new LatLong();
>
>latLongs[0].Latitude = 41.196593337444561;
>
>latLongs[0].Longitude = -8.433031370086935;
>
>latLongs[1] = new LatLong();
>
>latLongs[1].Latitude = 39.4689072321736;
>
>latLongs[1].Longitude = -0.376821349746618;
>
>
>Thank's,
>NS


According to MSDN, CalculateSimpleRoute uses the default DriverProfile - maybe
this is the reason for the divergence?

("When a RouteSpecification object is returned from the
RouteServiceSoap.CalculateSimpleRoute method, the DriverProfile property
contains the default values of 9:00 A.M. to 5:00 P.M.")

Anyway, you may want to repost in news:microsoft.public.mappoint.webservice -
this newsgroup is about MapPoint the desktop application.

   Regards,
   Gilles [MVP].

   (Please reply to the group, not via email.
   Find my MVP profile with past articles / downloads here: 
   http://www.gilleskohl.de/mvpprofile.htm)

Post Reply
Re: Error with CalculateSimpleRoute()
Tue, 8 Apr 2008 09:03:34 +0100
Ok thanks Gilles,

NS

"Gilles Kohl [MVP]" <no_email_available@> wrote in message 
news:jmmkv3hll414k8lst38cuur0u3k1h46r8j@4ax.com...
> On Mon, 7 Apr 2008 15:29:33 +0100, "Nuno Santos" 
> <nunos7@[REMOVER]hotmail.com>
> wrote:
>
>>Hi group,
>>    I'm using the CalulateSimpleRoute(RouteServiceSoap), and the result

>> for
>>the field "TripTime" is not corret, if I use the
CalculateRoue(), I get 
>>the
>>correct result... this are the values I'm using:
>>
>>LatLong[] latLongs = new LatLong[2];
>>
>>latLongs[0] = new LatLong();
>>
>>latLongs[0].Latitude = 41.196593337444561;
>>
>>latLongs[0].Longitude = -8.433031370086935;
>>
>>latLongs[1] = new LatLong();
>>
>>latLongs[1].Latitude = 39.4689072321736;
>>
>>latLongs[1].Longitude = -0.376821349746618;
>>
>>
>>Thank's,
>>NS
>
>
> According to MSDN, CalculateSimpleRoute uses the default DriverProfile - 
> maybe
> this is the reason for the divergence?
>
> ("When a RouteSpecification object is returned from the
> RouteServiceSoap.CalculateSimpleRoute method, the DriverProfile property
> contains the default values of 9:00 A.M. to 5:00 P.M.")
>
> Anyway, you may want to repost in 
> news:microsoft.public.mappoint.webservice -
> this newsgroup is about MapPoint the desktop application.
>
>   Regards,
>   Gilles [MVP].
>
>   (Please reply to the group, not via email.
>   Find my MVP profile with past articles / downloads here:
>   http://www.gilleskohl.de/mvpprofile.htm)
>
> 

Post Reply
about | contact