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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@pandamime100hp/quickroute

v2.4.0

Published

A TypeScript library for optimized Australian address parsing and validation, designed specifically for logistics operations. Built with extensibility to support multiple geocoding providers, starting with TomTom API integration.

Readme

QuickRoute

npm version License: MIT CI Status

A TypeScript library for optimized Australian address parsing and validation, designed specifically for logistics operations. Built with extensibility to support multiple address providers, starting with TomTom API integration.

Features

  • 🇦🇺 Australian address validation and filtering
  • 🚚 Logistics-optimized parsing algorithms
  • 🔄 Provider-agnostic architecture (Initially TomTom)
  • 📦 Tree-shaking friendly ES modules
  • 🧪 100% test coverage enforcement

Installation

npm install @pandamime100hp/quickroute
# or
yarn add @pandamime100hp/quickroute

Configuration

Environment Variables

Providers are configured through environment variables. This allows you to externally change the behaviour of the providers.

TomTom

The TomTom provider allows you to pass in various environment variables which allow you to simply how the APIs are called. For instance if the base URL is changed by TomTom (e.g., api.tomtom.com to api.notsotomtom.com) or maybe you would like to use a different region URL provided by TomTom (e.g., kr-api.tomtom.com), you can do this by setting the TOMTOM_BASE_URL environment variable. The provider uses the process Node package which reads in any .env files available on the root project folder. Below is a list of the environment variables that is used by the TomTom provider:

| Environment Variable | Default Value | Required | |------------------------|--------------------|----------| | TOMTOM_API_KEY | None | Yes | | TOMTOM_BASE_URL | api.tomtom.com | No | | TOMTOM_API_VERSION | 2 | No | | TOMTOM_EXTENSION | json | No | | TOMTOM_COUNTRY_SET | AU | No |

NOTE: the API key has to methods of being passed in.

  1. The parameter for the TomTom class (e.g. new TomTom("YOUR_API_KEY_HERE"))
  2. The environment variable TOMTOM_API_KEY

NOTE: if no environment variable is added to the .env file, the value is given a default value as shown above.

NOTE: if there is a desire in the future to expand on the API to other countries, there is an environment variable TOMTOM_COUTRY_SET available. This value takes a string of country codes separated by commas as below:

TOMTOM_COUNTRYSET=AU,IE,DE,ES

Usage

Basic Example

import { AddressProvider, TomTom } from "@pandamime100hp/quickroute";

const tomtom = new TomTom("YOUR_TOMTOM_API_KEY");
const provider = new AddressProvider(provider);

async function searchAddress() {
  const results = await provider.search("Sydney Opera House");
  console.log(results);
}

searchAddress();

Using a Custom Provider

QuickRoute is designed to work with different geocoding providers. You can create your own provider by implementing the AddressProvider interface:

import { Provider, Address } from "@pandamime100hp/quickroute";

class CustomProvider implements Provider {
  async search(query: string): Promise<Address[]> {
    return [{ street: "1 Custom St", city: "Melbourne", country: "Australia" }];
  }
}

const customProvider = new CustomProvider();
const geocoder = new Geocoder(customProvider);

Testing

Run tests using:

npm run test

For test coverage:

npm run test:coverage

License

This project is licensed under the MIT License.