This file contains 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
<?php | |
// Programmatically create taxonomy terms for taxonomy module on install. | |
// This is the bar.install file included in a module. | |
use Drupal\taxonomy\Entity\Term; | |
use Symfony\Component\Yaml\Yaml; | |
function foo_taxonomy_install() { | |
$vocabularies = [ |
This file contains 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
var geojson = {}; | |
geojson['type'] = 'FeatureCollection'; | |
geojson['features'] = []; | |
for (var k in data) { | |
var newFeature = { | |
"type": "Feature", | |
"geometry": { | |
"type": "Point", | |
"coordinates": parseFloat(data[k].lng), parseFloat(data[k].lon)] |