<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Annotation/id",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instp/mapkit.Annotation/id"
  },
  "title" : "id"
}
-->

# id

The place ID that references a place or a map feature.

```
get id(): string | null;
```

## Discussion

This value is only available when you initialize an annotation with a [`Place`](/documentation/MapKitJS/Place), or when the annotation is a [`MapFeatureAnnotation`](/documentation/MapKitJS/MapFeatureAnnotation)that the framework creates when someone selects a map feature with a place ID available.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)