Search

TfL provide their data in a format that's like JSON but not: http://countdown.api.tfl.gov.uk/interfaces/ura/instant_V1

What would be the best way of getting this into a datasource (or event?)? Does anyone have a (very) basic example of how to create XML elements from external data?

Thanks

Remove the square brackets and you have a CSV file. I'd use a basic PHP script to remove these characters, load into fgetcsv, iterate over each row and create XML elements.

Thanks, Nick – I'll give that a bash.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details