Skip to content
GuidesPlaygroundDashboard

Get a Mapbox Vector Tile

tiles().get(TileGetParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : HttpResponse
GET/api/v1/tiles/{z}/{x}/{y}

Get a Mapbox Vector Tile

ParametersExpand Collapse
params: TileGetParams
z: Long
x: Long
y: Optional<Long>

Get a Mapbox Vector Tile

package com.plazafyi.example

import com.plazafyi.client.PlazaClient
import com.plazafyi.client.okhttp.PlazaOkHttpClient
import com.plazafyi.core.http.HttpResponse
import com.plazafyi.models.tiles.TileGetParams

fun main() {
    val client: PlazaClient = PlazaOkHttpClient.fromEnv()

    val params: TileGetParams = TileGetParams.builder()
        .z(0L)
        .x(0L)
        .y(0L)
        .build()
    val tile: HttpResponse = client.tiles().get(params)
}
Returns Examples