resolveGeoPoint.php
Table of Contents
Functions
- resolveGeoPoint() : array{0: mixed, 1: mixed}
- Resolve a `[ latitude, longitude ]` pair from a request-supplied object.
Functions
resolveGeoPoint()
Resolve a `[ latitude, longitude ]` pair from a request-supplied object.
resolveGeoPoint(mixed $value) : array{0: mixed, 1: mixed}
Reads the canonical Schema.org GeoCoordinates keys (latitude /
longitude) first, then falls back to the short aliases (lat / lng /
lon). Returns [ null, null ] when the value is not an array, or when a
coordinate is missing — callers treat that as "no geo point".
Parameters
- $value : mixed
-
The candidate object (typically a filter
valor a?near=payload).
Tags
Return values
array{0: mixed, 1: mixed} —The [ latitude, longitude ] pair.