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
///////////////////////////////////////////////////////////////////////////////////////////// | |
//setting up the map http://jsfiddle.net/fq7vu2rn/3/// | |
///////////////////////////////////////////////////////////////////////////////////////////// | |
// set center coordinates | |
var centerlat = 41.81173; | |
var centerlon = -87.666227; | |
// set default zoom level | |
var zoomLevel = 10; |
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
factual.get('/t/places/facets', | |
{filters:{"category_ids":{"$includes_any":[2]}}, | |
select:"category_labels", min_count:1, | |
geo:{"$within":{"$rect":[[bbox[3] , bbox[0]],[bbox[1], bbox[2]]]}}}, | |
function (error, res) { | |
console.log(res.data); | |
}); |
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
{ | |
"pelias": { | |
"aliases": {}, | |
"mappings": { | |
"venue": { | |
"dynamic": "true", | |
"_all": { | |
"enabled": false | |
}, | |
"_source": { |
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
{ | |
"settings": { | |
"analysis": { | |
"tokenizer": { | |
"peliasNameTokenizer": { | |
"type": "pattern", | |
"pattern": "[\\s,/\\\\]+" | |
}, | |
"peliasStreetTokenizer": { | |
"type": "pattern", |
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
{ | |
"type": "FeatureCollection", | |
"features": [{ | |
"type": "Feature", | |
"properties": { | |
"response": "{\"address\":\"1480 Abbott Dr\",\"category_ids\":[6],\"category_labels\":[[\"Automotive\",\"Car Parts and Accessories\"]],\"chain_id\":\"ab4c25b0-d68a-012e-5619-003048cad9da\",\"chain_name\":\"NAPA Auto Parts\",\"country\":\"us\",\"email\":\"[email protected]\",\"factual_id\":\"62e993fb-795e-4a7d-af58-bea481cf6f3b\",\"fax\":\"(847) 888-6953\",\"hours\":{\"sunday\":[[\"9:00\",\"16:00\"]],\"saturday\":[[\"8:00\",\"17:00\"]],\"tuesday\":[[\"8:00\",\"19:30\"]],\"friday\":[[\"8:00\",\"19:30\"]],\"thursday\":[[\"8:00\",\"19:30\"]],\"wednesday\":[[\"8:00\",\"19:30\"]],\"monday\":[[\"8:00\",\"19:30\"]]},\"hours_display\":\"Mon-Fri 8:00 AM-7:30 PM; Sat 8:00 AM-5:00 PM; Sun 9:00 AM-4:00 PM\",\"latitude\":42.055655,\"locality\":\"Elgin\",\"longitude\":-88.314319,\"name\":\"NAPA Auto Parts\",\"postcode\":\"60123\",\"region\":\"IL\",\"tel\":\"(847) 697-3050\",\"website\":\"http://www.napaonline.com/\"}" | |
}, |
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
{ | |
"type": "FeatureCollection", | |
"features": [{ | |
"type": "Feature", | |
"properties": { | |
"response": "{\"address\":\"1480 Abbott Dr\",\"category_ids\":[6],\"category_labels\":[[\"Automotive\",\"Car Parts and Accessories\"]],\"chain_id\":\"ab4c25b0-d68a-012e-5619-003048cad9da\",\"chain_name\":\"NAPA Auto Parts\",\"country\":\"us\",\"email\":\"[email protected]\",\"factual_id\":\"62e993fb-795e-4a7d-af58-bea481cf6f3b\",\"fax\":\"(847) 888-6953\",\"hours\":{\"sunday\":[[\"9:00\",\"16:00\"]],\"saturday\":[[\"8:00\",\"17:00\"]],\"tuesday\":[[\"8:00\",\"19:30\"]],\"friday\":[[\"8:00\",\"19:30\"]],\"thursday\":[[\"8:00\",\"19:30\"]],\"wednesday\":[[\"8:00\",\"19:30\"]],\"monday\":[[\"8:00\",\"19:30\"]]},\"hours_display\":\"Mon-Fri 8:00 AM-7:30 PM; Sat 8:00 AM-5:00 PM; Sun 9:00 AM-4:00 PM\",\"latitude\":42.055655,\"locality\":\"Elgin\",\"longitude\":-88.314319,\"name\":\"NAPA Auto Parts\",\"postcode\":\"60123\",\"region\":\"IL\",\"tel\":\"(847) 697-3050\",\"website\":\"http://www.napaonline.com/\"}" | |
}, |
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
{ | |
"type": "FeatureCollection", | |
"features[0][0].type": "Feature", | |
"features[0][0].properties.response": "{\"address\":\"5125 Trillium Blvd\",\"category_ids\":[9],\"category_labels\":[[\"Automotive\",\"Maintenance and Repair\"]],\"country\":\"us\",\"factual_id\":\"20040056-f5f2-4cf2-ace9-1f51e98cd0c7\",\"hours\":{\"tuesday\":[[\"9:00\",\"17:00\"]],\"friday\":[[\"9:00\",\"17:00\"]],\"thursday\":[[\"9:00\",\"17:00\"]],\"wednesday\":[[\"9:00\",\"17:00\"]],\"monday\":[[\"9:00\",\"17:00\"]]},\"hours_display\":\"Mon-Fri 9:00 AM-5:00 PM\",\"latitude\":42.07869,\"locality\":\"Hoffman Estates\",\"longitude\":-88.209363,\"name\":\"I-Car\",\"postcode\":\"60192\",\"region\":\"IL\",\"tel\":\"(847) 590-1198\",\"website\":\"http://www.i-car.com/\"}", | |
"features[0][0].geometry.type": "Point", | |
"features[0][0].geometry.coordinates[0]": -88.209363, | |
"features[0][0].geometry.coordinates[1]": 42.07869, | |
"features[0][1].type": "Feature", | |
"features[0][1].properties.response": "{\"address\":\"5150 Prairie Stone Pkwy\",\"category_ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class Story(models.Model): | |
story_name = models.CharField(max_length=200) | |
story_description = models.TextField() | |
story_instructions = models.TextField() | |
class User(models.Model): | |
story_id = models.ForeignKey(Story) | |
user_name = models.CharField(max_length=200) | |
user_email = models.EmailField(max_length=254) | |
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
function style_map(feature) { | |
if (feature.properties['re_over_te'] >= 0.006980 && feature.properties['re_over_te'] <= 0.068916 ) { | |
return { | |
pane: 'states_data', | |
opacity: 1, | |
color: '#000000', | |
dashArray: '', | |
lineCap: 'butt', | |
lineJoin: 'miter', | |
weight: 1.0, |