Время пути до работы

Использование системы в различных ситуациях, вопросы программирования сценариев.

Модератор: immortal

olegvolk75
Сообщения: 141
Зарегистрирован: Сб мар 11, 2017 7:03 pm
Благодарил (а): 50 раз
Поблагодарили: 15 раз

Re: Время пути до работы

Сообщение olegvolk75 » Чт мар 22, 2018 12:28 pm

igoryan писал(а): Можно попробывать добавить в запросе "via:", там где указываются waypoint. Тогда ответ останется таким же, а маршрут будет полежен через waypoint-ы, без остановок.
Получилось, спасибо!
Orange Pi PCPlus, Debian Stretch with Armbian Linux 4.19.62-sunxi
Аватара пользователя
slgeo
Сообщения: 551
Зарегистрирован: Чт фев 05, 2015 2:35 pm
Откуда: РнД
Благодарил (а): 139 раз
Поблагодарили: 74 раза

Re: Время пути до работы

Сообщение slgeo » Чт май 03, 2018 4:39 pm

Халява закончилась? Наш сервис по расчету маршрута перестал работать.
Так и не понял, гугл прислал письмо, типа меняется политика, речь идет о каких то кредитных 200$?!
СпойлерПоказать
Hi, Today we are announcing important changes, including our new name - Google Maps Platform, a simplified product structure, pay as you go pricing for all, and more. Please take a few minutes to review the announcement to familiarize yourself with the upcoming changes. We would like to highlight a few updates that may impact your implementation. Beginning June 11th, we are launching our new pricing plan and providing all users access to support. We’ll continue to offer a free tier — all developers will receive $200 of free monthly usage of our core products. In addition, this change will require you to enable billing and associate it with all of your Google Maps Platform projects. Creating a billing account helps us better understand your usage so we can continue developing helpful products. It also allows you to scale easily with less downtime and fewer performance issues if your product grows beyond the $200 of free monthly usage. For additional visibility and control you can set daily quotas or billing alerts. How does this affect your current projects? Project: My Project (220574162865) Based on your project usage over the last 3 months and our new pricing plan, we estimate that your new cost will be less than $200 a month and will be covered by our $200 monthly free credit. This estimate does not include usage from other projects or keyless implementations. We want to support you along the way. Please read our Guide for Existing Users to understand how these changes may impact your account and what steps you need to take. Thank you for using Google Maps Platform.
Raspberry Pi2 Model B + NRF24L01 (MySensors) + 1-Wire + Esp8266 (WiFi-IoT)
CONNECT
grifindorec
Сообщения: 72
Зарегистрирован: Вт фев 02, 2021 12:54 pm
Благодарил (а): 18 раз
Поблагодарили: 6 раз

Re: Время пути до работы

Сообщение grifindorec » Пн фев 22, 2021 10:31 pm

webms писал(а):
Чт фев 08, 2018 5:17 pm
pdmitry2 писал(а):А есть ли возможность, указать промежуточную точку, что бы время в пути было привязано к одному и тому же маршруту?
Да можно, https://developers.google.com/maps/docu ... ntro?hl=ru
Заголовок: Промежуточные точки

Укажите промежуточные точки в параметре waypoints.
Можно задавать одно или несколько мест, отделяемых вертикальной чертой (|), в виде адреса, координат широты и долготы или идентификатора места.
Следующий URL-адрес инициирует запрос службы Directions на получение маршрута между Бостоном (штат Массачусетс, США) и Конкордом (штат Массачусетс, США) с остановками в Чарлстоне и Лексингтоне в указанном порядке:

Код: Выделить всё

https://maps.googleapis.com/maps/api/directions/json?origin=Boston,MA&destination=Concord,MA&waypoints=Charlestown,MA|Lexington,MA&key=YOUR_API_KEY
У меня почему то скрипт говорит время от начала до промежуточной точки.
origin=".$from."&destination=".$to."&departure_time=".$start_time."&waypoints=".$waypoints."&trafficmodel=bestguess&mode=driving&language=ru&key=".$api_key;
Ответить