Giter VIP home page Giter VIP logo

coordinate's Introduction

Distance Calculate and 3rd Party API Services in PHP

workflow Copyright License Developed Copyright

Installation

composer require adecoder/coordinate
IP_API_KEY=your-api-key
IP_API_URL=http://api.ipapi.com/

POSITION_STACK_KEY=your-api-key
POSITION_STACK_URL=http://api.positionstack.com/v1/reverse

Distance Calculate

use Adecoder\Coordinate\Distance;

$area = new Distance();
echo $area->set(lat1: 23.6293159, lng1: 90.4870177, lat2: 24.3761958, lng2: 88.5793325)->get(unit: 'k');

IP Details

use Adecoder\Coordinate\Lookup;
use Adecoder\Coordinate\Clients\Services\IpApi;

$loopup = new Lookup();
echo '<pre>';
print_r($loopup->ipaddr(ip: '103.151.11.64'))
echo '</pre>';

GeoLocation Details

use Adecoder\Coordinate\Lookup;

$coords = new Lookup();
echo '<pre>';
print_r($loopup->coords(lat: '23.6307225', lng: '90.4901339'))
echo '</pre>';

coordinate's People

Contributors

md-aamroni avatar

Stargazers

 avatar

Watchers

 avatar

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.