esi-issues icon indicating copy to clipboard operation
esi-issues copied to clipboard

Feature request: Ability to convert unit_id from Dogma attributes to a unit of measurement

Open BaldvinTh opened this issue 7 years ago • 3 comments

Feature request

The endpoint /dogma/attributes/{attribute_id}/ provides a value unit_id, which is an integer. There is currently no way to translate this integer into an actual unit of measurement with ESI.

Use case

Ability to display value of a Dogma attribute in a meaningful way, for example if it's referring to mass, velocity, or percentage.

Example returns

{
	"unit_id": 2,
	"name": "Kilogram",
	"display_name": "kg"
},
{
	"unit_id": 114,
	"name": "Gigajoules",
	"display_name": "GJ"
}

Previous XML or CREST route

None

BaldvinTh avatar May 18 '17 14:05 BaldvinTh

+1 for this endpoint. It would help out fitting tools a lot

blitzmann avatar Feb 23 '18 17:02 blitzmann

Three years later we don't have simple end point for units. And don't have eveUnits.yaml anymore in SDE.

biow0lf avatar Feb 28 '21 15:02 biow0lf

Three years later we don't have simple end point for units. And don't have eveUnits.yaml anymore in SDE.

https://sde.hoboleaks.space/tq/dogmaunits.json 3rd party resource in the meanwhile, but I am guessing CCP will eventually re-add this file to SDE.

Inomares avatar Feb 28 '21 22:02 Inomares