<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKTileOverlay/url(forTilePath:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKTileOverlay(im)URLForTilePath:"
  },
  "title" : "url(forTilePath:)"
}
-->

# url(forTilePath:)

Returns the URL to use to access the specified tile.

```
func url(forTilePath path: MKTileOverlayPath) -> URL
```

## Parameters

`path`

The path structure that identifies the specific tile you want. This structure incorporates the tile’s x-y coordinate at a given zoom level and scale factor.

## Return Value

The URL to use to retrieve the tile.

## Discussion

The default implementation of this method uses the template string you provide at initialization time to build a URL to the specified tile image. Subclasses can override this method and use a different scheme to provide URLs for tiles. You can locate the tiles either on a local file system or on a remote server.

## See Also

[`-  initWithURLTemplate:`](/documentation/MapKit/MKTileOverlay/init(urlTemplate:)-9s8h7)

Creates and returns a tile overlay object using the specified tile-access template.



---

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)