CarpoolWorld REST API - Trip match

Version:

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
Request/Response Formats (IOFormat)
XML or JSON
HTTP Methods
POST or GET

Resource description

Use GET https://www.carpoolworld.com/rest_match.html/trip_id#/IOFormat

Resource URL

https://www.carpoolworld.com/rest_match.html/trip_id#/IOFormat

* 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

Parameters

partner_namerequiredYour developer partner name
partner_keyrequiredYour developer partner key
traveler_namerequiredA traveler name of your choice.
Up to 20 characters. Letters (a-z), numbers (0-9) and underscores (_) are allowed
traveler_passwordrequiredA 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_homeoptionalRadius 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_workoptionalRadius to include matches that are in a radius distance from work. Decimal ex: 0.300 is 30km from work see example radius
selected_radiusoptionalRadius 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_detouroptionalRadius 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_detouroptionalRadius 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_constraintoptionalTime 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_constraintoptionalTime 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_constraintoptionalInclude other travelers that are
D=Driver only
P=Passenger only
B=Either
selected_match_schedule_constraintoptionalInclude other travelers that are traveling
Y=Regular schedule only
N=One time trip only
selected_match_smokeoptionalInclude other travelers that specified on their profile their smoking habits
1=Smoker
2=Non-Smoker
selected_match_genderoptionalInclude other travelers that specified their gender
F=Female
M=Male
N=Nonbinary
selected_sorting_optionoptionalSort 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_constraintoptionalInclude 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_day1optionalInclude Monday trips
1=Include Monday trips
user_match_day2optionalInclude Tuesday trips
2=Include Tuesday trips
user_match_day3optionalInclude Wednesday trips
3=Include Wednesday trips
user_match_day4optionalInclude Thursday trips
4=Include Thursday trips
user_match_day5optionalInclude Friday trips
5=Include Friday trips
user_match_day6optionalInclude Saturday trips
6=Include Saturday trips
user_match_day7optionalInclude Sunday trips
7=Include Sunday trips

Example request

JSON

XML

Responses

The response is formatted as follows

JSON

XML

Success or errorStatusDescription
9000Invalid partner or partner key
9001Invalid traveler login
9002ERRORlistsallerrors
0000Initialize
2000Lists the trips that match a stored trip.
9999Finalize

List of example radius

Radius valueRadius value in KMRadius value in Miles
0.0030.30.2
0.0050.50.3
0.0111
0.0332
0.0553
0.0774
0.1106
0.22012
0.33019
0.44025
0.55031
0.66037
0.77043
0.88050
0.99056
110062
2200124
3300186
4400249
5500311
6600373
7700435
8800497
9900559

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