This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 - - [30/Jun/2016 13:40:44] "POST /call HTTP/1.1" 200 - | |
127.0.0.1 - - [30/Jun/2016 13:45:17] "GET /static/js/lrm-mapzen-0.1.2/leaflet.routing.icons.png HTTP/1.1" 200 - | |
{'status': 'OK', 'main': 2, 'sub': [], 'user': 'default'} | |
127.0.0.1 - - [30/Jun/2016 13:45:17] "POST /getParams HTTP/1.1" 200 - | |
<type 'dict'> | |
{"status": "OK", "main": 2, "sub": [4], "user": "EASHERMA"} | |
<type 'str'> | |
Using: Factual | |
route [{u'lat': 41.81173, u'lng': -87.666227}, {u'lat': 42.03831, u'lng': -88.290742}] | |
BEGIN: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
address | city | state | |
---|---|---|---|
121 N LASALLE ST | CHICAGO | IL 60602 | |
930 W 37TH PL | CHICAGO | IL 60609 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import csv | |
import pandas as pd | |
address_list = 'sample.csv' | |
output_path = 'output.csv' | |
"""establishes the parameters for the api calls. atm they are decalred individually becuase the api needs them in a certain order. | |
this code can be compressed to sort the dict directly """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//npm install knackhq-client | |
var knack = require('knackhq-client'); | |
knack.authenticate({ apikey: 'edc09ff0-3cb5-11e6-a5db-e797893261f8', appid: '5771a671b3a24ed73cac0a5a' }, function(error) { | |
if (error) { | |
// failed to log in! | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// read api doc: | |
// http://developer.factual.com/display/docs/Core+API+-+Read | |
var auth = require('./auth.js'); //or however you wanna auth | |
var Factual = require('factual-api'); | |
var factual = new Factual(auth.key, auth.secret); | |
//factual.startDebug(); | |
radius = 25000; | |
limit = 50; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# my messy notes | |
The steps for fully installing Pelias look like this: | |
Decide which datasets and settings will be used | |
* | |
Download appropriate data | |
Download Pelias code, using the appropriate branches | |
Set up Elasticsearch | |
Install the Elasticsearch schema using pelias-schema |
NewerOlder