Skip to content

jakecoppinger/open-parking-map

 
 

Repository files navigation

Shows parking restrictions on streets in OpenStreetMap.

Live at OpenParkingMap.com

Originally built by zlant (GitHub) / acsd (OSM). I've added Australian parking signs, deployed to this website to attract more users and made other small changes, but it's really all their hard work.

Screenshot of Berlin

Screenshot of Sydney Central & Refern

See their original launch post on OSM, and their deployment of the viewer at https://zlant.github.io/parking-lanes/#16/52.4751/13.4435.

Updating the map

Click the Editor button in the bottom right. It will take some time to load the data using Overpass turbo.

Screenshot of Refern

Troubleshooting

If the map data isn't loading, either there is no data for your location or Overpass Turbo isn't returning any data.

If you're moving the map a lot you may get HTTP error 429 - Overpass Turbo has a low rate limit threshold. I've added a debounce function but it still crops up.

Open your browser console to look for errors. PRs welcome to surface these errors in the UI.

Using correct Node version

The correct Node version is specified in .nvmrc.

For an easy way to automatically use this Node version just for your current shell:

Local Development

  • Install dependencies: npm i
  • Run npm run prepare. This will install Husky, which will automatically run the command in .husky/pre-commit before commiting. This prevents commits that fail typecheck or the linter being committed (you can always add a type or linter ignore though).
  • Start Webpack dev server: npm run start

Geolocation won't work over http. ngrok can start an HTTPS tunnel to your localhost with the following command:

ngrok http --host-header=rewrite 33444

Install git hook

Run npm run prepare. This will install Husky, which will automatically run the command in .husky/pre-commit before commiting.

This prevents commits that fail typecheck or the linter being committed (you can always add a type or linter ignore though).

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.0%
  • JavaScript 3.8%
  • SCSS 3.1%
  • Other 1.1%