• Stars
    star
    122
  • Rank 290,355 (Top 6 %)
  • Language
    Go
  • Created almost 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Find the safest well lit walking path between two locations on earth.

Brightpath

Demo

Using the demo

  • Demo can be found here
  • Click two points anywhere on the map of London.
  • The animation between points is just an animation, the response from the server is instant.
  • Limited to London due to memory constraints of the free tier of heroku.
  • Your live location will be updated regularly if you are walking or cycling.

brightpath-demo

brightpath-demo

Mission

To provide the safest well lit walking route between two locations.

Problem

  • Google maps can often provide unsafe walking routes.
  • If you are new to a city or travelling you are highly dependent on google maps for navigating safely between locations and you will often be on foot.
  • There has been a surge of people vying for a product which provides safe walking paths. Here are some examples from twitter.

Blogs

These were written as a follow up to the hackathon about our experience.

Presentation

Presentation slides can be found here

Solution

Brightpath finds walking routes through the city that are well lit, avoiding dark pathways. Later we could incorporate many other kinds of data such as safe checkpoints trivially. The core technical challenge was wrangling the data and writing our own custom routing algorithm. For this hackathon we used data about whether a street is lit or not from Open Street Map. Later we could incorporate official UK gov data about street lighting or even incorporate satellite imaging data.

To test the routing algorithm in the wild, click any two locations on the map of London. Note this is limited to London because of the limitations of heroku free plan. While we did optimize for space complexity there are over 5 million edges in London.

Our approach

Our MVP has focused on using brightness as an objective measure for how safe one might feel. As a society we all need to be more conscious and critical of apps that ‘think for us’, and the data they use. Other ‘objective’ metrics we considered for the future include shop density, heat maps and traffic. We strive to give the power back to the user and allow them to select the safety metrics which are right for them.

Source code

Backend

Backend github repository. Built in Go, hosted on heroku. https://brightpath.herokuapp.com

Steps taken to create backend

  1. Get a dump of London data from Open Street Map
  2. Convert OSM format to geojson.
  3. Clean geojson to remove dark pathways.
  4. Write algorithm to load geojson into graph representation in memory in Go.
  5. Create Go API server.
  6. Write algorithm for finding closest known node to user requested start and end coordinates.
  7. Write A* routing algorithm to find shortest path between two nodes in optimal time.
  8. Write unit tests and test cases for shortest path edge cases.

Frontend 1

Frontend 2

Design Proposal

We put together some high fidelity mockups of what the app could look like later on.

How it relates to Accessibility and Community

  • Our solution is especially useful for those who are travelling and are not familiar with their new surroundings and therefore highly dependent on navigation apps.

  • Our solution makes travel more accessible for everyone. We made sure to inlcude minorities which are often overlooked. Our solution does not discriminate - it is for anyone that does not currently feel safe enough to go out at night (whether they are in a different continent, country, city or even an area they are not used to).  These can be individuals with ‘protected characteristics’ under the Equality Act (such as those that are disabled such as partially visually impaired, those with visible differences (such as ethnic minorities or gender) and invisible differences (such as LGBQT+)), but it can also be for any one else that feels vulnerable.

  • Our solution also empowers users to engage more with the local community.  For example, from our research there are a number of travellers who will ‘go out at night’, however they will use taxis to get from A to B because they do not feel safe to walk from the hotel to the venue (and/or back again).  I’m sure we all have stories of having some of the best nights when wander freely around a local area, meeting locals serendipitously.  Our app gives more people the opportunity to have impromptu connections with the local community, in more locations.

Run Backend


go build -v -o bin/main . && ./bin/main

Run Frontend


yarn install
yarn start

More Repositories

1

deep-email-validator

Validates regex, typos, disposable, dns and smtp
TypeScript
829
star
2

git-sub-dir

Downloads sub-directory of a github repository.
Python
59
star
3

seam-carving-js

Javascript implementation of Seam Carver. Seam Carver is a content-aware image resizing algorithm
JavaScript
33
star
4

Youtube-Playlist-Manager

An advanced playlist manager for youtube, that lets you perform various batch actions.
JavaScript
22
star
5

angular-slideout

Mobile friendly, animated, reusable angular.js slideout directive.
JavaScript
9
star
6

countdown-solver

TypeScript
7
star
7

treasure

A game to introduce the concept of binary search in an intuitive way
JavaScript
7
star
8

observable-state-tree

An observable state tree is a normal object except that listeners can be bound to any subtree of the state tree.
TypeScript
7
star
9

async-await-with-generators

Async await implemented with generators
JavaScript
6
star
10

coderacer

Competitive touch typing for JavaScript programmers
TypeScript
5
star
11

stripe-sca-subscription-react

React Stripe Elements Subscription with SCA Starter
JavaScript
4
star
12

moving-eyes-photos

Personal website
HTML
3
star
13

mfbx9da4.github.io

A calling card and a place to aggregate my projects
SCSS
2
star
14

react-native-jsi-promise

Java
2
star
15

amp-jekyll

This is a port of the AMP start bike shop template to jekyll.
HTML
2
star
16

deep-email-validator-express

Deep Email Validation Endpoint
TypeScript
2
star
17

coding-dojo-29-jan-2020

TypeScript
1
star
18

react-native-zendesk-test

Java
1
star
19

editor_atomate

1
star
20

python-vscode-starter

Python
1
star
21

neuron-astrocyte-networks

Modified feedforward neural network models to represent neuron-astrocyte interactions.
Python
1
star
22

blog

An experiment using mongodb, node, emberjs and ace editor
JavaScript
1
star
23

ng-server-time

Time synchronization directive between angular and node server using socket.io. Emulating NTP protocol.
JavaScript
1
star
24

hntv

YC's Hacker News - just videos
JavaScript
1
star
25

rhythm_game

aims to teach users rhythm. google app engine and python backend. game is HTML5
JavaScript
1
star
26

django-timer

A profiling timer util for django projects.
Python
1
star
27

brightpath-frontend

Find the safest well lit walking path between two locations.
JavaScript
1
star
28

instructorlist-frontend

JavaScript
1
star
29

nextjs-preactx

JavaScript
1
star
30

proof-of-concept-jsi

Java
1
star
31

tdd-typescript-starter

TypeScript
1
star
32

tree-drawing-algorithms

TypeScript
1
star