@azaryanlena

В каком формате указывать параметр дата и время (departure_time/arrival_time) в API Google Get directions?

Здравствуйте.
Kaк правильно в json формате указать значение для параметра даты и времени? Как конвертировать date/time/time zone в приемлемый json формат (integer in seconds since midnight, January 1, 1970 UTC)?
Прикрепила описание параметра:
departure_time (то же для arrival_time)

Specifies the desired time of departure/arrival. You can specify the time as an integer in seconds since midnight, January 1, 1970 UTC. If a departure_time later than 9999-12-31T23:59:59.999999999Z is specified, the API will fall back the departure_time to 9999-12-31T23:59:59.999999999Z. Alternatively, you can specify a value of now, which sets the departure time to the current time (correct to the nearest second)
https://developers.google.com/maps/documentation/d...
  • Вопрос задан
  • 72 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы