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 map, directionsrenderer1, directionsrenderer2, directionsRenderer3; // introduce the map variable first, otherwise it only shows up inside the initialize() function and is unknown outside of it. | |
// funcion that creates the map | |
function initialize() { | |
// this code here are the functions that make the directions api work | |
var directionsRenderer1 = new google.maps.DirectionsRenderer(); | |
var directionsRenderer2 = new google.maps.DirectionsRenderer(); | |
var directionsRenderer3 = new google.maps.DirectionsRenderer(); | |
var directionsService = new google.maps.DirectionsService(); | |
map = new google.maps.Map(document.getElementById("map"), { |
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
function calculateAndDisplayRoute1(directionsService, directionsRenderer1) { | |
var mode = document.getElementById("mode").value; | |
var start = document.getElementById("ac1").value; | |
var end = document.getElementById("ac4").value; | |
directionsService.route({ | |
origin: start, | |
destination: end, | |
travelMode: google.maps.TravelMode[mode] | |
}, |
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 map; // introduce the map variable first, otherwise it only shows up inside the initialize() function and is unknown outside of it. | |
// funcion that creates the map | |
function initialize() { | |
// this code here are the functions that make the directions api work | |
var directionsRenderer = new google.maps.DirectionsRenderer(); | |
var directionsService = new google.maps.DirectionsService(); | |
map = new google.maps.Map(document.getElementById("map"), { | |
zoom: 1, | |
center: { lat: 122.15674, lng: 10.21076 } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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
voronoipolygons = function(layer) { | |
require(deldir) | |
crds = layer@coords | |
z = deldir(crds[,1], crds[,2]) | |
w = tile.list(z) | |
polys = vector(mode='list', length=length(w)) | |
require(sp) | |
for (i in seq(along=polys)) { | |
pcrds = cbind(w[[i]]$x, w[[i]]$y) | |
pcrds = rbind(pcrds, pcrds[1,]) |
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
<html> | |
<head> | |
<title>A D3 chart</title> | |
<script src="http://d3js.org/d3.v6.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script> |
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
DROP FUNCTION IF EXISTS carsten_upsert_pois(int[], text[]); | |
-- Returns a set of op,cartodb_id values where op means: | |
-- | |
-- deleted: -1 | |
-- updated: 0 | |
-- inserted: 1 | |
-- | |
CREATE OR REPLACE FUNCTION carsten_upsert_pois( | |
cartodb_ids integer[], |
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
<?xml version='1.0' encoding='utf-8'?> | |
<tomcat-users xmlns="http://tomcat.apache.org/xml" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" | |
version="1.0"> | |
<user username="endpoint" password="endpoint" roles="manager"/> | |
</tomcat-users> |
This file has been truncated, but you can view the full file.
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
{ | |
"features": [ | |
{ | |
"type": "Feature", | |
"properties": { | |
"phenomenons": { | |
"Engine Load": { | |
"value": 25.490196228027344 | |
}, | |
"GPS PDOP": { |
NewerOlder