|
fetch(`https://epsg.io/?format=json&q=${toAsk}`) |
HI, EPSG.io API endpoints will be deprecated after the 1st of February 2025: https://epsg.io/docs#migration
This will affect the functionality of your findProjection helper
You can easily replace the call with a new endpoint from MapTiler. However the new endpoint requires MapTiler API key. You would need to adjust the code to allow to pass the API key. You can get a key with a Free plan for up to 100K requests monthly.
More extensive documentation: https://documentation.maptiler.com/hc/en-us/articles/360020950098-How-to-migrate-from-EPSG-io-to-MapTiler-Coordinates-API