Skip to content

eramitgupta/LocationErag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Get Location Free Only india

Explore Indian locations effortlessly using our software, Locationerag. Simply add a PIN code as a parameter, and instantly get an array of the entire area of INDIA. It's a quick and easy way to find locations – simplify your searches with Locationerag

License

Screenshot 2024-08-07 at 11 32 57 PM

Getting Started

composer require erag/locationerag

Step 1: Register Service Provider

Laravel 11.x

Ensure the service provider is registered in /bootstrap/providers.php:

return [
    // ...
    LocationEragServiceProvider::class
];

Laravel 10.x

Add the service provider in config/app.php:

'providers' => [
    // ...
    LocationErag\LocationEragServiceProvider::class,
];
<?php

use Illuminate\Support\Facades\Route;
use LocationErag\Get\Location;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
    echo '<pre>';
    print_r(Location::MapData(226010));
});

License

The MIT License (MIT). Please see License File for more information.

GitHub @eramitgupta  ·  Linkedin @eramitgupta