in src/mapillary/config/api/entities.py [0:0]
def get_map_feature(map_feature_id: str, fields: list) -> str:
"""
These are objects with a location which have been derived from
multiple detections in multiple images.
Usage::
>>> 'https://graph.mapillary.com/:map_feature_id' # endpoint
Fields::
1. first_seen_at - timestamp, timestamp of the least recent detection
contributing to this feature
2. last_seen_at - timestamp, timestamp of the most recent detection
contributing to this feature
3. object_value - string, what kind of map feature it is
4. object_type - string, either a traffic_sign or point
5. geometry - GeoJSON Point geometry
6. images - list of IDs, which images this map feature was derived from
"""
fields = Entities.__field_validity(
given_fields=fields,
actual_fields=Entities.get_map_feature_fields(),
endpoint="https://graph.mapillary.com/:map_feature_id?fields=",
)
return (
f"https://graph.mapillary.com/{map_feature_id}/?fields={','.join(fields)}"
)