esi / esi-issues

Issue tracking and feature requests for ESI
https://esi.evetech.net/
209 stars 23 forks source link

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

Open BaldvinTh opened 7 years ago

BaldvinTh commented 7 years ago

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

blitzmann commented 6 years ago

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

biow0lf commented 3 years ago

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

Inomares commented 3 years ago

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.