Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
prepared for GTFS update
Browse files Browse the repository at this point in the history
  • Loading branch information
fnogatz committed Feb 23, 2013
1 parent b5e60db commit bd9a287
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules
gtfs/ulm
4 changes: 2 additions & 2 deletions lib/map-data-generator/map-data-generator.js
Expand Up @@ -71,8 +71,8 @@ module.exports = (function(){
// transform all stops to GeoJSON
var stops = gtfs.getStops();
for (var i in stops) {
var point = {};
point.type = "Feature";
var point = {};
point.type = "Feature";
point.geometry = {};
point.geometry.type = "Point";
point.geometry.coordinates = [stops[i].stop_lon,stops[i].stop_lat];
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"author": "ulmapi <datalove@lists.uni-ulm.de>",
"name": "ulmapi-de",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "http://ulmapi.de",
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions public/js/livemap.js
Expand Up @@ -99,8 +99,7 @@ $(document).ready(function(){
success: function(data) {

L.geoJson(data, {
pointToLayer: function(f, latlng) { return new L.Marker(latlng, {icon : hIcon}); }

pointToLayer: function(f, latlng) { return new L.Marker(latlng, {icon : hIcon }).bindPopup('<b>'+f.properties.stop_name+'</b><br>'+f.properties.stop_longname); }
}).addTo(map);
}
});
Expand Down
6 changes: 1 addition & 5 deletions server.js
Expand Up @@ -94,8 +94,4 @@ var gtfs = Gtfs(process.env.GTFS_PATH || path.join(__dirname,"gtfs",gtfsdir), fu
});


});




});
2 changes: 1 addition & 1 deletion views/layout.html
Expand Up @@ -56,4 +56,4 @@ <h3>It's late night around here!</h3>


</body>
</html>
</html>

0 comments on commit bd9a287

Please sign in to comment.