GeoTools

Geo-related tools PHP 7.3+ library built atop Geocoder and React libraries (by thephpleague)

GeoTools Alternatives

Similar projects and alternatives to GeoTools

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better GeoTools alternative or higher similarity.

GeoTools reviews and mentions

Posts with mentions or reviews of GeoTools. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-26.
  • Store values based on geographic data calculation (which polygon is a point within?)
    3 projects | /r/drupal | 26 Mar 2022
    // Loop on all loaded zones_entities /* @var $zone_geofield \Drupal\geofield\Plugin\Field\FieldType\GeoFieldItem */ $zone_geofield = $your_zone_entity->get('field_your_geofield')->getValue(); /* @var \Drupal\geofield\GeoPHP\GeoPHPInterface $geo_php_wrapper */ $geo_php_wrapper = \Drupal::service('geofield.geophp'); // or inserted via DI /* @var \Geometry$polygon*/ $polygon = $geo_php_wrapper->load($zone_geofield->value); /* @var $entity_geofield \Drupal\geofield\Plugin\Field\FieldType\GeoFieldItem */ $entity_geofield = $your_current_entity->get('field_your_geofield')->getValue(); $point = $geo_php_wrapper->load($entity_geofield->value); if( geoPHP::geosInstalled() ) { $in_zone = $polygon->contains($point); } else { // https://github.com/thephpleague/geotools#polygon $geotools_polygon = new \League\Geotools\Polygon\Polygon( $polygon->asArray() ); $geotools_point = \League\Geotools\Coordinate\Coordinate( $point->asArray() ); $in_zone = $geotools_polygon->pointInPolygon( $geotools_point ); } if( $in_zone ) { // Do things like filling a reference field $entity->set('field_ref_' . $your_zone_entity->bundle()', $your_zone_entity->id() ); }

Stats

Basic GeoTools repo stats
1
1,356
5.1
about 1 month ago

thephpleague/geotools is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of GeoTools is PHP.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com