madebydaniz/location-info 问题修复 & 功能扩展

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

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

madebydaniz/location-info

Composer 安装命令:

composer require madebydaniz/location-info

包简介

This is a tool to search OSM data by name and address and to generate synthetic addresses of OSM points (reverse geocoding).

README 文档

README

Latest Stable Version Total Downloads License

This is a tool to search OSM data by name and address and to generate synthetic addresses of OSM points (reverse geocoding).

Requirements

Installation

Install via Composer:

$ composer require madebydaniz/location-info

Usage

Reference : https://nominatim.org/release-docs/develop/api/Search/

$address = "Stephansplatz 2, 1010, Wien";
$data = LocationInfo::getInstance()::search($address);
print_r($data);

#output
Array
(
    [place_id] => 4868677
    [licence] => Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright
    [osm_type] => node
    [osm_id] => 567056993
    [boundingbox] => Array
        (
            [0] => 48.2080963
            [1] => 48.2081963
            [2] => 16.3722742
            [3] => 16.3723742
        )

    [lat] => 48.2081463
    [lon] => 16.3723242
    [display_name] => 2, Stephansplatz, Stubenviertel, KG Innere Stadt, Innere Stadt, Wien, 1010, Österreich
    [class] => place
    [type] => house
    [importance] => 0.441
)

#TODO : return format

  • html
  • xml
  • json
  • jsonv2
  • geojson
  • geocodejson

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固