Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 2.27 KB

README.md

File metadata and controls

49 lines (34 loc) · 2.27 KB

Static resources and short links (ge0) decoder for Organic Maps

Root domain redirects to https://organicmaps.app/.

URLs like http(s)://omaps.app/ENCODEDCOORDINATES/PINNAME are decoded to lat, lon and zoom level. Then the OSM map is displayed and url schemes are opened on mobile apps.

Add some query parameters to test:

Deploy master to Production

Requirements

Install CloudFlare's wrangler and other dev dependencies using npm:

npm i

Development

Use npx wrangler dev for localhost development.

Deployment

All pushes to master automatically deploy dev version to https://url-processor.omaps.workers.dev/

Deploy to prod manually using npx wrangler publish --env omaps or this action.

Known issues

  • Hidden directories and symlinks in worker site assets are ignored by wrangler.
  • Cloudflare's free Flexible SSL certificates does not support 4-th level subdomains like a.b.example.com, so you can see strange SSL errors.
  • HTTPS fetch requests from Workers are converted to HTTP ones if the target host is in the same Cloudflare zone, see here for more details.