PHPackages                             mv/roadlength - 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. mv/roadlength

ActiveLibrary

mv/roadlength
=============

PHP connector to calc road distance between locations

1.0(5y ago)06GPL-3.0PHPPHP &gt;=7.0

Since Aug 11Pushed 5y agoCompare

[ Source](https://github.com/phpmike/Roadlength)[ Packagist](https://packagist.org/packages/mv/roadlength)[ RSS](/packages/mv-roadlength/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

MvRoadlength
============

[](#mvroadlength)

This API is to calc distance between two points by road.

Install
-------

[](#install)

```
composer require mv/roadlength
```

Examples
--------

[](#examples)

#### With postal address

[](#with-postal-address)

```
use Mv\RoadLength\Api\HereApi;
use Mv\RoadLength\Geo\Location;
use Mv\RoadLength\Geo\Distance;

$hereApi = new HereApi('---Your HERE API KEY---');

$origin = Location::createByAddress('mairie de hyeres 83400 HYERES', $hereApi);
$destination = Location::createByAddress('mairie de sollies-toucas 83210 SOLLIES-TOUCAS', $hereApi);

$distance = new Distance($hereApi);
$distance->setStartLocation($origin);
$distance->setEndLocation($destination);

$distanceInMeters = $distance->getDistance();
```

#### With geoloc coordinates

[](#with-geoloc-coordinates)

```
use Mv\RoadLength\Api\HereApi;
use Mv\RoadLength\Geo\Location;
use Mv\RoadLength\Geo\Distance;

$hereApi = new HereApi('---Your HERE API KEY---');

$origin = Location::createByCoords(43.119840, 6.129904);
$destination = Location::createByCoords(43.206368, 6.026157);

$distance = new Distance($hereApi);
$distance->setStartLocation($origin);
$distance->setEndLocation($destination);

$distanceInMeters = $distance->getDistance();
```

Enjoy it!

To be continued...

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

2104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/445f20df33bfca909e1938ca59a34263e6a3d8ce6930168c9e02cb79d8559e1c?d=identicon)[phpmike](/maintainers/phpmike)

---

Tags

road distancedistance between location

### Embed Badge

![Health badge](/badges/mv-roadlength/health.svg)

```
[![Health](https://phpackages.com/badges/mv-roadlength/health.svg)](https://phpackages.com/packages/mv-roadlength)
```

PHPackages © 2026

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