Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsanz/ruta99
A minmalistic viewer of Ruta99 points
https://github.com/jsanz/ruta99
maplibre-gl-js maps
Last synced: 6 days ago
JSON representation
A minmalistic viewer of Ruta99 points
- Host: GitHub
- URL: https://github.com/jsanz/ruta99
- Owner: jsanz
- Created: 2022-01-19T10:28:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-19T17:59:21.000Z (almost 3 years ago)
- Last Synced: 2024-11-13T02:36:16.593Z (2 months ago)
- Topics: maplibre-gl-js, maps
- Language: JavaScript
- Homepage: https://ruta99-map.jorgesanz.net/
- Size: 213 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruta 99 viewer
This is a minimal website to render [ruta 99]() points.
## Build and deploy
This site uses [parcel](https://parceljs.org/) for building and development. Just run `yarn install` to download dependencies and then:
* `yarn build` will generate all assets in the `dist` folder for static serving
* `yarn start` will start a development server with hot loadingDeployment at is handled by [Netlify](https://netlify.com).
[![Netlify Status](https://api.netlify.com/api/v1/badges/8c6f826f-1b20-4b34-a939-16e1914d87aa/deploy-status)](https://app.netlify.com/sites/ruta99-map/deploys)
## Get the GeoJSON with the coordinates
Use this command with `jq` to generate the `src/assets/puntos.geo.json` file
```bash
curl 'https://visorruta99.tragsa.es/capas.aspx?idCapa=MunicipiosC' |
jq -c '{"type": "FeatureCollection", "features": [ .[] | { "geometry": { "type": "Point", "coordinates": [ .coordx, .coordy ] }, "properties": { "ine": .codigoine, "name": .nombre } } ]}' \
>> src/assets/js/puntos.geo.json```