{"id":19438540,"url":"https://github.com/gottwik/reach_booking","last_synced_at":"2026-05-15T17:03:01.839Z","repository":{"id":220734294,"uuid":"75748614","full_name":"Gottwik/reach_booking","owner":"Gottwik","description":"Travel time to Rembrandtplein, Amsterdam visualized on map","archived":false,"fork":false,"pushed_at":"2017-02-16T11:37:21.000Z","size":3332,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T21:28:48.986Z","etag":null,"topics":["travel-times"],"latest_commit_sha":null,"homepage":"https://gottwik.github.io/reach_booking/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gottwik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-06T16:14:20.000Z","updated_at":"2018-01-10T14:37:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5b2c525-8eec-4887-aa5c-994832d94d13","html_url":"https://github.com/Gottwik/reach_booking","commit_stats":null,"previous_names":["gottwik/reach_booking"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gottwik%2Freach_booking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gottwik%2Freach_booking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gottwik%2Freach_booking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gottwik%2Freach_booking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gottwik","download_url":"https://codeload.github.com/Gottwik/reach_booking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619440,"owners_count":19830206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["travel-times"],"created_at":"2024-11-10T15:18:54.831Z","updated_at":"2026-05-15T17:03:01.754Z","avatar_url":"https://github.com/Gottwik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reach_booking\n\nTravel time to Rembrandtplein, Amsterdam visualized on a map.\n\n![Imgur](http://i.imgur.com/sDjIXRq.png)\n\n# How it works\n\n## Generation of points around given center coordinates\nPoints are generated in a spiral with increasing radius but with equivalent distances between consecutive points ([credit: Pete Kirkham](http://stackoverflow.com/a/13901170/4742670)). To generate points, use `/generate_points` endpoint.\n\n![Imgur](http://i.imgur.com/dkuXPPg.png)\n\n## Getting distances from center\nThis project uses [Google distance matrix api](https://developers.google.com/maps/documentation/distance-matrix/). This allows for 100 requests, 25 points each per day for free. The map in the demo was generated from 25,000 points, so I had to run the `/fetch` endpoint on 10 days ;-). 1000 points are ok for simple uses.\n\nCheck out the distance visualization here: https://gottwik.github.io/reach_booking/markers\n\n![Imgur](http://i.imgur.com/TkCvqru.png)\n\n![Imgur](http://i.imgur.com/eVj7qe7.png)\n\n## Generate overlay image\nRendering 25,000 markers is slow so I opted for an approach where I generate a single png and overlay it on map. This is done via mapping points to coordinates on the bitmap and then interpolating the pixels in between.\n\n![Imgur](http://i.imgur.com/Eubk4HC.png)\n\n# How to rebuild to another destination\nChange the default destination in `/app/app.js`: to your coordinates\n\n```\nglobal.default_destination = {lat: 52.36641789999999, lng: 4.897536700000046}\n```\n\nstart the (www.endurojs.com)[enduro] and access `localhost:5000/generate_points` then `localhost:5000/generate_apicalls`. Now you have the points and api urls prebuilt and you can start calling `localhost:5000/fetch_next_apicall` to get travel times.\n\n\n## Future ideas\n* Switch travel mode between public transport, bicycle and driving\n* Have a nice gui to the getting of the travel times.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgottwik%2Freach_booking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgottwik%2Freach_booking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgottwik%2Freach_booking/lists"}