Skip to content

A simple proxy server that allows us to control access to the Google Maps API

Notifications You must be signed in to change notification settings

smartchicago/scc-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCC Proxy

A simple proxy server that allows us to control access to the Google Maps API.

Installation

$ git clone [email protected]:smartchicago/scc-proxy.git
$ cd scc-proxy
$ gem install bundler
$ bundle install
$ rake db:setup
$ cp config/application.yml.example config/application.yml

Populate the application.yml file with config settings. Values can be found via heroku config.

bundle exec unicorn

Navigate to http://localhost:8080

Using the Proxy

In order to use the proxy, you must have an API key. Please contact one of the team members if you require access.

Endpoints

geocode

Proxies access to the Geocoding API.

http://services.smartchicagoapps.org/v1/maps/geocode?address=3324+N+California+Ave%2C+Chicago%2C+IL+60618&key=1234567890

distancematrix

Proxies access to the Distance Matrix API.

http://services.smartchicagoapps.org/v1/maps/distancematrix?origins=2401+N+Lake+Shore+Dr,+Chicago,+IL,+USA&destinations=50+W+Washington+St,+Chicago,+IL,+USA&sensor=false&mode=bicycling&units=imperial&key=1234567890

Team

About

A simple proxy server that allows us to control access to the Google Maps API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published