hydrocode-de / integra-frontend

React frontend for INTEGRA
0 stars 1 forks source link

Geocoding or Search Box? #126

Closed mmaelicke closed 1 month ago

mmaelicke commented 2 months ago

By quickly scanning the Mapbox docs, I found the new Search Box API which bills a sessions, that is a consecutive call to the /suggest API until the user selects a location from the autocomplete list. We have 500 sessions per month, which does not feel that much: https://docs.mapbox.com/api/search/search-box/#search-box-api-pricing

Using the classic Geocoder, we would be billed by the same API, but single request for each keystroke. 50.000 requests would make 100 keystrokes per session, which seems more. But we would need to implement the autocomplete our selves.

@JesJehle which of the two components did you use?