Try it live
API playground
The same autocomplete widget your customers will embed. Type a Bangladeshi address — Banglish, Bangla script, or a landmark phrase. Watch the bdnlp metadata in the side panel.
Embed this on your site
Vanilla JS, no framework dependency. Works in any HTML page.
<input id="addr" />
<link rel="stylesheet" href="https://api.map.bd/widget/map-autocomplete.css">
<script src="https://api.map.bd/widget/map-autocomplete.js"></script>
<script>
MapAutocomplete.attach('#addr', {
apiKey: 'map_live_xxxxxxxx',
baseURL: 'https://api.map.bd',
onSelect: (r) => {
console.log(r.display_name, r.lat, r.lon);
}
});
</script>Free tier 25,000 autocomplete sessions/month. See pricing →