GithubHelp home page GithubHelp logo

beekley / multi-modal-maps Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 22 KB

Combined bike and transit routing using the Google Maps JS API

HTML 21.11% JavaScript 75.10% CSS 3.78%
maps google-maps google-maps-api directions cycling pug pug-template-engine async es8

multi-modal-maps's Introduction

multi-modal-maps

Right now, Google Maps does not provide directions that use multiple modes of transportation (e.g. biking and public transit). This project uses Node.js and the Google Maps APIs to serve an app that allows the user to search for directions that combine biking and public transit

Demo

<3 Pug and Materialize UI

To Do List

  • Provide written directions
  • Allow user to bring their own API key (it's easy to hit the free-tier query limits)
  • Arbitrary modes of transportation (e.g. Driving + Transit)

Installation

Clone this repository and install the dependencies:

npm install

Create a file named secrets.js in the root of the installation directory. This will contain the API key for the Google Maps APIs and has the following format:

module.exports = {
  gmapkey: 'YOUR KEY HERE'
}

You can get a free API key from Google here. The key needs the 'Google Maps JavaScript API' and 'Google Maps Directions API' enabled. Since the key is visible to the client, it's strongly recommended to restrict the key to your domain (configurable on the Google Developer's Console).

Note:

The client-side script.js uses ES8's async and await features. This will not be compatible with some browsers. (I happen to love async/await)

multi-modal-maps's People

Contributors

beekley avatar

Watchers

James Cloos avatar

Forkers

joaommartins

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.