Skip to content

Commit

Permalink
Merge pull request #60 from traveltime-dev/change/make-host-mandatory
Browse files Browse the repository at this point in the history
making host mandatory
  • Loading branch information
danielnaumau authored May 23, 2024
2 parents cff519b + 485f06e commit 4dba831
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The simplest way to run these benchmarks is to use docker:
docker run
-e APP_ID={APP_ID}
-e API_KEY={API_KEY}
-e HOST=api.traveltimeapp.com //optional
-e HOST=api.traveltimeapp.com
-e LOCATION='GB/London' //optional
-e TRANSPORTATION='driving+ferry' //optional
-e DATA_PATH='../precomputed/origins.csv' // optional, this will read coordinates from a file instead of randomly generating them
Expand All @@ -35,7 +35,7 @@ docker run
docker run
-e APP_ID={APP_ID}
-e API_KEY={API_KEY}
-e HOST=api.traveltimeapp.com //optional
-e HOST=api.traveltimeapp.com
-e LOCATION='GB/London' //optional
-e TRANSPORTATION='driving+ferry' //optional
-e DATA_PATH='../precomputed/origins.csv' // optional, this will read coordinates from a file instead of randomly generating them
Expand All @@ -54,7 +54,7 @@ docker run
docker run
-e APP_ID={APP_ID}
-e API_KEY={API_KEY}
-e HOST=api.traveltimeapp.com //optional
-e HOST=api.traveltimeapp.com
-e LOCATION='GB/London' //optional
-e TRANSPORTATION='driving+ferry' //optional
-e DATA_PATH='../precomputed/origins.csv' // optional, this will read coordinates from a file instead of randomly generating them
Expand All @@ -73,7 +73,7 @@ docker run
docker run
-e APP_ID={APP_ID}
-e API_KEY={API_KEY}
-e HOST=api.traveltimeapp.com //optional
-e HOST=api.traveltimeapp.com
-e LOCATION='GB/London' //optional
-e TRANSPORTATION='driving+ferry' //optional
-e DATA_PATH='../precomputed/routes.csv' // optional, this will read coordinates from a file instead of randomly generating them
Expand All @@ -91,7 +91,7 @@ docker run
-e API_KEY={API_KEY}
-e DESTINATIONS=50 // optional
-e MANY_TO_ONE // optional
-e HOST=proto.api.traveltimeapp.com // optional
-e HOST=proto.api.traveltimeapp.com
-e TRANSPORTATION=driving+ferry // optional
-e DATA_PATH='../precomputed/origins.csv' // optional, this will read coordinates from a file instead of randomly generating them
-e LOCATION='UK/London' // optional
Expand All @@ -109,7 +109,7 @@ docker run
docker run
-e APP_ID={APP_ID}
-e API_KEY={API_KEY}
-e HOST=api.traveltimeapp.com //optional
-e HOST=api.traveltimeapp.com
-e QUERY='Parliament square' //optional
-e WITHIN_COUNTRY='gb' //optional, only return the results that are within the specified country
-e LIMIT=50 //optional, limits amount of results returned to specified number (1 to 50)
Expand All @@ -126,7 +126,7 @@ docker run
docker run
-e APP_ID={APP_ID}
-e API_KEY={API_KEY}
-e HOST=api.traveltimeapp.com //optional
-e HOST=api.traveltimeapp.com
-e LAT='51.4952113' //optional, latitude
-e LNG='-0.183122' //optional, longitude
-ti igeolise/traveltime-k6-benchmarks:latest k6 run scripts/routes.js
Expand Down
2 changes: 1 addition & 1 deletion scripts/geocoding-reverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ randomSeed(__ENV.SEED || 1234567)
export function setup () {
const appId = __ENV.APP_ID
const apiKey = __ENV.API_KEY
const host = __ENV.HOST || 'api.traveltimeapp.com'
const host = __ENV.HOST
const url = `https://${host}/v4/geocoding/reverse`

const lat = __ENV.LAT || '51.4952113'
Expand Down
2 changes: 1 addition & 1 deletion scripts/geocoding-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ randomSeed(__ENV.SEED || 1234567)
export function setup () {
const appId = __ENV.APP_ID
const apiKey = __ENV.API_KEY
const host = __ENV.HOST || 'api.traveltimeapp.com'
const host = __ENV.HOST
const url = `https://${host}/v4/geocoding/search`

const query = __ENV.QUERY || 'Parliament square'
Expand Down
2 changes: 1 addition & 1 deletion scripts/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const precomputedDataFile = __ENV.DATA_PATH ? open(__ENV.DATA_PATH) : undefined
export function setup () {
const appId = __ENV.APP_ID
const apiKey = __ENV.API_KEY
const host = __ENV.HOST || 'api.traveltimeapp.com'
const host = __ENV.HOST
const location = __ENV.LOCATION || 'GB/London'
const locationCoords = getLocationCoordinates(location)
const url = `https://${host}/v4/routes`
Expand Down
2 changes: 1 addition & 1 deletion scripts/time-filter-proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function setup () {
const appId = __ENV.APP_ID
const apiKey = __ENV.API_KEY
const destinationsAmount = parseInt(__ENV.DESTINATIONS || 50)
const host = __ENV.HOST || 'proto.api.traveltimeapp.com'
const host = __ENV.HOST
const transportation = __ENV.TRANSPORTATION || 'driving+ferry'
const protocol = __ENV.PROTOCOL || 'https'
const travelTime = parseInt(__ENV.TRAVEL_TIME || 7200)
Expand Down
2 changes: 1 addition & 1 deletion scripts/time-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const precomputedDataFile = __ENV.DATA_PATH ? open(__ENV.DATA_PATH) : undefined
export function setup () {
const appId = __ENV.APP_ID
const apiKey = __ENV.API_KEY
const host = __ENV.HOST || 'api.traveltimeapp.com'
const host = __ENV.HOST
const location = __ENV.LOCATION || 'GB/London'
const locationCoords = getLocationCoordinates(location)
const url = `https://${host}/v4/time-filter`
Expand Down
2 changes: 1 addition & 1 deletion scripts/time-map-fast.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const precomputedDataFile = __ENV.DATA_PATH ? open(__ENV.DATA_PATH) : undefined
export function setup () {
const appId = __ENV.APP_ID
const apiKey = __ENV.API_KEY
const host = __ENV.HOST || 'api.traveltimeapp.com'
const host = __ENV.HOST
const location = __ENV.LOCATION || 'GB/London'
const locationCoords = getLocationCoordinates(location)
const url = `https://${host}/v4/time-map/fast`
Expand Down
2 changes: 1 addition & 1 deletion scripts/time-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const precomputedDataFile = __ENV.DATA_PATH ? open(__ENV.DATA_PATH) : undefined
export function setup () {
const appId = __ENV.APP_ID
const apiKey = __ENV.API_KEY
const host = __ENV.HOST || 'api.traveltimeapp.com'
const host = __ENV.HOST
const location = __ENV.LOCATION || 'GB/London'
const locationCoords = getLocationCoordinates(location)
const url = `https://${host}/v4/time-map`
Expand Down

0 comments on commit 4dba831

Please sign in to comment.