npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@geoterritories/n8n-nodes-geoterritories

v0.1.5

Published

Native n8n node to add Geo territories for your n8n automations.

Downloads

49

Readme

Geo Territories n8n Node

n8n community node License: MIT

Stop managing complex tables of ZIP codes and postal codes. Start drawing visual territories.

This custom n8n node integrates seamlessly with Geo Territories to bring powerful, visual geofencing capabilities into your automated workflows. With this node, you can instantly validate address coordinate points against your custom-drawn geographic polygons (fences) to route leads, dispatch teams, filter serviceability, and much more.


🌟 Key Features

  • Visual Geofencing: Check whether any geographical point (latitude and longitude) lies within your custom-drawn boundaries.
  • Flexible Matching Modes: Validate points against:
    • One Fence: A single selected territory/fence from a dynamic list.
    • Multiple Fences: Multiple selected territories/fences.
    • All Fences: All active territories defined in your account.
  • Dynamic Dropdowns: Dynamically queries the Geo Territories API (GET /fences) to load your custom boundaries directly in n8n.
  • OAuth2 Authentication: Secure connection via standard OAuth2 with PKCE flow.

🚀 Real-world Use Cases

Integrating Geo Territories into n8n opens up thousands of operational possibilities:

  • Dynamic Lead Routing: Automatically detect which sales representative's visual territory a new lead belongs to and instantly assign it in HubSpot, Salesforce, or Zoho.
  • Serviceability Filtering: Run a prospect's address coordinates through the node. If they are outside your service boundary, automatically trigger a polite "Not in service area" email, saving time for your sales team.
  • Competitor Proximity Alerts: Draw polygons around competitor locations and trigger Slack notifications or specialized conquest marketing campaigns if a lead registers within those boundaries.
  • Delivery Zone Surcharges: Check if a Shopify order's shipping address is located inside a congestion or premium delivery zone to automatically append the correct surcharge.
  • Workforce Dispatching: Automatically route maintenance, utility, or delivery tickets to the foreman or crew specifically responsible for that territory.
  • Fleet "No-Go" Zone Alerts: Track fleet GPS coordinates in real-time and alert operations if a vehicle moves outside its authorized operational boundaries.

📖 Node Reference

Resource: Validate

This resource is designed to check geographic coordinates against your territories.

Operation: Validate With Latitude and Longitude

Check custom coordinates against one or more of your drawn geofences.

| Parameter | Type | Required | Description | | :--- | :--- | :--- | :--- | | Validate Against | Options | Yes | Determine the lookup mode: Validate Against One Fence, Validate Against Multiple Fences, or Validate Against All Fences. | | Fence List | Dropdown | Yes | If validating against one/multiple fences, this dynamically displays all available fences queried from your Geo Territories account. | | Latitude | Number | Yes | The decimal latitude of the point to check (e.g., 40.7128). | | Longitude | Number | Yes | The decimal longitude of the point to check (e.g., -74.0060). |


🛠️ Local Development & Testing

If you are developing or testing this node package locally, follow these steps:

1. Install Dependencies

npm install

2. Run the Local n8n Dev Environment

Start n8n with this node package installed and hot-reloads active:

npm run dev

This will automatically build your typescript files into dist/, launch a local n8n instance, and rebuild the node whenever you save changes.

3. Build for Production

When you are ready to compile the final package:

npm run build

4. Code Quality & Linting

Run the node linter:

npm run lint

Or fix common linting issues automatically:

npm run lint:fix

🔗 Additional Resources


📄 License

This project is licensed under the MIT License.