case HERE_ERROR_UNKNOWN: return MAPS_ERROR_UNKNOWN;
case HERE_ERROR_SERVICE_NOT_AVAILABLE: return MAPS_ERROR_SERVICE_NOT_AVAILABLE;
case HERE_ERROR_NOT_FOUND: return MAPS_ERROR_NOT_FOUND;
+ case HERE_ERROR_USER_NOT_CONSENTED: return MAPS_ERROR_USER_NOT_CONSENTED;
}
return MAPS_ERROR_UNKNOWN;
}
case MAPS_ERROR_UNKNOWN: return HERE_ERROR_UNKNOWN;
case MAPS_ERROR_SERVICE_NOT_AVAILABLE: return HERE_ERROR_SERVICE_NOT_AVAILABLE;
case MAPS_ERROR_NOT_FOUND: return HERE_ERROR_NOT_FOUND;
+ case MAPS_ERROR_USER_NOT_CONSENTED: return HERE_ERROR_USER_NOT_CONSENTED;
}
return HERE_ERROR_UNKNOWN;
}
case HERE_ERROR_UNKNOWN: return "Unknown";
case HERE_ERROR_SERVICE_NOT_AVAILABLE: return "Service not available";
case HERE_ERROR_NOT_FOUND: return "Not found";
+ case HERE_ERROR_USER_NOT_CONSENTED: return "Not consented";
}
return "Unknown";
}
case MAPS_ERROR_UNKNOWN: return "MAPS_ERROR_UNKNOWN";
case MAPS_ERROR_SERVICE_NOT_AVAILABLE: return "MAPS_ERROR_SERVICE_NOT_AVAILABLE";
case MAPS_ERROR_NOT_FOUND: return "MAPS_ERROR_NOT_FOUND";
+ case MAPS_ERROR_USER_NOT_CONSENTED: return "MAPS_ERROR_USER_NOT_CONSENTED";
}
return "MAPS_ERROR_UNKNOWN";
}
+
+int GetMapsItemListLength(maps_item_list_h list)
+{
+ int length = 0;
+ maps_item_list_get_length(list, &length);
+ return length;
+}
}