Giter Site home page Giter Site logo

php-osrm's Introduction

php-osrm

PHP client for Project-OSRM.

Build Stable License
CI Latest Stable Version License

Installation

  • If Composer is already installed
composer require riverside/php-osrm
  • If Composer is not installed on your system yet, you may go ahead and install it using this command line:
$ curl -sS https://getcomposer.org/installer | php

Next, add the following require entry to the composer.json file in the root of your project.

{
    "require" : {
        "riverside/php-osrm" : "*"
    }
}

Finally, use Composer to install php-osrm and its dependencies:

$ php composer.phar install

Loading

require __DIR__ . '/vendor/autoload.php';

API

  • Nearest - Snaps a coordinate to the street network and returns the nearest n matches.
  • Route - Finds the fastest route between coordinates in the supplied order.
  • Table - Computes the duration of the fastest route between all pairs of supplied coordinates. Returns the durations or distances or both between the coordinate pairs.
  • Match - Map matching matches/snaps given GPS points to the road network in the most plausible way.
  • Trip - Solves the Traveling Salesman Problem using a greedy heuristic (farthest-insertion algorithm) for 10 or more waypoints and uses brute force for less than 10 waypoints.
  • Tile - Generates Mapbox Vector Tiles that can be viewed with a vector-tile capable slippy-map viewer.
  • Isochrones - Generates travel time isochrones in GeoJSON format.

Links

php-osrm's People

Contributors

riverside avatar vukbgit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

php-osrm's Issues

Isochrone Feature

Hello,

Many thanks for this beautiful repository:)

Do you have plans to implement OSRM's Isochrone generation feature?

Best,
Orkut

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.