Tiger_Service_Location

@api · extends Tiger_Service_Service

Tiger_Service_Location — the Location Service over /api.

A public core service (reached as module=tiger & service=location, ACL-allowed to guest in core acl.ini) so public forms — e.g. the signup address autocomplete — can look up addresses. A thin wrapper over Tiger_Location that returns normalized Place payloads.

method=suggest q= -> { results: [Place, …] } (autocomplete) method=reverse lat=<> lng=<> -> { place: Place|null } (coords -> address) method=ip -> { place: Place|null } (the VISITOR's own IP)

Methods

suggest()

suggest(array $params): void

Autocomplete address suggestions for a partial query.

  • $params array — the request payload (q, optional country bias)

reverse()

reverse(array $params): void

Reverse-geocode coordinates into a normalized place.

  • $params array — the request payload (lat, lng)

ip()

ip(array $params): void

Geolocate the requester's own IP address.

  • $params array — the request payload (unused; the IP is the caller's own)