Git Product home page Git Product logo

openparkingstockholm's Introduction

OpenParkingStockholm

OpenParkingStockholm is a simple solution (made for a job application) which provides information about different car parks over Stockholm.

Markers are placed all over the city to show where the car parks are. A red line is drown on the map to show the area of each car park. To keep the map cleans from too much markers, I added the js-marker-clusterer which merges markers when they are too much on the same place.

If you click on a marker : , a bottom sheet modal with different information about the car park will be shown :

Drawing

Two buttons on the bottom allow :

  • Going back to the full view
  • Closing modal bottom sheet and keep the zoom on the current area

This project can be easily1 reused for another city as I've used the city name as parameter to center the city on screen :

// The city where the map will be centered
var cityName = "stockholm";

To run test unit, open SpecRunner.html file and expect no failure !

Drawing

Technical choices

If I would continue this project further, geolocalization could be added, this would require https protocol.

Improvements could also be added to the markers. The number is sometimes wrong because several car parks can have the same Latitude and Longitude.

Another nice feature would be to add a third button 'Go to this parking' which would link to the google maps itinerary.

I keep this project in my pocket for my future everyday life !

1 The new city needs of course same json skeleton fetched from open data

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.