CarpoolWorld REST API - Trip match
→ Developers
→ REST Api
REST API: Trip match
Retrieve a list of trips that match a stored trip
Resource information
https://www.carpoolworld.com/rest_match.html/trip_id#/IOFormat/Version
Request/Response Formats (IOFormat)
XML or JSON
Version
2
HTTP Methods
POST or GET
Resource description
Use GET https://www.carpoolworld.com/rest_match.html/trip_id#/IOFormat/VersionResource URL
https://www.carpoolworld.com/rest_match.html/trip_id#/IOFormat/Version* To get the trip id, use trip_list or specify the trip_id# as 0 to retrieve the latest confirmed trip for that traveler
ex: https://www.carpoolworld.com/rest_match.html/0/JSON/2
Parameters
partner_name | required | Your developer partner name |
partner_key | required | Your developer partner key |
traveler_name | required | A traveler name of your choice. Up to 20 characters. Letters (a-z), numbers (0-9) and underscores (_) are allowed |
traveler_password | required | A traveler password of your choice, if this is an existing traveler, the passwords must match. The password are stored encrypted in the carpoolworld database Up to 20 characters. |
selected_radius_distance_home | optional | Radius to include matches that are in a radius distance from home. Decimal ex: 0.300 is 30km from home see example radius |
selected_radius_distance_work | optional | Radius to include matches that are in a radius distance from work. Decimal ex: 0.300 is 30km from work see example radius |
selected_radius | optional | Radius to include matches that are in a total radius distance from home + radius distance from work. Decimal ex: 0.600 is 60km from home and work see example radius |
selected_radius_your_detour | optional | Radius to include matches that are in a maximum distance for the traveler to pick up other travelers. Decimal ex: 0.100 is 10km maximum detour example radius |
selected_radius_his_detour | optional | Radius to include matches that are in a maximum distance for other travelers to pick you up. Decimal ex: 0.100 is 10km maximum detour example radius |
selected_origin_time_constraint | optional | Time constraint to include other travelers that start work (or want to be at the destination) within +/- time from your start time. ex: 00:45:00 is a start time 45 minutes from your start time example time constraints |
selected_destination_time_constraint | optional | Time constraint to include other travelers that end work (or want to leave the destination) within +/- time from your end time. ex: 01:00:00 is a end time 1 hour from your end time example time constraints |
selected_match_car_constraint | optional | Include other travelers that are D=Driver only P=Passenger only B=Either |
selected_match_schedule_constraint | optional | Include other travelers that are traveling Y=Regular schedule only N=One time trip only |
selected_match_smoke | optional | Include other travelers that specified on their profile their smoking habits 1=Smoker 2=Non-Smoker |
selected_match_gender | optional | Include other travelers that specified their gender F=Female M=Male N=Nonbinary |
selected_sorting_option | optional | Sort matches first by: distance_between_commutes=total distance between commutes modiff=distance between origin mddiff=distance between destinations searcher_detour=Searcher's detour matchs_detour=Match's detour |
selected_match_schedule_date_constraint | optional | Include trips that are +- days from departure date ex: 1 would include trips that depart +/- 1 day from the trip departure date. 0 is for the same departure date |
user_match_day1 | optional | Include Monday trips 1=Include Monday trips |
user_match_day2 | optional | Include Tuesday trips 2=Include Tuesday trips |
user_match_day3 | optional | Include Wednesday trips 3=Include Wednesday trips |
user_match_day4 | optional | Include Thursday trips 4=Include Thursday trips |
user_match_day5 | optional | Include Friday trips 5=Include Friday trips |
user_match_day6 | optional | Include Saturday trips 6=Include Saturday trips |
user_match_day7 | optional | Include Sunday trips 7=Include Sunday trips |
Example request
JSON
XML
Responses
The response is formatted as followsJSON
XML
Success or error | Status | Description |
---|---|---|
9000 | Invalid partner or partner key | |
9001 | Invalid traveler login | |
9002 | ERRORlistsallerrors | |
2000 | Lists the trips that match a stored trip. |
List of example radius
Radius value | Radius value in KM | Radius value in Miles |
---|---|---|
0.003 | 0.3 | 0.2 |
0.005 | 0.5 | 0.3 |
0.01 | 1 | 1 |
0.03 | 3 | 2 |
0.05 | 5 | 3 |
0.07 | 7 | 4 |
0.1 | 10 | 6 |
0.2 | 20 | 12 |
0.3 | 30 | 19 |
0.4 | 40 | 25 |
0.5 | 50 | 31 |
0.6 | 60 | 37 |
0.7 | 70 | 43 |
0.8 | 80 | 50 |
0.9 | 90 | 56 |
1 | 100 | 62 |
2 | 200 | 124 |
3 | 300 | 186 |
4 | 400 | 249 |
5 | 500 | 311 |
6 | 600 | 373 |
7 | 700 | 435 |
8 | 800 | 497 |
9 | 900 | 559 |
Example time constraints
Time value | Time description |
---|---|
24:00:00 | Any time |
00:00:00 | +/- 00:00:00 from match's time |
00:15:00 | +/- 00:15:00 from match's time |
00:30:00 | +/- 00:30:00 from match's time |
00:45:00 | +/- 00:45:00 from match's time |
01:00:00 | +/- 01:00:00 from match's time |
01:15:00 | +/- 01:15:00 from match's time |
01:30:00 | +/- 01:30:00 from match's time |
01:45:00 | +/- 01:45:00 from match's time |
02:00:00 | +/- 02:00:00 from match's time |
02:15:00 | +/- 02:15:00 from match's time |
02:30:00 | +/- 02:30:00 from match's time |
02:45:00 | +/- 02:45:00 from match's time |
03:00:00 | +/- 03:00:00 from match's time |
03:15:00 | +/- 03:15:00 from match's time |
03:30:00 | +/- 03:30:00 from match's time |
03:45:00 | +/- 03:45:00 from match's time |
04:00:00 | +/- 04:00:00 from match's time |
04:15:00 | +/- 04:15:00 from match's time |
04:30:00 | +/- 04:30:00 from match's time |
04:45:00 | +/- 04:45:00 from match's time |
05:00:00 | +/- 05:00:00 from match's time |
05:15:00 | +/- 05:15:00 from match's time |
05:30:00 | +/- 05:30:00 from match's time |
05:45:00 | +/- 05:45:00 from match's time |
06:00:00 | +/- 06:00:00 from match's time |
06:15:00 | +/- 06:15:00 from match's time |
06:30:00 | +/- 06:30:00 from match's time |
06:45:00 | +/- 06:45:00 from match's time |
07:00:00 | +/- 07:00:00 from match's time |
07:15:00 | +/- 07:15:00 from match's time |
07:30:00 | +/- 07:30:00 from match's time |
07:45:00 | +/- 07:45:00 from match's time |
08:00:00 | +/- 08:00:00 from match's time |
08:15:00 | +/- 08:15:00 from match's time |
08:30:00 | +/- 08:30:00 from match's time |
08:45:00 | +/- 08:45:00 from match's time |
09:00:00 | +/- 09:00:00 from match's time |
09:15:00 | +/- 09:15:00 from match's time |
09:30:00 | +/- 09:30:00 from match's time |
09:45:00 | +/- 09:45:00 from match's time |
10:00:00 | +/- 10:00:00 from match's time |
10:15:00 | +/- 10:15:00 from match's time |
10:30:00 | +/- 10:30:00 from match's time |
10:45:00 | +/- 10:45:00 from match's time |
11:00:00 | +/- 11:00:00 from match's time |
11:15:00 | +/- 11:15:00 from match's time |
11:30:00 | +/- 11:30:00 from match's time |
11:45:00 | +/- 11:45:00 from match's time |
12:00:00 | +/- 12:00:00 from match's time |
12:15:00 | +/- 12:15:00 from match's time |
12:30:00 | +/- 12:30:00 from match's time |
12:45:00 | +/- 12:45:00 from match's time |
13:00:00 | +/- 13:00:00 from match's time |
13:15:00 | +/- 13:15:00 from match's time |
13:30:00 | +/- 13:30:00 from match's time |
13:45:00 | +/- 13:45:00 from match's time |
14:00:00 | +/- 14:00:00 from match's time |
14:15:00 | +/- 14:15:00 from match's time |
14:30:00 | +/- 14:30:00 from match's time |
14:45:00 | +/- 14:45:00 from match's time |
15:00:00 | +/- 15:00:00 from match's time |
15:15:00 | +/- 15:15:00 from match's time |
15:30:00 | +/- 15:30:00 from match's time |
15:45:00 | +/- 15:45:00 from match's time |
16:00:00 | +/- 16:00:00 from match's time |
16:15:00 | +/- 16:15:00 from match's time |
16:30:00 | +/- 16:30:00 from match's time |
16:45:00 | +/- 16:45:00 from match's time |
17:00:00 | +/- 17:00:00 from match's time |
17:15:00 | +/- 17:15:00 from match's time |
17:30:00 | +/- 17:30:00 from match's time |
17:45:00 | +/- 17:45:00 from match's time |
18:00:00 | +/- 18:00:00 from match's time |
18:15:00 | +/- 18:15:00 from match's time |
18:30:00 | +/- 18:30:00 from match's time |
18:45:00 | +/- 18:45:00 from match's time |
19:00:00 | +/- 19:00:00 from match's time |
19:15:00 | +/- 19:15:00 from match's time |
19:30:00 | +/- 19:30:00 from match's time |
19:45:00 | +/- 19:45:00 from match's time |
20:00:00 | +/- 20:00:00 from match's time |
20:15:00 | +/- 20:15:00 from match's time |
20:30:00 | +/- 20:30:00 from match's time |
20:45:00 | +/- 20:45:00 from match's time |
21:00:00 | +/- 21:00:00 from match's time |
21:15:00 | +/- 21:15:00 from match's time |
21:30:00 | +/- 21:30:00 from match's time |
21:45:00 | +/- 21:45:00 from match's time |
22:00:00 | +/- 22:00:00 from match's time |
22:15:00 | +/- 22:15:00 from match's time |
22:30:00 | +/- 22:30:00 from match's time |
22:45:00 | +/- 22:45:00 from match's time |
23:00:00 | +/- 23:00:00 from match's time |
23:15:00 | +/- 23:15:00 from match's time |
23:30:00 | +/- 23:30:00 from match's time |
23:45:00 | +/- 23:45:00 from match's time |