acteng / atip

Active Travel Infrastructure Platform
https://acteng.github.io/atip/
Apache License 2.0
22 stars 4 forks source link

Add a geocoder using MapTiler #366

Closed dabreegster closed 1 year ago

dabreegster commented 1 year ago

288

I started with maplibre-gl-geocoder and Nominatim API, following https://maplibre.org/maplibre-gl-js/docs/examples/geocoder/, but the plugin's UX was clunky and results from Nominatim are not great. Since we're using MapTiler for some basemaps anyway and already have an API key, I decided to try their plugin + API instead, and I think it works much more smoothly.

Try at https://acteng.github.io/atip/geocoder_maptiler/browse.html. It's still imperfect, but I think this is enough to start.

robinlovelace-ate commented 1 year ago

Works great. Takes me there!

image

Source (your URL isn't quite right above Dustin): https://acteng.github.io/atip/geocoder_maptiler/browse.html?style=dataviz#13.38/53.82764/-1.54093

robinlovelace-ate commented 1 year ago

I guess it would be easy to add this to other tools including sketch. Not that we should but could be handy in other tools at some point.