Git Product home page Git Product logo

mapquest's Introduction

Map Quest

This easy to use library imports latitude, longitude coordinates from Map Quest API. You must go to developer.mapquest.com to register and acquire an API key to use with this library. Please note that neither this laravel library is made on behalf of Map Quest nor developer is acting on behalf of Map Quest. There is no coorporation between Map Quest and this library. Map Quest is not responsible for this library. Map Quest API credit goes to Map Quest.

Video Tutorial

Laravel MapQuest

Laravel Installation

Install using composer:

composer require salmanbe/mapquest

There is a service provider included for integration with the Laravel framework. This service should automatically be registered else to register the service provider, add the following to the providers array in config/app.php:

Salmanbe\MapQuest\MapQuestServiceProvider::class,

You can also add it as a Facade in config/app.php:

'MapQuest' => Salmanbe\MapQuest\MapQuest::class,

Add 2 lines to config/app.php

'map_quest_url' => env('MAP_QUEST_URL', ''),
'map_quest_key' => env('MAP_QUEST_KEY', ''),

Add 2 lines to .env

MAP_QUEST_URL=https://www.mapquestapi.com/geocoding/v1/address
MAP_QUEST_KEY=your_mapquest_api_key

Basic Usage

Add use Salmanbe\MapQuest\MapQuest; or use MapQuest; at top of the class where you want to use it. Then create class instance.

$map = new MapQuest();

Set Address

$map->set($address);

Get Latitude

echo $map->latitude();

Get Longitude

echo $map->longitude();

GET Coordinates

echo $map->coordinates();

GET Status Code

echo $map->status();

Uninstall

First remove Salmanbe\MapQuest\MapQuestServiceProvider::class, and 'MapQuest' => Salmanbe\MapQuest\MapQuest::class, from config/app.php if it was added. Then Run composer remove salmanbe/mapquest

License

This library is licensed under THE MIT License. Please see License File for more information.

Security contact information

To report a security vulnerability, follow these steps.

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.