PHPackages                             ronnytorresmtz/route-measures - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ronnytorresmtz/route-measures

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ronnytorresmtz/route-measures
=============================

A Laravel Nova field - Calculate the distance and duration of a route

1.0.0(6y ago)05MITPHPPHP &gt;=7.1.0CI failing

Since Jan 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ronnytorresmtz/route-measures)[ Packagist](https://packagist.org/packages/ronnytorresmtz/route-measures)[ RSS](/packages/ronnytorresmtz-route-measures/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Nova Field - Route Measures
===================================

[](#laravel-nova-field---route-measures)

- Calculate the distance and duration of a route using the Mapbox Directory API

How to install
--------------

[](#how-to-install)

```
    composer require ronnytorresmtz/route-measures

```

How to Use
----------

[](#how-to-use)

```
    public function fields(Request $request)
    {

        $token = env('MAPBOX_ACCESS_TOKEN');
        $origin = '100, 28';
        $destination = '100, 26'

        return [

            RouteMeasures::make('Measures')
                ->route($origin, $destination, $token),
        ];

    }

```

### Parameters

[](#parameters)

-&gt;route($origin, $destination, $token)

```
    $origin: pair of geo-coordinates (longitude, latitude)

    $origin: pair of geo-coordinates (longitude, latitude)

    $token: access token from your Mapbox Account

```

### Create Mapbox Access Token and make the Laravel Configuration

[](#create-mapbox-access-token-and-make-the-laravel-configuration)

- Create an Mapbox Account
- Create a public/permanent access token for your app
- Add a "MAPBOX\_ACCESS\_TOKEN" key in your laravel .env file and set your Access Token

### Additional Comments

[](#additional-comments)

- Show distance and duration of the route as IndexField and DetailField
- Mapbox has a free tier visit [Mapbox Site](https://www.mapbox.com/)

### References

[](#references)

- Read the [Mapbox Direction API](https://docs.mapbox.com/api/navigation/) documentation.
- Read the [Mapbox Access Token](https://docs.mapbox.com/help/tutorials/get-started-tokens-api/) documentation.

Any suggestion is welcome

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2316d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/415259f49fe1133f081e214ddcacf07add96edaeede05315f8e25423384aff6a?d=identicon)[Rolando Torres](/maintainers/Rolando%20Torres)

---

Top Contributors

[![ronnytorresmtz](https://avatars.githubusercontent.com/u/24813775?v=4)](https://github.com/ronnytorresmtz "ronnytorresmtz (19 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/ronnytorresmtz-route-measures/health.svg)

```
[![Health](https://phpackages.com/badges/ronnytorresmtz-route-measures/health.svg)](https://phpackages.com/packages/ronnytorresmtz-route-measures)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
