Key:charge: Difference between revisions
JeroenHoek (talk | contribs) (→Usage: Adapt to use seen on taginfo. Include 'per unit'.) |
m (taglists compatibility) |
||
Line 3: | Line 3: | ||
|status=in use |
|status=in use |
||
|description=How much is charged for use of or access to a facility. |
|description=How much is charged for use of or access to a facility. |
||
|image=File: |
|image=File:Dollarnote hq.jpg |
||
|group=Properties |
|group=Properties |
||
|onNode=yes |
|onNode=yes |
||
Line 9: | Line 9: | ||
|onArea=yes |
|onArea=yes |
||
|onRelation=yes |
|onRelation=yes |
||
|combination= |
|combination= |
||
* {{ |
* {{Key|fee}} |
||
* {{ |
* {{Key|toll}} |
||
* {{Key|payment}} |
|||
|implies= |
|implies= |
||
}} |
}} |
||
{{ |
{{Key|charge}} is used to specify the amount of the charge to use or access a facility. It is mostly used in combination with {{Tag|fee|yes}} or {{Tag|toll|yes}}. |
||
== Usage == |
== Usage == |
||
Line 22: | Line 24: | ||
'''charge =''' <span style="background:#CCFFFF"><amount></span> <span style="background:#FFCCFF"><currency></span></span><span style="background:#CCFFDD">['''/'''<unit>]</span><span style="background:#FFFFCC">['''/'''<time unit>]</span> |
'''charge =''' <span style="background:#CCFFFF"><amount></span> <span style="background:#FFCCFF"><currency></span></span><span style="background:#CCFFDD">['''/'''<unit>]</span><span style="background:#FFFFCC">['''/'''<time unit>]</span> |
||
The '''<span style="background:#CCFFFF">amount</span>''' should include any cents (or whichever unit a currency uses) if charged, so if for example, the fee charged is $2.95, then tag this as {{value|2.95 USD}} and do not round the amount up to {{ |
The '''<span style="background:#CCFFFF">amount</span>''' should include any cents (or whichever unit a currency uses) if charged, so if for example, the fee charged is $2.95, then tag this as {{value|2.95 USD}} and do not round the amount up to {{Value|3 USD}}. Always use the decimal point as {{Wikipedia|en|Decimal separator|decimal separator|text=no}} for such amounts. |
||
If the amount charged is a whole number omitting the cents (or any other subdivision) is permissible. So a fee of exactly €5 may be written as either {{ |
If the amount charged is a whole number omitting the cents (or any other subdivision) is permissible. So a fee of exactly €5 may be written as either {{Value|5 EUR}} or {{Value|5.00 EUR}}. Some mappers prefer the latter because it explicitly conveys that no rounding of the amount has occurred. For currency that has no subdivision, such as Japanese Yen or Korean Won, no decimal part is used at all. |
||
The '''<span style="background:#FFCCFF">currency</span>''' should be specified using its {{Wikipedia|en|ISO 4217#Active codes|ISO 4217|text=no}} code. Do not use currency signs such as {{ |
The '''<span style="background:#FFCCFF">currency</span>''' should be specified using its {{Wikipedia|en|ISO 4217#Active codes|ISO 4217|text=no}} code. Do not use currency signs such as {{Value|$}}, {{Value|€}}, {{Value|¥}}, {{Value|円}}, or {{Value|£}}. |
||
<!-- This table is just a quick example of some of the most common currencies. Please don't make it larger; the full list is available on Wikipedia. --> |
<!-- This table is just a quick example of some of the most common currencies. Please don't make it larger; the full list is available on Wikipedia. --> |
||
Line 34: | Line 36: | ||
! Currency !! Code to use |
! Currency !! Code to use |
||
|- |
|- |
||
| Euro || {{ |
| Euro || {{Value|EUR}} |
||
|- |
|- |
||
| Japanese Yen || {{ |
| Japanese Yen || {{Value|JPY}} |
||
|- |
|- |
||
| Pound Sterling || {{ |
| Pound Sterling || {{Value|GBP}} |
||
|- |
|- |
||
| Swiss Franc || {{ |
| Swiss Franc || {{Value|CHF}} |
||
|- |
|- |
||
| US Dollar || {{ |
| US Dollar || {{Value|USD}} |
||
|} |
|} |
||
'''''For other currencies, see {{Wikipedia|en|ISO 4217#Active codes|this list}}.''''' |
'''''For other currencies, see {{Wikipedia|en|ISO 4217#Active codes|this list}}.''''' |
||
In some cases the charge levied is per some '''<span style="background:#CCFFDD">unit</span>'''. Some examples of these seen in use include {{ |
In some cases the charge levied is per some '''<span style="background:#CCFFDD">unit</span>'''. Some examples of these seen in use include {{Value|person}} (charge per person), {{Value|kWh}} (charge per kilowatt-hour of energy), {{Value|1.5 litre}} (charge per litre of some fluid such as water). The various vehicle categories defined in {{Key|access}}, such as {{Value|motorcar}} or {{Value|hgv}} ({{Wikipedia|en|Heavy goods vehicles|text=no}}) can also be used. |
||
The optional '''<span style="background:#FFFFCC">time unit</span>''' should not be abbreviated (use {{ |
The optional '''<span style="background:#FFFFCC">time unit</span>''' should not be abbreviated (use {{Value|hour}} instead of {{Value|h}}). In addition to discrete durations in units like minutes, hours, days, and weeks, other values such as {{Value|night}} and {{Value|day}} are used as well. |
||
== Examples == |
== Examples == |
||
* {{Tag|fee||yes}} plus {{Tag|charge||2.00 USD}} |
* {{Tag|fee||yes}} plus {{Tag|charge||2.00 USD}} |
||
* {{Tag|fee||yes}} plus {{Tag|charge||2.00 USD/hour}} |
* {{Tag|fee||yes}} plus {{Tag|charge||2.00 USD/hour}} |
||
Line 63: | Line 64: | ||
* {{Key|fee:amount}} or {{Key|fee:price}} - other variants of this tag. |
* {{Key|fee:amount}} or {{Key|fee:price}} - other variants of this tag. |
||
* [[SPARQL examples#Highest fees|Sophox query for highest fees]] based on this key and cross-referencing exchange rates in Wikidata. |
* [[SPARQL examples#Highest fees|Sophox query for highest fees]] based on this key and cross-referencing exchange rates in Wikidata. |
||
* {{ |
* {{Key|fine}} to indicate a fine for violating a traffic regulation |
||
[[Category:Keys indicating rates]] |
[[Category:Keys indicating rates]] |
Revision as of 00:01, 16 June 2022
charge |
Description |
---|
How much is charged for use of or access to a facility. |
Group: Properties |
Used on these elements |
Useful combination |
Status: in use |
Tools for this tag |
|
charge=* is used to specify the amount of the charge to use or access a facility. It is mostly used in combination with fee=yes or toll=yes.
Usage
Values for this key commonly have the following notation:
charge = <amount> <currency>[/<unit>][/<time unit>]
The amount should include any cents (or whichever unit a currency uses) if charged, so if for example, the fee charged is $2.95, then tag this as 2.95 USD and do not round the amount up to 3 USD. Always use the decimal point as decimal separator for such amounts.
If the amount charged is a whole number omitting the cents (or any other subdivision) is permissible. So a fee of exactly €5 may be written as either 5 EUR or 5.00 EUR. Some mappers prefer the latter because it explicitly conveys that no rounding of the amount has occurred. For currency that has no subdivision, such as Japanese Yen or Korean Won, no decimal part is used at all.
The currency should be specified using its ISO 4217 code. Do not use currency signs such as $, €, ¥, 円, or £.
Currency | Code to use |
---|---|
Euro | EUR |
Japanese Yen | JPY |
Pound Sterling | GBP |
Swiss Franc | CHF |
US Dollar | USD |
For other currencies, see this list on Wikipedia.
In some cases the charge levied is per some unit. Some examples of these seen in use include person (charge per person), kWh (charge per kilowatt-hour of energy), 1.5 litre (charge per litre of some fluid such as water). The various vehicle categories defined in access=*, such as motorcar or hgv ( Heavy goods vehicles) can also be used.
The optional time unit should not be abbreviated (use hour instead of h). In addition to discrete durations in units like minutes, hours, days, and weeks, other values such as night and day are used as well.
Examples
- fee=yes plus charge=2.00 USD
- fee=yes plus charge=2.00 USD/hour
- toll=yes plus charge=5 CHF
- fee=yes plus charge=1.00 EUR/100 litre – For water at a amenity=water_point
See also
- payment=* to indicate the precise method of payment.
- toll=* to indicate that a road, bridge, ferry, or other way is tolled - that you must pay to use it.
- fee:amount=* or fee:price=* - other variants of this tag.
- Sophox query for highest fees based on this key and cross-referencing exchange rates in Wikidata.
- fine=* to indicate a fine for violating a traffic regulation