Google Earth Keyhole Placemark file
application/octet-stream
Magic Bytes
Offset: 0
23 21 41 4D 52
The Google Earth Keyhole Placemark (ETA) file is a legacy geospatial data format originally developed by Keyhole, Inc., which was later acquired by Google. It serves as a container for storing location markers, route coordinates, and viewing parameters within early versions of virtual globe applications. This proprietary standard has been superseded by the XML-based Keyhole Markup Language (KML) and is considered obsolete in contemporary geographic information system workflows.
Validation Code
How to validate .eta files in Python
Python
def is_eta(file_path: str) -> bool:
"""Check if file is a valid ETA by magic bytes."""
signature = bytes([0x23, 0x21, 0x41, 0x4D, 0x52])
with open(file_path, "rb") as f:
return f.read(5) == signature
How to validate .eta files in Node.js
Node.js
function isETA(buffer: Buffer): boolean {
const signature = Buffer.from([0x23, 0x21, 0x41, 0x4D, 0x52]);
return buffer.subarray(0, 5).equals(signature);
}
Go
func IsETA(data []byte) bool {
signature := []byte{0x23, 0x21, 0x41, 0x4D, 0x52}
if len(data) < 5 {
return false
}
return bytes.Equal(data[:5], signature)
}
API Endpoint
GET
/api/v1/eta
curl https://filesignature.org/api/v1/eta