Download the PHP package h-ishak/ors-api-service without Composer
On this page you can find all versions of the php package h-ishak/ors-api-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download h-ishak/ors-api-service
More information about h-ishak/ors-api-service
Files in h-ishak/ors-api-service
Package ors-api-service
Short Description a class to use OpenRouteService Api in laravel 8
License MIT
Informations about the package ors-api-service
ors-api-service
[![Downloads](https://img.shields.io/packagist/dt/h-ishak/ors-api-service.svg?style=flat-square]())]() [![Version](https://img.shields.io/packagist/v/h-ishak/ors-api-service.svg?style=flat-square]())]() [![Forks](https://img.shields.io/github/forks/h-ishak/ors-api-service.svg?style=flat-square]())]() [![Stars](https://img.shields.io/github/stars/h-ishak/ors-api-service.svg?style=flat-square]())]() [![License](https://img.shields.io/github/license/H-ishak/ors-api-service.svg?style=flat-square]())]()
a simple Laravel package for the OpenRouteService Api
Installation, and Usage Instructions
This package allows you to consume OpenRouteService Api using laravel.
Set API key in the .env
Once installed you can do stuff like this:
here is a list of the available profiles :
Const | Value |
---|---|
PROFIL_DRIVING_CAR | "driving-car" |
PROFIL_DRIVING_HGV | "driving-hgv" |
PROFIL_CYCLING_HGV | "cycling-hgv" |
PROFIL_CYCLING_REGULAR | "cycling-regular" |
PROFIL_CYCLING_ROAD | "cycling-road" |
PROFIL_CYCLING_MOUNTAIN | "cycling-mountain" |
PROFIL_CYCLING_ELETRIC | "cycling-electric" |
PROFIL_FOOT_WALKING | "foot-walking" |
PROFIL_FOOT_HIKING | "foot-hiking" |
PROFIL_WHEELCHAIR | "wheelchair" |
list of available endpoints functions : | Function name | endpoint link |
---|---|---|
getDirections() | https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/get | |
getDirectionsWithSettings() | https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/post | |
getDirectionsWithGeoJson() | https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/geojson/post | |
getDirectionsWithGpx() | https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/gpx/post | |
searchGeocode() | https://openrouteservice.org/dev/#/api-docs/geocode/search/get | |
autocompleteGeocode() | https://openrouteservice.org/dev/#/api-docs/geocode/autocomplete/get | |
reverseGeocode() | https://openrouteservice.org/dev/#/api-docs/geocode/reverse/get |
License
The MIT License (MIT). Please see License File for more information.
All versions of ors-api-service with dependencies
guzzlehttp/guzzle Version ^7.0.1
symfony/psr-http-message-bridge Version 2.1.0