Skip to content

Commit

Permalink
add readme for one_to_many
Browse files Browse the repository at this point in the history
  • Loading branch information
daniilnaumov committed Sep 8, 2023
1 parent 8728b27 commit 85da62e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ A very fast version of ```time_filter()```. However, the request parameters are
* travel_time: int - Maximum journey time (in seconds). Maximum value is 10800. Default value is 3600.
* properties: List[Property] - Properties to be returned about the points. Default value is travel_time.
* one_to_many: boolean - if one_to_many is equal to true, then it'll be a forward search (one to many matrix), false -
backward search (many to one matrix). Default value is False.
backward search (many to one matrix). Default value is True.

#### Returns:

Expand Down Expand Up @@ -308,6 +308,8 @@ larger limits on the amount of destination points.
* transportation: ProtoTransportation - Transportation type.
* travel_time: int - Time limit. Maximum value is 7200.
* country: ProtoCountry - Return the results that are within the specified country.
* one_to_many: boolean - if one_to_many is equal to true, then it'll be a forward search (one to many matrix), false -
backward search (many to one matrix). Default value is True.

#### Returns:

Expand Down
8 changes: 4 additions & 4 deletions proto/TimeFilterFastResponse.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ message TimeFilterFastResponse {
DISTANCE_PROPERTY_NOT_SUPPORTED = 12;

/*
* ManyToOne And OneToMany cannot be sent at the same time
* ManyToOne and OneToMany cannot be sent at the same time
*/
BOTH_MANY_TO_ONE_AND_ONE_TO_MANY_CANNOT_BE_SENT = 13;
BOTH_MANY_TO_ONE_AND_ONE_TO_MANY_CANNOT_BE_SENT = 13;

/*
* ManyToOne And OneToMany cannot be sent at the same time
* ManyToOne or OneToMany cannot be null
*/
ONE_TO_MANY_OR_MANY_TO_ONE_MUST_NOT_BE_NULL = 14;
ONE_TO_MANY_OR_MANY_TO_ONE_MUST_NOT_BE_NULL = 14;
}

Error error = 1;
Expand Down

0 comments on commit 85da62e

Please sign in to comment.