Maybe a bug in SL Reseplanerare 2
Hi!
Not sure if it's a bug or me using it incorrectly. But I thought I'll inform you anyway.
It complained couldn't map "AB" to ZoneEnum or something like that. If I included AB in that Enum it worked fine.
My code:
var client = new SlApi.TravelPlannerClient(AppKeySLReseplanerare2);
var req = new SlApi.Models.TravelPlanner.Request.TripRequest
{
DateTime = new DateTime(2016, 3, 14, 8, 0, 0, DateTimeKind.Local),
OriginId = "Midsommargränd 4",
DestId = "Svetsarvägen 16"
};
var tripResponse = client.Trip(req);
if (tripResponse.StatusCode == SlApi.Models.StatusCode.Ok)
{
var items = tripResponse.TripList;
}
Följ inlägget
0
följare
Borttagen kommentar