
Public
Like
polygonParser
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v22View latest version
This app parses government-related location data from eCFR §202.1401 and converts it to polygons for download as GeoJSON or Shapefile. It features a modern web UI with map preview and supports both URL scraping and pasted tabular data.
- URL Scraping: Paste eCFR URLs to automatically extract coordinate data
- Direct Input: Paste raw tabular coordinate data directly
- Interactive Map: Preview polygons on a Leaflet map with zoom and pan
- Multiple Export Formats: Download as GeoJSON or Shapefile
- Data Inspection: Collapsible GeoJSON text view for inspection
- Modern UI: Clean, responsive interface with TailwindCSS
- Input Data: Either paste an eCFR URL or raw coordinate data
- Parse: Click "Parse Data" to extract polygons
- Preview: View polygons on the interactive map
- Download: Export as GeoJSON or Shapefile format
- Example:
https://www.ecfr.gov/api/renderer/v1/content/enhanced/2025-09-10/title-28?chapter=I&part=202&subpart=N§ion=202.1401
- Area ID followed by coordinate pairs
- Tab-separated format with area ID and coordinate pairs
- Supports various coordinate formats (lat,lon or lon,lat)
- Backend: Hono.js API framework
- Frontend: React with TypeScript
- Mapping: Leaflet.js
- Styling: TailwindCSS
- Storage: Val Town SQLite for caching