I'm failing to get the Bing Maps API working. I'm inputting a query "How do I get from Annandale to Eastwood (Sydney) using public transport?" and getting results that have completely different times to what I queried.
The API is documented here:
https://msdn.microsoft.com/en-us/library/ff701717.aspx
and here:
https://msdn.microsoft.com/en-us/library/ff701718.aspx
The documentation fails to specify what date format the responses are in, but I presume this is correct:
http://weblogs.asp.net/bleroy/dates-and-json
So here's my query: http://dev.virtualearth.net/REST/V1/Routes/Transit?wp.0=-33.886620,151.171720&wp.1=-33.785780,151.075740&timeType=Departure&dateTime=11:43:00&maxSolns=3&output=json&key=(redacted)
Note that I redacted our API key, for obvious reasons.
Note that I'm requesting a bus at 11:43am. I've tried this in conjunction with a date and without a date, it makes no difference.
I get a response which looks quite valid at first glance, but it's giving me times like this: "time":"/Date(1427222880000-0700)/"
...which would be reasonable if my query time was 5:43, but it's not. That date format clearly indicates "milliseconds since 1970, UTC" (in desperation I tried adding & subtracting 7 hrs, but got nothing meaningful). The documentation clearly says my time of 11:43 should be specified in the local timezone, i.e. just as "11:43".
Proceeding on the assumption that the Bing documentation is wrong or that the implementation is wrong, I tried arbitrarily adding 6 hrs or subtracting 18 hrs from my query time (that necessitated adding the date into the URL), but I got nothing that made sense. I can't get any correspondence between my API results and the public Bing browser app.
I couldn't find out who to ask from Microsoft either.
Any ideas?