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!
![Screenshot 2024-08-07 at 11 32 57 PM](https://private-user-images.githubusercontent.com/72160684/355939148-b3d82b4e-e1c0-434c-8356-5affa9d3b583.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3NjI5MTYsIm5iZiI6MTczOTc2MjYxNiwicGF0aCI6Ii83MjE2MDY4NC8zNTU5MzkxNDgtYjNkODJiNGUtZTFjMC00MzRjLTgzNTYtNWFmZmE5ZDNiNTgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDAzMjMzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFiNjM4ZTZiNmY0ZDk2ODc0YWVhMGVjMzBjN2ZhOWI3MTRkMWNmMTI4ODM2YmE2NTk2MDY0ZjAzOWFlNmU2NjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7EcJL-w2yyfmgvARnAMkVs7yvZoFUJ0_K80yPLdroGw)
To get started with Locationerag, run the following command to install it via Composer:
composer require erag/locationerag
Ensure that the service provider is registered in /bootstrap/providers.php
:
return [
// ...
LocationErag\LocationEragServiceProvider::class
];
Add the service provider in config/app.php
:
'providers' => [
// ...
LocationErag\LocationEragServiceProvider::class,
];
Now, use the Locationerag package in your routes:
<?php
use Illuminate\Support\Facades\Route;
use LocationErag\Get\Location;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
| Register web routes for your application.
|--------------------------------------------------------------------------
*/
Route::get('/', function () {
echo '<pre>';
print_r(Location::MapData(226010)); // Example: Get location data using a PIN code.
});