psalmsin/placestocoordinates 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

psalmsin/placestocoordinates

Composer 安装命令:

composer require psalmsin/placestocoordinates

包简介

The Placestocoordinates Laravel package simplifies geolocation tasks by effortlessly obtaining latitude and longitude coordinates based on addresses. It provides a convenient way to perform address-to-coordinates conversions in Laravel applicat

README 文档

README

The PlacesToCoordinates Laravel package simplifies geolocation tasks by effortlessly obtaining latitude and longitude coordinates based on addresses. It provides a convenient way to perform places-to-coordinates conversions in Laravel applications.

Features

  • Obtain latitude and longitude coordinates from addresses with ease.
  • Seamlessly integrate geolocation functionality into your Laravel projects.
  • Simplify geocoding tasks for various use cases.

Installation

To get started with the PlacesToCoordinates Laravel package, follow these steps:

  • Install the package via Composer:
composer require psalmsin1759/placestocoordinates
  • Publish the package configuration:
php artisan vendor:publish --provider="Psalmsin1759\PlacesToCoordinates\CoordinatesServiceProvider"
  • Configure your Google Maps API key: Open the .env file and set your Google Maps API key.
GEOCODING_API_KEY=

Usage

Once the package is installed and configured, you can use it to obtain coordinates from addresses:

use Psalmsin1759\Addresstocoordinates\Coordinates;

$address = "1600 Amphitheatre Parkway, Mountain View, CA";
$coordinates = Coordinates::getCoordinates($address);

// Access latitude and longitude
$latitude = $coordinates->latitude;
$longitude = $coordinates->longitude;

// Use latitude and longitude as needed

Contributing

Contributions to this Laravel package are welcome! Please read our contribution guidelines for more details.

License

The Placestocoordinates Laravel package is open-source software licensed under the MIT License.

Support

If you encounter any issues or have questions, please feel free to create an issue on GitHub.

Feel free to customize the README further by adding sections like "Testing," "Changelog," "Credits," or any other relevant information about your package.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-09