From 85da62efe11c58fff3ddfca06446b31ffbc629e6 Mon Sep 17 00:00:00 2001 From: daniilnaumov Date: Fri, 8 Sep 2023 09:27:34 +0200 Subject: [PATCH] add readme for one_to_many --- README.md | 4 +++- proto/TimeFilterFastResponse.proto | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d4ab95a..c0b428c 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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: diff --git a/proto/TimeFilterFastResponse.proto b/proto/TimeFilterFastResponse.proto index 34ac62d..ea93e78 100644 --- a/proto/TimeFilterFastResponse.proto +++ b/proto/TimeFilterFastResponse.proto @@ -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;