A few weeks ago, I was working on a demo where I drew geofences around brick and mortar stores. When my user is near this geofence, they get a notification about the offers in the store. Sounds cool doesn’t it? Step 1 of this demo is to create a geofence in the WKT format. Normally a geofence is created by manually drawing polygons around a place and extracting them as WKTs. I was looking for a better method to automate this. This is when I came across Geopandas. Geopandas is a Python library that works specifically with geospatial data. Couple this with the Buildings HERE Data Layer and you can get geofences for different buildings in a city within minutes.