Giter Site home page Giter Site logo

gap_map's Introduction

Gap_Map

This is a map with 2000 foot buffers drawn around the property lines of Tulsa city schools, parks, and daycares. This is to provide a resource to allow registrants to abide by offender registration residency restrictions.

Map currently running at:

http://34.72.128.8:5000/gap_map

======= Author:

Ian Culp

https://www.linkedin.com/in/ianculp/

Landing page:

http://gapmap.godaddysites.com

======= After cloning the repo and installing the required packages, run the following from sepearate terminals or within a terminal multiplexer like screen or tmux. The map runs from port 5000 and the parcel coordinates api should run from port 5001, hence the need to set the env variable when starting the app. Ran into an issue with newer version of turf.js. This was originally built in python3.5 and turn 5.1.6.

The run_script should start everything if you have the right dependencies installed.

python3 -m web_dynamic.gap_map

API_PORT=5001 python3 -m api.v1.app

Serving Tulsa city gap map at:

http://34.72.128.8:5000/gap_map

http://shorturl.at/dquB5

JSON array of parcel dimension coordinates served at the following API:

http://34.72.128.8:5001/api/v1/parcel_coordinates

Using Google cloud compute engine vm instance:

34.72.128.8

Used selenium webdriver to scrape daycare addresses from the DHS locator site, which uses asp.net School and park addresses parsed out of a koordinates data export via .csv All addresses sent via POST geocode bulk request to geocod.io, point coordinates returned Point coordinates sent to Koordinates parcel dimension layer API query, and parcel dimension coordinates parsed and appended to list. List serialized to json file. Coordinates list served by API endpoint :5001/parcel_dimensions Coordinates deserialized from API GET request in jQuery and used to create lines along the dimensions of each parcel, which Turf.js uses to create buffer polygons, which are then merged via turf.union() to create a single layer to add to the map.

Initial tests:

https://gapmap.godaddysites.com/gap-map

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.