Maptiler Actor avatar

Maptiler Actor

Under maintenance

Pricing

$1.00 / 1,000 results

Go to Apify Store
Maptiler Actor

Maptiler Actor

Under maintenance

Pricing

$1.00 / 1,000 results

Rating

0.0

(0)

Developer

Nazarii Ovcharchyn

Nazarii Ovcharchyn

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 months ago

Last modified

Share

MapTiler Infrastructure Scraper

An Apify actor that scrapes MapTiler v4 tileset data and returns infrastructural features (roads, buildings, POIs, water features, etc.) for a given location. The actor fetches Protocol Buffer Format (PBF) tiles at zoom level 15 and parses vector tile data.

Features

  • Fetches PBF tiles from MapTiler API v4
  • Parses vector tile data to extract infrastructure features
  • Returns GeoJSON-compatible geometries with properties
  • Supports filtering by feature/layer types
  • Fixed zoom level 15 for detailed feature extraction

Input Parameters

  • latitude (required): Latitude of the location (-90 to 90)
  • longitude (required): Longitude of the location (-180 to 180)
  • feature_types (optional): Array of layer names to filter (e.g., ["transportation", "building"]). Leave empty to get all features.

Example Input

{
"latitude": 40.7128,
"longitude": -74.0060,
"feature_types": ["transportation", "building", "poi"]
}

Environment Variables

You must set the following environment variable in your Actor settings:

Output Format

Each feature is returned as a JSON object with:

{
"feature_id": "unique_id",
"layer": "transportation|building|water|poi|etc",
"type": "feature_type",
"geometry": {
"type": "Point|LineString|Polygon",
"coordinates": [[lon, lat], ...]
},
"properties": {
"name": "Feature name",
"class": "primary|secondary|etc",
"...": "other attributes from MapTiler schema"
},
"tile_source": "15/x/y"
}

How it works

  1. Converts lat/lon to tile coordinates at zoom level 15
  2. Fetches the PBF tile from MapTiler API
  3. Parses vector tile layers and features
  4. Converts tile coordinates to geographic coordinates
  5. Filters by requested feature types (if specified)
  6. Outputs formatted features to Apify dataset

Resources

Getting started

For complete information see this article. To run the Actor use the following command:

$apify run

Deploy to Apify

Connect Git repository to Apify

If you've created a Git repository for the project, you can easily connect to Apify:

  1. Go to Actor creation page
  2. Click on Link Git Repository button

Push project on your local machine to Apify

You can also deploy the project on your local machine to Apify without the need for the Git repository.

  1. Log in to Apify. You will need to provide your Apify API Token to complete this action.

    $apify login
  2. Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.

    $apify push

Documentation reference

To learn more about Apify and Actors, take a look at the following resources: