Skip to content

A Laravel package for calculating distance between two locations

Notifications You must be signed in to change notification settings

Flat-Duck/distancemetrics-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distancemetrics-laravel

This is a basic wrapper package for the mapbox directions api https://mapbox.com API. It exposes a single class function, dm(), that you can use across your Laravel controllers, models, and views.

Installation

Run composer require flat-duck/distancemetrics-laravel from your Laravel application root. Once that's finished, you'll need to open up your .env file and add the following to the bottom:

DISTANCEMETRICS_API_KEY={your-api-key}

Optionally: You can publish the config file from the package by running:

php artisan vendor:publish --provider="FlatDuck\Distancemetrics\DistancemetricsServiceProvider"

Usage

More Info

This package was developed as part of a project I was working on.

If you have any questions, feel free to reach out to me [@flat-duck].

About

A Laravel package for calculating distance between two locations

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages