# Locations and points

> Register the places your deliveries start and end.

Deliveries start and end at places. Register them once and refer to them by id.

## Partner

[`POST /partners`](https://docs.remi.robot.com/delivery/reference#createPartner) creates your account for your key, once: just a `name`.

## Locations

A location is the area your bots serve: a name, a 3 to 4 character `short_name`, a country and a polygon ([`POST /locations`](https://docs.remi.robot.com/delivery/reference#createLocation)).

- `polygon.coordinates` is a flat list of `[lng, lat]` pairs, not GeoJSON's nested rings.
- [`GET /locations/{id}/paths`](https://docs.remi.robot.com/delivery/reference#getLocationPaths) returns the sidewalks and crossings bots drive there, as GeoJSON.

## Points

A point is a named place in a location: a kitchen, a store, an entrance ([`POST /points`](https://docs.remi.robot.com/delivery/reference#createPoint)).

- Tag kitchens and stores `pickup`, drop places `dropoff`. Only `pickup` points report [kitchen availability](https://docs.remi.robot.com/delivery/reference#getPointAvailability).
- Give each one your own `external_id`, so you never have to store ours.

## Three ways to name a place

A delivery's `pickup` and `dropoff` take any of these:

| Form | Example |
| --- | --- |
| Our id | `{ "id": "V1StGXR8Z5jdHi6BmyT2q" }` |
| Your id | `{ "external_id": "kitchen-north" }` |
| Coordinates | `{ "lat": 4.6602, "lng": -74.0521 }` |

- With an id, `name`, `contact` and `azimuth` you send override the point's for that delivery.
- Coordinates can be linked to a registered point with `matching`: `exact` (within 5 m), `snap` (nearest within `radius` meters, use its coordinates) or `associate` (nearest within `radius`, keep yours). Add `required: true` to fail when nothing matches.

## Bots

[`GET /bots`](https://docs.remi.robot.com/delivery/reference#listBots) lists the bots that serve you. `can_take_delivery` says whether a new delivery could start on one right now. [`GET /bots/{id}`](https://docs.remi.robot.com/delivery/reference#getBot) adds its position, battery and door.
