Contents
On this page

List Locations - Plugixa Chauffeur

GET /plugixa-chauffeur/v1/locations

List saved places: airports, stations, hotels and other pickup points.

Needs a signed-in user with the plugixa_chauffeur_manage capability (administrators have it after activation).

Request

GET https://your-site.example/wp-json/plugixa-chauffeur/v1/locations?type=airport

Query parameters

Name Type Default Description
search string Matches part of the name or the address.
type string One exact type, for example airport.

Plus the list parameters every list accepts. orderby accepts created_at (the default), name, display_order and type.

Responses

200 OK. data.items is one page of locations.

{
  "success": true,
  "message": "",
  "data": {
    "items": [
      {
        "id": "5",
        "language_code": "",
        "translation_group": "",
        "name": "Paris Charles de Gaulle Airport",
        "slug": "paris-charles-de-gaulle-airport",
        "address": "95700 Roissy-en-France, France",
        "latitude": "49.0096906",
        "longitude": "2.5479245",
        "place_id": "",
        "type": "airport",
        "display_order": "0",
        "created_at": "2026-11-12 09:30:00"
      }
    ],
    "total": 8,
    "limit": 20,
    "offset": 0
  }
}
Field Type Meaning
data.items array One page of rows
data.total integer Rows matching the filters, before paging
data.limit integer Rows per page used. 999999 when you asked for every row
data.offset integer Rows skipped
data.items[] object A location, as in Get Location

Errors

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-chauffeur/v1/locations?type=airport" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$query = http_build_query([
    'type' => 'airport',
]);
$ch = curl_init('https://your-site.example/wp-json/plugixa-chauffeur/v1/locations?' . $query);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const auth = Buffer.from(`admin:${process.env.WP_APP_PASSWORD}`).toString('base64');
const query = new URLSearchParams({ type: 'airport' });
const response = await fetch(`https://your-site.example/wp-json/plugixa-chauffeur/v1/locations?${query}`, {
  headers: {
    'Authorization': `Basic ${auth}`,
  },
});
const { data } = await response.json();

Quick Links

Share