This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mercantile, mapbox_vector_tile, requests, json | |
from vt2geojson.tools import vt_bytes_to_geojson | |
# define an empty geojson as output | |
output= { "type": "FeatureCollection", "features": [] } | |
# vector tile endpoints -- change this in the API request to reference the correct endpoint | |
tile_points = 'mly_map_feature_point' | |
tile_traffic_signs = 'mly_map_feature_traffic_sign' | |
tile_coverage = 'mly1_public' |