Managing your geofences is made simple via the Developer Console. If you’re interested in managing them programmatically, check out our [Geofences API](https://docs.foursquare.com/sdk-reference/geofences-api/endpoints/).

## Create a Geofence

From the **Geofences** section in the Developer Console, click the **Add New Geofence(s)** Button.

There are five types of geofences you can create:

- **Venue** \- a geofence around a specific venue (e.g Joe’s Pizza in NYC)
- **Chain** \- a geofence around a specific [chain](https://docs.foursquare.com/developer/docs/build-with-foursquare/chains) of venues (e.g Walmart)
- **Category** \- a geofence around a specific [category](https://docs.foursquare.com/developer/docs/build-with-foursquare/categories) of venues (e.g Thai Restaurants)
- **Circle** \- a circular geofence around a specific lat/lng pair
- **Polygon** \- a polygon geofence using lat/long pairs

### Additional Properties

Additional properties allow you to add custom metadata to each geofence event, where the additional properties will be appended to the event [payload](https://docs.foursquare.com/pilgrim-sdk/webhooks/#visits) as a key-value pair.

> Note: You can set a max of **10** pairs and each "key" _must_ be unique.

Once you’ve successfully created a geofence, you’ll see it listed in the Active Geofences section.

## Create Geofences via CSV upload

In addition to creating geofences via the UI, you can also upload geofences using a CSV file.

> Note: The maximum number of geofences per upload is **5000** and each geofence _must_ have a **unique** name.

Instructions:

1. Download the csv template [here](https://playfoursquare.s3.amazonaws.com/4sq_Geofences.csv).
2. Add your geofences following the format specified in the template. For e.g if you’re creating a venue geofence, ensure the `venueid` column is populated with a valid Foursquare `venueid`, similarly for a chain geofence a `chainid`, category geofence a `categoryid` etc.
3. Drag and drop or click to upload your csv file, specifying whether or not you want to append (add to) or replace (delete) existing geofences.
