Coder Social home page Coder Social logo

alexluckett / safe-passage Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 24 KB

Plots your route from A to B with local crime statistics, helping you find a safe route.

CSS 5.06% JavaScript 34.12% PHP 60.83%
crime route-planner google-maps government-data

safe-passage's Introduction

Created at AstonHack 2016 - winner of "Best Overall Hack".

Plots recent UK crime location over a travel route on Google Maps.

API

Usage: api.php?postcodeStart=FOO&postcodeEnd=BAR

Change FOO and BAR to valid UK postcodes.

Returns a JSON document containing a list of recent crime events within a mile radius of the calculated route between postcodeStart and postcodeEnd. Crime stats are for the previous month only.

Setting up

Obtain API keys from Google Maps (developer.google.com) for both client and server requests. Please note that in this application the two keys are spread out over two variables, which is useful if you use both HTTP Referrer and IP address key restrictions. You may use the same API key for both if those restrictions do not apply to you.

To change the API keys, open config.php insert your keys in place of '' where appropriate:

define('CLIENT_API_KEY', '');
define('SERVER_API_KEY', '');

safe-passage's People

Contributors

alexluckett avatar cslowgrove avatar daydreamingwill avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.