PHPackages                             andrelohmann-silverstripe/geolocation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. andrelohmann-silverstripe/geolocation

ActiveSilverstripe-module[Framework](/categories/framework)

andrelohmann-silverstripe/geolocation
=====================================

GeoLocation FieldTypes - allow calculations on geolocations

1.0.1(10y ago)21.3k2[3 PRs](https://github.com/andrelohmann/silverstripe-geolocation/pulls)1BSD-3-ClausePHPPHP &gt;=5.3.2

Since Dec 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/andrelohmann/silverstripe-geolocation)[ Packagist](https://packagist.org/packages/andrelohmann-silverstripe/geolocation)[ RSS](/packages/andrelohmann-silverstripe-geolocation/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

silverstripe geolocation
========================

[](#silverstripe-geolocation)

Maintainers
-----------

[](#maintainers)

- Andre Lohmann (Nickname: andrelohmann)

Requirements
------------

[](#requirements)

Silverstripe 3.3.x

Introduction
------------

[](#introduction)

GeoLocation FieldTypes - allow calculations on geolocations.

Installation
------------

[](#installation)

geolocation needs a UDF (mysql user defined function) to be created either create this function manually with the following SQL Statement (copy/paste to phpmyadmin)

```
DROP FUNCTION IF EXISTS geodistance;
delimiter //
CREATE FUNCTION geodistance (lat1 DOUBLE, lng1 DOUBLE, lat2 DOUBLE, lng2 DOUBLE) RETURNS DOUBLE NO SQL
BEGIN
DECLARE radius DOUBLE;
DECLARE distance DOUBLE;
DECLARE vara DOUBLE;
DECLARE varb DOUBLE;
DECLARE varc DOUBLE;
SET lat1 = RADIANS(lat1);
SET lng1 = RADIANS(lng1);
SET lat2 = RADIANS(lat2);
SET lng2 = RADIANS(lng2);
SET radius = 6371.0;
SET varb = SIN((lat2 - lat1) / 2.0);
SET varc = SIN((lng2 - lng1) / 2.0);
SET vara = SQRT((varb * varb) + (COS(lat1) * COS(lat2) * (varc * varc)));
SET distance = radius * (2.0 * ASIN(CASE WHEN 1.0 < vara THEN 1.0 ELSE vara END));
RETURN distance;
END;
//
delimiter ;

```

or on each /dev/build by adding the following line to your \_ss\_environment.php

```
define('CREATE_GEODISTANCE_UDF', true);

```

Set the Google Api Key inside your \_ss\_environment.php if necessary

```
define('GOOGLE_MAPS_API_KEY', '__YOUR_KEY__');

```

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~86 days

Total

2

Last Release

3819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2ee634b511ac11c5e05be625ba61e157ee3056293926c296171b441196cc444?d=identicon)[andrelohmann](/maintainers/andrelohmann)

---

Top Contributors

[![andrelohmann](https://avatars.githubusercontent.com/u/617168?v=4)](https://github.com/andrelohmann "andrelohmann (6 commits)")

---

Tags

frameworksilverstripe

### Embed Badge

![Health badge](/badges/andrelohmann-silverstripe-geolocation/health.svg)

```
[![Health](https://phpackages.com/badges/andrelohmann-silverstripe-geolocation/health.svg)](https://phpackages.com/packages/andrelohmann-silverstripe-geolocation)
```

###  Alternatives

[silverstripe/framework

The SilverStripe framework

7223.8M2.9k](/packages/silverstripe-framework)[october/rain

October Rain Library

1601.7M103](/packages/october-rain)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k17.3k100](/packages/elgg-elgg)[juzaweb/cms

Juzaweb CMS is a Content Management System (CMS) developed based on Laravel Framework and web platform whose sole purpose is to make your development workflow simple again. Project develop by Juzaweb

189571.3k](/packages/juzaweb-cms)[offline/oc-boxes-free-plugin

Visual Page Builder for October CMS

132.8k](/packages/offline-oc-boxes-free-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
