data-for-change / anyway-backend Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
A new api will be added - acc_in_area_query(pol_str, start_date, end_date)
Parameters info:
This pull request contains creation of the Alembic environment along with the markers table migration (designed by @dvir)
Separate project to anyway-data-store, anyway-orm-models repos, deploy to heroku
#enhancement
1 - Ready
#backend
A new api added - acc_in_area_query(pol_str)
Parameters info:
polygon will be received in the following format: 'POLYGON(({lon} {lat},{lon} {lat},........,{lonN},
{latN}))'
please note that start point and end point must be equal: i.e. lon=lonN, lat=latN
Request format: http://{server url}/markers/polygon?polygon=POLYGON(({lon} {lat},{lon} {lat},........,{lonN}, {latN}))"
e.g.:
'POLYGON ((34.956427548329849 32.190520649945768 , 34.956438717295775 32.190465500916261 , 34.956473100856243 32.190295672884091 , 34.956474230624934 32.190290102095439 , 34.956503739170309 32.190144287925804 , 34.956604761938308 32.189644799280735 , 34.956637701891779 32.189483080369165 , 34.95669092067012 32.189213213537847 , 34.956693381913901 32.189200665571747 , 34.956742067811447 32.188953755176051 , 34.956785542901088 32.188739996033597 , 34.956870488451351 32.188325018530051 , 32.190569796988477 , 34.956427548329849 32.190520649945768)) '
Current APIs are here: https://github.com/hasadna/anyway/blob/dev/anyway/flask_app.py
Add the following APIs to our new backend:
@app.route("/markers", methods=["GET"]) AND @app.route("/markers/all", methods=["GET"])
Note that in the new backend we have a few schemas (not only public) - and the cbs tables you should use are in the cbs schema.
Find current API here:
https://github.com/hasadna/anyway/blob/dev/anyway/flask_app.py
(You'll need to add relevant functions as well)
Also - any performance improvements are welcome.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.