xxxxxxxxxx
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<script>
https://github.com/manuelbieh/Geolib
///geolib.getSpeed(coords, coords[, options])
///geolib.getRhumbLineBearing(object originLL, object destLL)
var data = [ {
"ems_personnel" : "0",
"fire_fatalities" : "0",
"incident_date" : "2004-02-13T00:00:00",
"action_taken_primary" : "86 - investigate",
"suppression_personnel" : "9",
"incident_number" : "04012483",
"battalion" : "B01",
"supervisor_district" : "3",
"call_number" : "040440358",
"detector_alerted_occupants" : "-",
"arrival_dttm" : "2004-02-13T20:16:09",
"fire_injuries" : "0",
"station_area" : "28",
"zipcode" : "94133",
"action_taken_other" : "-",
"civilian_injuries" : "0",
"neighborhood_district" : "Chinatown",
"alarm_dttm" : "2004-02-13T20:14:32",
"city" : "SF",
"first_unit_on_scene" : "E28",
"exposure_number" : "0",
"estimated_contents_loss" : "0",
"other_personnel" : "0",
"other_units" : "0",
"mutual_aid" : "none",
"property_use" : "uuu - undetermined",
"address" : "Columbus Av. / Union St.",
"estimated_property_loss" : "0",
"close_dttm" : "2004-02-13T20:16:31",
"suppression_units" : "2",
"primary_situation" : "711 - municipal alarm system, street box false",
"action_taken_secondary" : "-",
"ems_units" : "0",
"location" : {
"latitude" : "37.8003150000297",
"human_address" : "{\"address\":\"\",\"city\":\"\",\"state\":\"\",\"zip\":\"\"}",
"needs_recoding" : false,
"longitude" : "-122.410208"
},
"civilian_fatalities" : "0"
}
]
var fire_station= [37.7975975,-122.4114283]
</script>
</body>
https://d3js.org/d3.v4.min.js