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
#Autors : E.DELAY (GEOLAB, université de Limoges (FR))and F.Zottele (Fondazion E.Mach (IT)) | |
#Script merge data from twitteR script and map it with hexagon cell for couned twittes | |
rm(list=ls()) | |
setwd("~/git/datablogvinometro/twitteR/data/csv/") | |
# dataToMap<-read.csv("dataToMap.csv", head=T) |
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
reqURL = "https://api.twitter.com/oauth/request_token" | |
accessURL = "http://api.twitter.com/oauth/access_token" | |
authURL = "http://api.twitter.com/oauth/authorize" | |
consumerKey = "nP9JdRBlToVZ4xXrNeUbw" | |
consumerSecret = "KsK7qsu13cEUXhlpUSSo4UGHsoSTuBvwVPqzKAb6DqU" | |
library(twitteR) | |
twitCred = OAuthFactory$new(consumerKey=consumerKey,consumerSecret=consumerSecret,requestURL=reqURL,accessURL=accessURL,authURL=authURL) | |
twitCred$handshake() | |
save(twitCred, file="../cred.RData") |
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
#Autors F.Zottele (Fondazion E.Mach (IT)) and E.DELAY (GEOLAB, université de Limoges (FR)) | |
#Script for download 45 twittes with twitter API for dev | |
rm(list=ls()) | |
setwd("~/git/datablogvinometro/twitteR/data/") | |
library(twitteR) | |
library(lubridate) |
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
// the location we want to GeoCode | |
var location = 'London'; | |
// we are using MapQuest's Nominatim service | |
var geocode = 'http://open.mapquestapi.com/search?format=json&q=' + location; | |
// use jQuery to call the API and get the JSON results | |
$.getJSON(geocode, function(data) { | |
// get lat + lon from first match | |
var latlng = [data[0].lat, data[0].lon]] |
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
<!doctype html> | |
<html> | |
<!-- | |
Created using jsbin.com | |
Source can be edited via http://jsbin.com/UYulAVI/1/edit | |
--> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> |
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
{ | |
"type": "FeatureCollection", | |
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, | |
"features": [ | |
{ "type": "Feature", "properties": { "@id": "way\/23282858", "highway": "secondary", "name": "RR22", "Etat": "BAD" }, "geometry": { "type": "LineString", "coordinates": [ [ 21.5224082, 5.2757876 ], [ 21.5219454, 5.2760241 ], [ 21.5214765, 5.2762364 ], [ 21.5207274, 5.2765154 ], [ 21.5184314, 5.2772734 ], [ 21.5177919, 5.2778131 ], [ 21.5170246, 5.2784377 ], [ 21.5164338, 5.2787773 ], [ 21.5158065, 5.279026 ], [ 21.5151488, 5.2792261 ], [ 21.5145581, 5.2793535 ], [ 21.5140891, 5.2793171 ], [ 21.5129685, 5.2791109 ], [ 21.512256, 5.2788926 ], [ 21.5114582, 5.2786864 ], [ 21.5106726, 5.2784984 ], [ 21.5100696, 5.2782558 ], [ 21.5089612, 5.2774129 ], [ 21.507942, 5.2766516 ], [ 21.5076192, 5.2763848 ], [ 21.507132, 5.2760149 ], [ 21.5068884, 5.27593 ], [ 21.5064679, 5.2758229 ], [ 21.5054343, 5.2751883 ], |
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
.header{ | |
position: absolute; | |
height:50px; | |
width:100%; | |
top:0px; | |
left:0px; | |
background:#404853; | |
} | |
.title{ | |
color:white; |
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
tje5teessxrhsdhrdsgsdrgdrgd |
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 xmlns="http://www.w3.org/1999/xhtml"><head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
</head> | |
<style type="text/css"> | |
body { margin: 0px; padding: 0px } | |
#map { width: 100%; height: 100%; border: 0px; } | |
div#keys { position: absolute; z-index:100; margin-left: 100px; } | |
#legend { display: none } | |
div#keys span:hover + div#legend, #legend:hover { display: block } |