Glossary · Technical · Last updated October 31, 2026
KML file
A KML file is an XML file that stores map shapes, points and lines, used by Google Earth and GIS tools to share areas like sales territories.
Also called: Keyhole Markup Language, KMZ file.
KML (Keyhole Markup Language) is an XML format for geographic data. It was developed for Google Earth and is now a standard of the Open Geospatial Consortium. A KMZ file is the same thing zipped.
A KML file can hold placemarks (points), paths and polygons, with coordinates as longitude, latitude pairs. For lead generation, the polygon is what matters: it lets you move an exact territory from one tool to another instead of redrawing it.
Common sources are Google Earth, Google My Maps, GIS software such as QGIS, and public datasets of boundaries like zip codes, counties or school districts. Franchise and field sales teams often already have their territories as KML.
Watch for very detailed shapes with tens of thousands of points, files with several polygons where you only want one, and coordinates in the wrong order. Simplify the shape if a tool struggles with it, and check it on a map after import so a stray point doesn't stretch your territory into the next county.
Example
A franchise exports each franchisee's territory from Google My Maps as KML, uploads them one by one, and builds a separate lead list of salons inside each territory.
In Leadraft
You can upload a KML file to define a search area, alongside drawn polygons, radius circles and named places.
Sources
Related terms
- Polygon searchA polygon search finds businesses inside a shape you draw on a map, instead of a city name or a radius, so the results match your exact territory.
- Grid searchGrid search (tiling) splits an area into small tiles and searches each one, to get past the result limits of a single Google Maps search.
- Local lead generationLocal lead generation is finding and contacting businesses in a specific place, such as every dentist in a county, usually starting from Google Maps.
Further reading
Every business on the map. Every email that works.
500 businesses and 50 checked emails a month, free. No card.
Start free