{"id":15006450,"url":"https://github.com/maptiler/maptiler-geocoding-control","last_synced_at":"2026-06-15T08:01:23.042Z","repository":{"id":63042021,"uuid":"543616218","full_name":"maptiler/maptiler-geocoding-control","owner":"maptiler","description":"The Javascript \u0026 TypeScript Map Control component for MapTiler Geocoding service! Easy to be integrated into any JavaScript mapping application. ","archived":false,"fork":false,"pushed_at":"2026-06-14T06:02:43.000Z","size":1349,"stargazers_count":78,"open_issues_count":6,"forks_count":8,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-06-14T08:04:24.063Z","etag":null,"topics":["esm","geocoding","geocoding-api","javascript","leaflet","leaflet-plugin","leaflet-plugins","leafletjs","maplibre","maplibre-gl-js","maplibre-plugins","maptiler","maptiler-sdk-plugin","openlayers","openlayers-plugins","react","reactjs","svelte","umd"],"latest_commit_sha":null,"homepage":"https://maptiler.com/cloud/geocoding","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maptiler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-30T13:33:25.000Z","updated_at":"2026-06-13T03:54:30.000Z","dependencies_parsed_at":"2023-10-12T20:02:59.175Z","dependency_job_id":"3d5cd779-f3b5-4a7e-b905-b77afa46dc19","html_url":"https://github.com/maptiler/maptiler-geocoding-control","commit_stats":{"total_commits":217,"total_committers":4,"mean_commits":54.25,"dds":0.04608294930875578,"last_synced_commit":"274273122b8c3d0cd5992cf5182cb3eb62de17cb"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/maptiler/maptiler-geocoding-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptiler%2Fmaptiler-geocoding-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptiler%2Fmaptiler-geocoding-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptiler%2Fmaptiler-geocoding-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptiler%2Fmaptiler-geocoding-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maptiler","download_url":"https://codeload.github.com/maptiler/maptiler-geocoding-control/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maptiler%2Fmaptiler-geocoding-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34353193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esm","geocoding","geocoding-api","javascript","leaflet","leaflet-plugin","leaflet-plugins","leafletjs","maplibre","maplibre-gl-js","maplibre-plugins","maptiler","maptiler-sdk-plugin","openlayers","openlayers-plugins","react","reactjs","svelte","umd"],"created_at":"2024-09-24T19:01:53.891Z","updated_at":"2026-06-15T08:01:23.030Z","avatar_url":"https://github.com/maptiler.png","language":"TypeScript","funding_links":[],"categories":["Geocoding \u0026 Search Plugins"],"sub_categories":["JavaScript"],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/maptiler/maptiler-sdk-kotlin/main/Examples/maptiler-logo.png\" alt=\"Company Logo\" height=\"32\"/\u003e\n\n# MapTiler Search and Geocoding control for MapTiler SDK, MapLibre GL JS, Leaflet and OpenLayers\n\nThe Javascript \u0026 TypeScript Map Control component for \u003ca href=\"https://www.maptiler.com/cloud/geocoding\"\u003eMapTiler Geocoding\u003c/a\u003e service! Easy to be integrated into any JavaScript mapping application.\n\nThe _MapTiler Geocoding control_ implements a powerful search box in your maps or online forms, enabling your application users to find any place on Earth down to individual addresses. Use the search box control with [MapTiler SDK JS](https://docs.maptiler.com/sdk-js/) (or other map libraries like [Leaflet](https://docs.maptiler.com/leaflet/), [MapLibre GL JS](https://github.com/maplibre/maplibre-gl-js), [OpenLayers](https://docs.maptiler.com/openlayers/)).\n\n[![](https://img.shields.io/npm/v/@maptiler/geocoding-control?style=for-the-badge\u0026labelColor=D3DBEC\u0026color=f2f6ff\u0026logo=npm\u0026logoColor=333359)](https://www.npmjs.com/package/@maptiler/geocoding-control)\n![](https://img.shields.io/badge/-white?style=for-the-badge\u0026logo=javascript)![](https://img.shields.io/badge/-white?style=for-the-badge\u0026logo=typescript)![](https://img.shields.io/badge/-white?style=for-the-badge\u0026logo=react\u0026logoColor=61dafb)![](https://img.shields.io/badge/-white?style=for-the-badge\u0026logo=svelte\u0026logoColor=FF3E00)\n\n---\n\n📖 [Documentation](https://docs.maptiler.com/sdk-js/modules/geocoding/) \u0026nbsp; 📦 [NPM Package](https://www.npmjs.com/package/@maptiler/geocoding-control) \u0026nbsp; 🌐 [Website](https://www.maptiler.com/search/) \u0026nbsp; 🔑 [Get API Key](https://cloud.maptiler.com/account/keys/)\n\n---\n\n\u003cbr\u003e\n\n\u003cdetails\u003e \u003csummary\u003e\u003cb\u003eTable of Contents\u003c/b\u003e\u003c/summary\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#-installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#-basic-usage\"\u003eBasic Usage\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#-related-examples\"\u003eExamples\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#-api-reference\"\u003eAPI Reference\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#migration-guide\"\u003eMigration Guide\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#-support\"\u003eSupport\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#-contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#-license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#-acknowledgements\"\u003eAcknowledgements\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/details\u003e\n\n\u003cp align=\"center\"\u003e   \u003cimg src=\"https://www.metalocator.com/wp-content/uploads/2022/07/maptiler-cloud-jp.jpg\" alt=\"Demo Screenshot\" width=\"80%\"/\u003e  \u003cbr /\u003e  \u003ca href=\"#\"\u003eSee live interactive demo\u003c/a\u003e \u003c/p\u003e\n\u003cbr\u003e\n\n## 📦 Installation\n\nInstall the Geocoding control unsing `npm`, together with your map library (MapTiler SDK as an example):\n\n```shell\nnpm install --save @maptiler/geocoding-control @maptiler/sdk\n```\n\n\u003cbr\u003e\n\n## 🚀 Basic Usage\n\nUse the component in your mapping application (MapTiler SDK as an example):\n\n```js\nimport * as maptilersdk from \"@maptiler/sdk\";\nimport { GeocodingControl } from \"@maptiler/geocoding-control/maptilersdk\";\nimport \"@maptiler/sdk/dist/maptiler-sdk.css\";\n\nmaptilersdk.config.apiKey = \"YOUR_MAPTILER_API_KEY_HERE\";\n\nconst map = new maptilersdk.Map({\n  container: \"map\", // id of HTML container element\n});\n\nconst gc = new GeocodingControl();\n\nmap.addControl(gc);\n```\n\n\u003cbr\u003e\n\n## 💡 Related Examples\n\n- [With MapTiler SDK](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/sdk-js/)\n- [With MapLibre GL](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/maplibre-gl-js/)\n- [With Leaflet](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/leaflet/)\n- [With OpenLayers](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/openlayers/)\n- [As a React component](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/react/)\n- [As Svelte component](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/svelte/)\n- [As vanilla JavaScript module](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/vanilla-js/)\n\nCheck out the full list of [MapTiler geocoding examples](https://docs.maptiler.com/sdk-js/examples/?q=geocoding)\n\n\u003cbr\u003e\n\n## 📘 API Reference\n\nFor detailed guides, API reference, and advanced examples, visit our comprehensive documentation:\n\n[API documentation](https://docs.maptiler.com/sdk-js/modules/geocoding/api/api-reference/)\n\n[Geocoding service API documentation](https://docs.maptiler.com/cloud/api/geocoding/)\n\n[UMD global variables](https://docs.maptiler.com/sdk-js/modules/geocoding/#umd-global-variables)\n\n\u003cbr\u003e\n\n## 💬 Support\n\n- 📚 [Documentation](https://docs.maptiler.com/sdk-js/modules/geocoding/) - Comprehensive guides and API reference\n- ✉️ [Contact us](https://maptiler.com/contact) - Get in touch or submit a request\n- 🐦 [Twitter/X](https://twitter.com/maptiler) - Follow us for updates\n\n\u003cbr\u003e\n\n---\n\n\u003cbr\u003e\n\n## 🤝 Contributing\n\nWe love contributions from the community! Whether it's bug reports, feature requests, or pull requests, all contributions are welcome:\n\n- Fork the repository and create your branch from `main`\n- If you've added code, add tests that cover your changes\n- Ensure your code follows our style guidelines\n- Give your pull request a clear, descriptive summary\n- Open a Pull Request with a comprehensive description\n- Read the [CONTRIBUTING](./CONTRIBUTING.md) file\n\n### Development\n\n#### Building\n\n```bash\nnpm install \u0026\u0026 npm run build\n```\n\nYou will find compilation result in the `dist` directory.\n\n#### Running in dev mode\n\n```bash\nnpm install \u0026\u0026 VITE_API_KEY=YOUR_MAPTILER_API_KEY_HERE npm run dev\n```\n\nAlternatively, you can provide your API key via `key` URL param.\n\n### POI icons and bundlers\n\nPOI icons are served from CDN per default. If there is an requirement to serve them from a different location and the control is used in the application which is built with Web Application bundler (like Webpack or Vite) then it is necessary to do some extra configuration. Icons are bundled in the library and you can find them in `node_modules/@maptiler/geocoding-control/icons`. Configure your bundler and/or provide `iconsBaseUrl` option for the icons to be properly resolved. You can also copy icons from that directory to your `public` directory.\n\n\u003cbr\u003e\n\n## 📄 License\n\nThis project is licensed under the BSD 3-Clause License – see the [LICENSE](./LICENSE) file for details.\n\n\u003cbr\u003e\n\n## 🙏 Acknowledgements\n\nThe _Geocoding control_ uses the [MapTiler Geocoding API](https://www.maptiler.com/cloud/geocoding/). You can use the API directly from your web or backend applications or use the [API Client JS](https://docs.maptiler.com/client-js/) library.\n\nWith this control, users of mapping application can:\n\n- Find any place on Earth (States, Cities, Streets, Addresses, POIs, ...) down to the address level\n- Find and identify objects or place names using a coordinate pair or a single mouse click (reverse geocoding)\n- Restrict the search area to a specific country, bounding box, or proximity\n- Highlight searched results on the map (marker or full geometry)\n- Autocomplete words while typing\n- and much more. Check out the [Geocoding Control API reference](https://docs.maptiler.com/sdk-js/modules/geocoding/api/api-reference/#options) to see all the options.\n\nThe component can be used as an ES module or UMD module with or without bundler.\n\nGeocoding control itself is provided as a [Web component](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) which can be used with [React](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/react/), [Svelte](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/svelte/), and any other modern frontend library, or without any library at all.\n\n\u003cbr\u003e\n\n\u003cp align=\"center\" style=\"margin-top:20px;margin-bottom:20px;\"\u003e \u003ca href=\"https://cloud.maptiler.com/account/keys/\" style=\"display:inline-block;padding:12px 32px;background:#F2F6FF;color:#000;font-weight:bold;border-radius:6px;text-decoration:none;\"\u003e Get Your API Key \u003csup style=\"background-color:#0000ff;color:#fff;padding:2px 6px;font-size:12px;border-radius:3px;\"\u003eFREE\u003c/sup\u003e\u003cbr /\u003e \u003cspan style=\"font-size:90%;font-weight:400;\"\u003eStart building with 100,000 free map loads per month ・ No credit card required.\u003c/span\u003e \u003c/a\u003e \u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e 💜 Made with love by the \u003ca href=\"https://www.maptiler.com/\"\u003eMapTiler\u003c/a\u003e team \u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.maptiler.com/search/\"\u003eWebsite\u003c/a\u003e •\n  \u003ca href=\"https://docs.maptiler.com/sdk-js/modules/geocoding/\"\u003eDocumentation\u003c/a\u003e •\n  \u003ca href=\"https://github.com/maptiler/maptiler-geocoding-control\"\u003eGitHub\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaptiler%2Fmaptiler-geocoding-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaptiler%2Fmaptiler-geocoding-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaptiler%2Fmaptiler-geocoding-control/lists"}