Sign inSign up

kyma/community-mapping-tools

By kyma

Updated almost 11 years ago

Image
0

1.0K

kyma/community-mapping-tools repository overview

community-mapping-tools

Upload a csv of names and addresses and get a web app of useful community mapping tools. Right now the tool is tied to the LDS ward membership CSV export data structure. E.g. it expects "Family Name" and "Family Address" columns.

Right now it will show you the closest neighbors of a given individual. Future tools very possible!

Installation and running

The following instructions assume you'll be running the app using Docker. This is by far the simplest way to get this running.

First create an account and generate an API key from Mapquest. This app uses their Open APIs to geocode addresses and get driving distances between addresses. http://developer.mapquest.com/web/products/open

Then SSH to a server with Docker already installed.

There we'll need to run two Docker commands. The first to setup a "data-volume" container and the second to run the actual web app.

To create the data-volume container run:

docker run -v /data --name distance_data busybox true

Then run:

docker run -p 8080:8080 --env MAPQUEST_API_KEY=YOUR_API_KEY --volumes-from distance_data -d kyma/community-mapping-tools

Now the app should be running. To upload the LDS ward membership csv, go to http://yoursite.com:8080/import

screen shot 2014-06-03 at 5 14 16 pm

Then go to http://yoursite.com/8080/hello. There's HTTP Basic Auth setup which atm is hardcoded to "happy day" for the username and "the sun" for the password. Enter that and you should see something like:

screen shot 2014-06-03 at 5 15 52 pm

Select a family name and the app will go to work querying distances between that family and every other family in the ward. These distances will be pushed to the browser and sorted by who's closest.

who_s_close_to_who

Tag summary

Content type

Image

Digest

sha256:6d1e2af48

Size

172.7 MB

Last updated

almost 11 years ago

docker pull kyma/community-mapping-tools