Comments (1)
Timezone and time are now correct:
library(sf)
#> Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1
library(hereR)
# Timestamp with different timezone as my local CET
(datetime = as.POSIXct("2020-12-17 08:00:00", tz = "Europe/Moscow"))
#> [1] "2020-12-17 08:00:00 MSK"
connection(poi[1, ], poi[2, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://transit.router.hereapi.com/v8/routes?...'
#> Received 1 response(s) with total size: 118.7 Kb
#> [1] "2020-12-17 08:53:00 MSK"
intermodal_route(poi[1, ], poi[2, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://intermodal.router.hereapi.com/v8/routes?...'
#> Received 1 response(s) with total size: 59.5 Kb
#> [1] "2020-12-17 08:53:00 MSK"
route(poi[1, ], poi[2, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://route.ls.hereapi.com/routing/7.2/calculateroute.json?...'
#> Received 1 response(s) with total size: 49.9 Kb
#> [1] "2020-12-17 08:00:00 MSK"
route_matrix(poi[1, ], poi[2, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://matrix.route.ls.hereapi.com/routing/7.2/calculatematrix.json?...'
#> Received 1 response(s) with total size: 712 bytes
#> [1] "2020-12-17 08:00:00 MSK"
isoline(poi[1, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://isoline.router.hereapi.com/v8/isolines?...'
#> Received 1 response(s) with total size: 9.7 Kb
#> [1] "2020-12-17 08:00:00 MSK"
# Timestamp with my local timezone (CET)
(datetime = as.POSIXct("2020-12-17 08:00:00", tz = "Europe/Zurich"))
#> [1] "2020-12-17 08:00:00 CET"
connection(poi[1, ], poi[2, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://transit.router.hereapi.com/v8/routes?...'
#> Received 1 response(s) with total size: 119.8 Kb
#> [1] "2020-12-17 08:49:00 CET"
intermodal_route(poi[1, ], poi[2, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://intermodal.router.hereapi.com/v8/routes?...'
#> Received 1 response(s) with total size: 74.1 Kb
#> [1] "2020-12-17 08:49:00 CET"
route(poi[1, ], poi[2, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://route.ls.hereapi.com/routing/7.2/calculateroute.json?...'
#> Received 1 response(s) with total size: 49.9 Kb
#> [1] "2020-12-17 08:00:00 CET"
route_matrix(poi[1, ], poi[2, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://matrix.route.ls.hereapi.com/routing/7.2/calculatematrix.json?...'
#> Received 1 response(s) with total size: 712 bytes
#> [1] "2020-12-17 08:00:00 CET"
isoline(poi[1, ], datetime = datetime)$departure[1]
#> Sending 1 request(s) to: 'https://isoline.router.hereapi.com/v8/isolines?...'
#> Received 1 response(s) with total size: 8.6 Kb
#> [1] "2020-12-17 08:00:00 CET"
from herer.
Related Issues (20)
- Quality index HOT 2
- Bug: Function hereR::isoline fails for a single-value range. HOT 5
- Feature: Avoid features in routing HOT 1
- Feature: Add a robust argument to hereR::isoline. HOT 3
- Feature: Add support for optimizeFor isoline parameters HOT 2
- Bug: isoline fails when response polygon is multipart HOT 2
- Bug: HERE rate limits HOT 2
- Feature: Search stations by name in ‘station()' HOT 1
- Bug: route_matrix() output order HOT 4
- Feature: Filter transport modes in 'connection()'
- Bug: hereR::isoline fails: "Error in decode(encoded[[x]]): Invalid format version" HOT 2
- Feature: Add geocoding parameters HOT 3
- Feature: Remove limits in case of paid plan HOT 1
- Bug: Request 'id = 1' failed: Status 400 when using Isoline HOT 3
- Feature: Request tolls HOT 2
- Feature: isolines custom id/retain attributes HOT 4
- Bug: Error code 403, forbidden HOT 1
- Bug: Status 401; Unauthorized; No permission HOT 8
- Bug: `flow` function return 403 HOT 3
- Bug: NOTE, Objects in \usage without \alias
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from herer.