{"id":22010098,"url":"https://github.com/beldar/boris-bikes","last_synced_at":"2026-04-26T16:31:22.959Z","repository":{"id":15029380,"uuid":"17755183","full_name":"beldar/boris-bikes","owner":"beldar","description":"A Polymer Web Component to get the free bikes and docks on Boris Bikes of London, gets user geolocation.","archived":false,"fork":false,"pushed_at":"2015-09-17T19:59:50.000Z","size":720,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-24T03:56:54.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/beldar.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}},"created_at":"2014-03-14T17:57:11.000Z","updated_at":"2014-03-20T11:34:38.000Z","dependencies_parsed_at":"2022-09-09T11:00:55.613Z","dependency_job_id":null,"html_url":"https://github.com/beldar/boris-bikes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beldar/boris-bikes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fboris-bikes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fboris-bikes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fboris-bikes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fboris-bikes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beldar","download_url":"https://codeload.github.com/beldar/boris-bikes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fboris-bikes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32305032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-30T02:12:00.949Z","updated_at":"2026-04-26T16:31:22.944Z","avatar_url":"https://github.com/beldar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Boris Bikes Component\n-------\n\nThis is a Web Component that uses [Polymer](http://www.polymer-project.org/) to create it and to provide a fallback in case the browser don't support web components.\n\nIt provides a component that fetches the Boris Bike data (free bikes, free docks, etc) and provides and interface for it.\n\nPlease note that this component has two other custom components as a dependency , `current-location.html` and `google-map.html` you can modify the component\nif you don't want those elements.\n\nAlso has a dependency on `polymer-ajax.html` but that's installed with bower.\n\nThe component uses an YQL url to fetch the TFL cross domain XML.\n\nYou can find a working demo here: http://beldar.github.io/boris-bikes/\n\nTo know more about web components [there](http://www.html5rocks.com/en/tutorials/webcomponents/customelements/) [are](http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/) [tons](http://css-tricks.com/modular-future-web-components/) of [resources](https://www.google.co.uk/search?q=web+components) available.\n\n\n# Installation\n\nVia Bower\n--------\n\n    bower install --save boris-bikes\n\nOtherwise...\n\nDependencies\n------------\n\nYou have to have installed [bower](http://bower.io/), and [compass](http://compass-style.org/install/). To install the first two you'll need [node](http://nodejs.org/) too.\n\nInstall\n-------\n\nOnce you have all those and cloned the repo, go to the root of the project and run:\n\n    bower install\n    \nThat will download all the js and css dependencies of the project.\n\nThen run:\n\n    npm install\n    \nThis will download all the node dependencies (including grunt)\n\nFinally you can launch the demo running:\n\n    grunt serve\n    \nYou can build the project ready for production like this:\n\n    grunt build\n    \nThat will leave everything ready on the `/dist` folder\n\n# How to use\n\nThere's an example/demo on the index.html of this project, but basically, you first need to include the platform.js:\n\n    \u003cscript src=\"bower_components/platform/platform.js\"\u003e\u003c/script\u003e\n    \nThen, just below import the html of the element:\n\n    \u003clink rel=\"import\" href=\"elements/boris-bikes.html\"\u003e\n\nPlease note that this component expects the component `current-location.html` included in this repository on the same folder.\n    \nAnd finally place the element where you want it using the attributes that you need:\n\n    \u003cboris-bikes\u003e\u003c/boris-bikes\u003e\n\nYou can also define a longitude and latitude:\n\n    \u003cboris-bikes longitude=\"-0.0733421\" latitude=\"51.5186345\"\u003e\u003c/boris-bikes\u003e\n    \nAttributes summary\n-----------\n\n| Attribute | Functionality                        | Default        |\n|-----------|--------------------------------------|----------------|\n| latitude  | Defines the latitude to find the closest bike rack | null         |\n| longitude | Defines the longitude to find the closest bike rack          | null           |\n| map       | Show google map of the location   | True  |\n| geolocation | Ask for browser's geolocation position | True |\n\nFunctionality\n------------\nThis component by default tries to get your geolocation from the browser, otherwise you can change latitude and longitude in the input boxes\nor you can also select a street from the select.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeldar%2Fboris-bikes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeldar%2Fboris-bikes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeldar%2Fboris-bikes/lists"}