Cykelfærgen Sejlplan API & Konfigurator
FE Development
Tech: JS
Project Overview
I have developed an API for Cykelfærgen Flensborg Fjord that allows retrieving the schedule from their website. The API is coded in PHP and uses MySQL as a database. It is designed to fetch schedules for specific routes.
Schedule Configurator
A configurator has been developed to assist Cykelfærgen's partners and other website owners in integrating their schedule into their own websites.
Platform Features
The platform is developed in PHP and MySQL, providing users with the option to choose between different schedules. Users can choose to display all schedules or only a single schedule.
Users have the option to customize schedules by selecting their brand colors, and they can associate different domain names with schedules. There is also support for three languages: Danish, German, and English.
Implementation of Schedules
To display the schedule on a website, I use XMLHttpRequest() to fetch data. In this HTTP request, I send an API key that retrieves the necessary information from the database. Simultaneously, it checks if the website's domain name is approved, and if so, it also checks if it is associated with a specific language.
After all these checks are completed, the schedule is generated and sent back to the client, where it is added to the HTML container as specified.