Giter Site home page Giter Site logo

hom3mad3 / toilets_for_the_disabled Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeforfrankfurt/toilets_for_the_disabled

0.0 1.0 0.0 12.11 MB

Home Page: https://pad.okfn.org/p/codeforffm_toilets_for_the_disabled

License: MIT License

Ruby 2.77% CSS 34.51% HTML 3.37% JavaScript 59.35%

toilets_for_the_disabled's Introduction

Toilets for the Disabled in Frankfurt

Currently there's a scraper, getting detailed data on over 1770 locations with accessible toilets.

And a deployed web app on tftd.herokuapp.com that maps the data.

It uses a MongoDB database so make sure you have that installed if you want to work with the data.

The plan is to extend the project with a dedicated mobile app and to push the data into openstreetmap.org.

Next/open steps:

  • make the filters actually do something
  • Pushing the data to OSM via their API
  • App for spotting
  • Web API for accepting POIs spotted by the API

Currently the index.html gets its data from the deployed web app on [tftd.herokuapp.com](https://tftd .herokuapp.com). This is so you can develop features right away without having to scrape and geocode to get started.

The ruby scraper and server however are currently configured to use the local database. See lib/database.rb to change that. If you want the map to show your local data as well set the jsonURL variable in index.html to simply spots and it will get the data from your local ruby webserver and MongoDB.

Deployment is handled via heroku, send me a pull request if you want me to deploy a feature or bugfix.

Developing on the web app only

cd website
python -m SimpleHTTPServer 4567 # or any other local HTTP server, but only port 4567 is allowed per CORS
# open http://localhost:4567 in your browser 

Install (when you want to scrape or serve data locally)

You need Ruby

gem install bundler

# inside the project dir
bundle install

Scraper

Run the scraper with

	rake

or the following if you want the count for each key

	SAVE_COUNT=true rake

Server

ruby server.rb

toilets_for_the_disabled's People

Contributors

acandidmind avatar bogn avatar coding-nerd avatar kseyhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.