The map endpoint is the primary data source for the CoffePrice interactive Mapbox map. It returns a single array of sanitized buyer objects, each enriched with the buyer’s most recent coffee price reference, for all approved buyers whose accounts are currently active. No authentication is required, but the endpoint is rate-limited viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JaiderT/CoffeePrice/llms.txt
Use this file to discover all available pages before exploring further.
publicLimiter to prevent abuse.
Endpoint: GET /api/comprador/mapa
Auth: None (public)
Rate limiting: Yes — requests share the publicLimiter pool applied to all public CoffePrice endpoints.
Filtering
The response only includes buyers that satisfy both of the following conditions:estadoRevisionis"aprobado", or the field is absent /null(legacy records treated as approved).- The associated user account has
estado: "activo".
perfilIncompleto, enRevision, or rechazado states are excluded.
Coordinate generation
Exact street addresses and stored coordinates are never exposed. Instead, approximate coordinates are derived at query time using a deterministic hash of the buyer’snombreempresa, direccion, and municipio fields:
- The municipality name is normalised (accent marks stripped, lowercased, trimmed) and looked up in the table below to obtain a centre coordinate.
- A hash of the concatenated buyer fields produces a numeric seed.
- The seed generates a latitude offset and a longitude offset, each in the range ±0.009° (roughly ±1 km), which are added to the municipality centre.
coordenadasEstimadasis always set totruein every response object.
el pital.
Municipality centre coordinates
| Municipality | Latitude | Longitude |
|---|---|---|
el pital | 2.266205 | -75.805401 |
pitalito | 1.8537 | -76.0517 |
acevedo | 1.8043 | -75.8893 |
la argentina | 2.1962 | -75.9805 |
tarqui | 2.1107 | -75.8238 |
suaza | 1.9767 | -75.7947 |
palestina | 1.7238 | -76.1347 |
elias | 2.0131 | -75.9395 |
saladoblanco | 1.9933 | -76.0457 |
isnos | 1.927 | -76.2148 |
Request
Response fields
Each object in the returned array contains the following fields.MongoDB ObjectId of the buyer profile.
Company or trade name of the buyer.
Category of the buying entity. One of:
cooperativa, trilladora, independiente, exportadora, otro. Falls back to "independiente" if not set.Municipality where the buyer operates, or
null if not set.Human-readable zone label derived from the municipality (e.g.
"Zona de pitalito"). Falls back to "Ubicacion general disponible" when the municipality is unknown.Approximate latitude coordinate (municipality centre ± hash-based offset up to ±0.009°). Always present; never the exact stored value.
Approximate longitude coordinate (municipality centre ± hash-based offset up to ±0.009°). Always present; never the exact stored value.
Always
true. Indicates that the coordinates are approximate and should not be used for precise geolocation.Opening time in
HH:MM 24-hour format, or null if not set.Closing time in
HH:MM 24-hour format, or null if not set.Short description of the buyer (max 300 characters), or
null if not provided.List of services offered by the buyer. Returns an empty array if none are registered.
Always
true. Confirms that the direccion and telefono fields have been withheld from this response.Latest price per carga posted by the buyer (in COP), or
null if no price record exists.Latest price per kilogram posted by the buyer (in COP), or
null if no price record exists.Type of coffee associated with the latest price record (e.g.
"pergamino", "castilla"), or null if no price record exists.Unit associated with the latest price (typically
"carga"). Defaults to "carga" when no price record exists.ISO 8601 timestamp of when the latest price record was last updated, or
null if no price record exists.Example response
Exact addresses and contact information (phone numbers, street addresses) are always omitted from this endpoint for privacy. Coordinates are intentionally imprecise. To access full contact details, the requesting user must be authenticated as the profile owner or an admin and call
GET /api/comprador/:id instead.