---
# System prepended metadata

title: pharmacies to vector tiles

---

# pharmacies to vector tiles
I created a simple script to convert `pharmacies` GeoJSON to vector tiles.

# source
https://github.com/kiang/pharmacies/blob/master/json/points.json
This file looks automatically updated. This is nice. 

# tool
https://github.com/hfu/pharmacies-tippecanoe

The main part is this, written in the `Rakefile`.

```zsh
curl https://raw.githubusercontent.com/kiang/pharmacies/master/json/points.json | tippecanoe -o pharmacies.mbtiles
```

# result
![](https://i.imgur.com/j013bif.jpg)

The result is `pharmacies.mbtiles`. Just for testing purpose, I also uploaded it [here](https://api.mapbox.com/styles/v1/hfu/ck6eam7w90rz31in3qzi0spcp.html?fresh=true&title=view&access_token=pk.eyJ1IjoiaGZ1IiwiYSI6ImlRSGJVUTAifQ.rTx380smyvPc1gUfZv1cmw).