2017 © Pedro PelĂĄez
 

library map-stuff

Stuff related to maps

image

mfeldheim/map-stuff

Stuff related to maps

  • Friday, February 9, 2018
  • by mfeldheim
  • Repository
  • 2 Watchers
  • 15 Stars
  • 4 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Hermap libraries

stuff related to maps, (*1)

Class \Geo\Coder

Client to receive coordinates from a webservice. Plugins implemented: - Y!Boss (Yahoo) - Nominatim (OSM), (*2)

Usage, (*3)

use Geo\Coder\Plugin;

$geocoder = new \Geo\Coder(
    new Nominatim( array(
        'requestURI' => 'http://nominatim.openstreetmap.org/search',
        'i118n' => 'en'
    ))
);

$result = self::$geocoder->fetchCoords(
   'Muellerstr. 40, 80469 MĂŒnchen',
        Coder::PRECISION_HIGH
    );

$result->getLat();
$result->getLon();
// etc.

Class \Geo\Projection

degreesToPixels lat/lng to pixels on a map, (*4)

Usage, (*5)

$mapProjection = new \Geo\Projection();
$pixelCoordinates = $mapProjection->degreesToPixels( $latitude, $longitude, $mapWidth, $mapHeight );

Example file examples/drawPointsOnMap.php

# composer install
php drawPointsOnMap.php

requires, (*6)

  • php >= 5.3.2
  • php-gd (optionally compiled with freetype support)

The Versions

09/02 2018

dev-master

9999999-dev

Stuff related to maps

  Sources   Download

Apache-2.0 Apache License Version 2.0

The Requires

 

The Development Requires

by Michel Feldheim

31/01 2014

dev-develop

dev-develop

Stuff related to maps

  Sources   Download

Apache License Version 2.0

The Requires

 

The Development Requires

by Michel Feldheim

24/01 2014

1.1

1.1.0.0

Stuff related to maps

  Sources   Download

Apache License Version 2.0

The Requires

 

The Development Requires

  • ext-gd *

by Michel Feldheim