npm
@klltech/baato-js-clientRunnable examples
Complete HTML pages using the bundle.
Installation
Baato object — no build step required. That is what the
HTML examples use.
Usage
Every service follows the same shape: construct, chain setters, calldoRequest(), get a
promise back.
Search — place suggestions
Search — place suggestions
placeId to Baato.Places() to
get them. See the two-step search flow.Places — full detail for a place ID
Places — full detail for a place ID
Reverse Search — coordinates to an address
Reverse Search — coordinates to an address
Routing — directions between points
Routing — directions between points
Converting results to GeoJSON
Baato.Util() turns a search response into a GeoJSON FeatureCollection:
Next
Display a map
A complete page with MapLibre and Mapbox GL.
Autocomplete
A working search box wired to the client.