duckduckgo / zeroclickinfo-spice

DuckDuckGo Instant Answers based on JavaScript (JSON) APIs
https://duckduckhack.com/
Other
548 stars 942 forks source link

Transit Switzerland: API not always providing platform, leads to bad result #1835

Closed moollaza closed 9 years ago

moollaza commented 9 years ago

https://duckduckgo.com/?q=next+train+to+geneva+from+paris&ia=swisstrains

The footer in the IA shows "Platform " with no number because the API response doesn't contain one. We should check to make sure we have a platform, or show that one has not been assigned yet (I'm assuming that's the case?)

https://duckduckgo.com/js/spice/transit/switzerland/paris/geneva

/cc @tagawa @mattr555

tagawa commented 9 years ago

Thanks for spotting @moollaza. https://github.com/duckduckgo/zeroclickinfo-spice/pull/1842 is a simple fix.