diff options
author | mvglasow <michael -at- vonglasow.com> | 2019-08-10 18:19:53 +0200 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2019-08-10 18:19:53 +0200 |
commit | f9df2954897d8c2c28e898b28b4a3a924fdbe167 (patch) | |
tree | a81110c9520a2276aaaf3245bd088dcb62637e5d | |
parent | a4fec5342fb2f93db5265cee99ef7ef6e7913937 (diff) | |
download | navit-f9df2954897d8c2c28e898b28b4a3a924fdbe167.tar.gz |
Refactor:core:Improve documentation
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r-- | navit/map.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/navit/map.c b/navit/map.c index 526e5fe55..66b1cd303 100644 --- a/navit/map.c +++ b/navit/map.c @@ -338,6 +338,14 @@ map_rect_get_item(struct map_rect *mr) { /** * @brief Returns the item specified by the ID * + * Map drivers may or may not allow multiple items with identical IDs. This function is not guaranteed to be + * suitable for iterating over multiple items with identical IDs in the same manner as `map_rect_get_item()`, + * as multiple subsequent calls may return items which were already returned by earlier calls. + * + * If you are working with maps which allow multiple items with identical IDs, the only portable way to + * iterate over all items with a given ID is to use `map_rect_get_item()` and skip all items with + * non-matching IDs. + * * @param mr The map rect to search for the item * @param id_hi High part of the ID to be found * @param id_lo Low part of the ID to be found |