Support for the waiting times and route calculation for Scandinavia from Trafiklab
- or -
Post a project like this€100(approx. $107)
- Posted:
- Proposals: 0
- Remote
- #885178
- Expired
Description
Experience Level: Intermediate
I need support from someone from Sweden to get the waiting times and directions from Trafiklab. I already set up the system to download the buses, lines and stops - you may of course check the format of the tables - and I need to get the waiting times and directions with all the values I need and with all the used values keys for the corresponding entries in the other tables (eg. the line in the route should be corresponding to the value in the routes table in the DB and in the waiting call)
Of course I have the Api keys for all services; in particular I need the implementation of:
function poll($palina); //it receives a bus or metro stop and returns:
'busNumber'
'line'
'time'
'busDestination'
'busCode'
'busStation' //the stop where the bus is or
'stops' //how many stops the bus is away
and
function route($departure, $arrival, $userLatitude, $userLongitude, $destLatitude, $destLongitude);
that should calculate a route from departure (either from the strings or the coordinates or both) and return a dictionary with the following keys:
'steps': an array of dictionaries each one of them with the following structure:
*****
-- alway
'latitude'
'longitude'
'time' //time for the step
'location' //address for the step
-- for buses and metros
'line'
'paline' //the code for the stop linking to the one in the table and the one to poll the waiting times
'metro' //metro name if the path is to be done by metro, train, boat.
-- for parts to be done walking
'stepDistance'
****
-- in the case of errors
'error' with a specific structure according to the type of error
****
path: an array of dictionaries of coordinates each on of them with the form:
'latitude'
'longitude'
****
'totalTime' the total time to get from the start to the destination
****
'distance' the total distance to get from the start to the destination
The most critical part is that all the data are linked.
The classes implementation must of course be done in php, but the support may be done in whatever language of your choice.
Of course I have the Api keys for all services; in particular I need the implementation of:
function poll($palina); //it receives a bus or metro stop and returns:
'busNumber'
'line'
'time'
'busDestination'
'busCode'
'busStation' //the stop where the bus is or
'stops' //how many stops the bus is away
and
function route($departure, $arrival, $userLatitude, $userLongitude, $destLatitude, $destLongitude);
that should calculate a route from departure (either from the strings or the coordinates or both) and return a dictionary with the following keys:
'steps': an array of dictionaries each one of them with the following structure:
*****
-- alway
'latitude'
'longitude'
'time' //time for the step
'location' //address for the step
-- for buses and metros
'line'
'paline' //the code for the stop linking to the one in the table and the one to poll the waiting times
'metro' //metro name if the path is to be done by metro, train, boat.
-- for parts to be done walking
'stepDistance'
****
-- in the case of errors
'error' with a specific structure according to the type of error
****
path: an array of dictionaries of coordinates each on of them with the form:
'latitude'
'longitude'
****
'totalTime' the total time to get from the start to the destination
****
'distance' the total distance to get from the start to the destination
The most critical part is that all the data are linked.
The classes implementation must of course be done in php, but the support may be done in whatever language of your choice.
Fabrizio B.
100% (1)Projects Completed
2
Freelancers worked with
2
Projects awarded
14%
Last project
10 Dec 2015
Italy
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies