Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/2m/citywasp-locations


https://github.com/2m/citywasp-locations

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

Location list for CityWasp parking spots.

List can be generated by running the following script in the DOM:

```js
var features = opts.zoneslocations.concat().sort(function(a, b) { return a.id - b.id }).map(zone => {
return {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [zone.lon, zone.lat]
},
"properties": {
"id": zone.id,
"name": zone.name,
"address": zone.address
}
};
})
var collection = {
"type": "FeatureCollection",
"features": features
}
console.log(JSON.stringify(collection, null, 2))
```